From d65a2edf0cc7c791f74f35db12582e9bcbd6dbe5 Mon Sep 17 00:00:00 2001 From: Steve Bazyl Date: Fri, 29 Jan 2016 14:32:46 -0800 Subject: [PATCH] Regenerate APIs --- api_names.yaml | 20 + api_names_out.yaml | 1656 +++++++--- .../apis/adexchangebuyer_v1_3/classes.rb | 302 +- generated/google/apis/adexchangebuyer_v1_4.rb | 35 + .../apis/adexchangebuyer_v1_4/classes.rb | 2785 +++++++++++++++++ .../adexchangebuyer_v1_4/representations.rb | 1033 ++++++ .../apis/adexchangebuyer_v1_4/service.rb | 1378 ++++++++ .../apis/adexchangeseller_v2_0/classes.rb | 158 +- .../apis/admin_datatransfer_v1/classes.rb | 52 +- .../google/apis/admin_directory_v1/classes.rb | 748 ++--- .../google/apis/admin_reports_v1/classes.rb | 126 +- generated/google/apis/adsense_v1_4.rb | 2 +- generated/google/apis/adsense_v1_4/classes.rb | 288 +- generated/google/apis/adsensehost_v4_1.rb | 2 +- .../google/apis/adsensehost_v4_1/classes.rb | 183 +- generated/google/apis/analytics_v3/classes.rb | 1164 +++---- .../apis/androidenterprise_v1/classes.rb | 228 +- .../apis/androidpublisher_v2/classes.rb | 244 +- generated/google/apis/appengine_v1beta4.rb | 2 +- .../google/apis/appengine_v1beta4/classes.rb | 337 +- .../apis/appengine_v1beta4/representations.rb | 16 + .../google/apis/appengine_v1beta4/service.rb | 5 +- generated/google/apis/appengine_v1beta5.rb | 35 + .../google/apis/appengine_v1beta5/classes.rb | 1523 +++++++++ .../apis/appengine_v1beta5/representations.rb | 525 ++++ .../google/apis/appengine_v1beta5/service.rb | 478 +++ .../google/apis/appsactivity_v1/classes.rb | 68 +- generated/google/apis/appstate_v1.rb | 2 +- generated/google/apis/appstate_v1/classes.rb | 24 +- .../google/apis/autoscaler_v1beta2/classes.rb | 164 +- generated/google/apis/bigquery_v2/classes.rb | 510 +-- generated/google/apis/blogger_v3/classes.rb | 290 +- generated/google/apis/books_v1/classes.rb | 862 ++--- generated/google/apis/calendar_v3.rb | 2 +- generated/google/apis/calendar_v3/classes.rb | 360 +-- generated/google/apis/civicinfo_v2/classes.rb | 250 +- generated/google/apis/classroom_v1/classes.rb | 84 +- .../google/apis/cloudbilling_v1/classes.rb | 22 +- generated/google/apis/cloudbuild_v1.rb | 35 + .../google/apis/cloudbuild_v1/classes.rb | 521 +++ .../apis/cloudbuild_v1/representations.rb | 190 ++ .../google/apis/cloudbuild_v1/service.rb | 278 ++ .../google/apis/clouddebugger_v2/classes.rb | 162 +- generated/google/apis/cloudlatencytest_v2.rb | 34 + .../apis/cloudlatencytest_v2/classes.rb | 195 ++ .../cloudlatencytest_v2/representations.rb | 113 + .../apis/cloudlatencytest_v2/service.rb | 135 + .../google/apis/cloudmonitoring_v2beta2.rb | 2 +- .../apis/cloudmonitoring_v2beta2/classes.rb | 110 +- .../cloudresourcemanager_v1beta1/classes.rb | 52 +- .../google/apis/cloudtrace_v1/classes.rb | 26 +- .../apis/clouduseraccounts_beta/classes.rb | 170 +- generated/google/apis/compute_beta.rb | 2 +- generated/google/apis/compute_beta/classes.rb | 1824 +++++------ generated/google/apis/compute_beta/service.rb | 38 - generated/google/apis/compute_v1.rb | 2 +- generated/google/apis/compute_v1/classes.rb | 2060 +++++++----- .../google/apis/compute_v1/representations.rb | 108 + generated/google/apis/compute_v1/service.rb | 308 ++ generated/google/apis/container_v1/classes.rb | 86 +- generated/google/apis/content_v2/classes.rb | 1278 ++++---- .../google/apis/coordinate_v1/classes.rb | 132 +- .../google/apis/customsearch_v1/classes.rb | 192 +- generated/google/apis/dataproc_v1.rb | 43 + generated/google/apis/dataproc_v1/classes.rb | 175 ++ .../apis/dataproc_v1/representations.rb | 84 + generated/google/apis/dataproc_v1/service.rb | 142 + .../google/apis/datastore_v1beta2/classes.rb | 210 +- generated/google/apis/deploymentmanager_v2.rb | 2 +- .../apis/deploymentmanager_v2/classes.rb | 225 +- .../apis/deploymentmanager_v2/service.rb | 79 +- .../google/apis/dfareporting_v2_3/classes.rb | 2372 +++++++------- generated/google/apis/discovery_v1/classes.rb | 212 +- generated/google/apis/dns_v1/classes.rb | 78 +- .../apis/doubleclickbidmanager_v1/classes.rb | 158 +- generated/google/apis/doubleclicksearch_v2.rb | 2 +- .../apis/doubleclicksearch_v2/classes.rb | 206 +- generated/google/apis/drive_v2.rb | 2 +- generated/google/apis/drive_v2/classes.rb | 616 ++-- generated/google/apis/drive_v3.rb | 2 +- generated/google/apis/drive_v3/classes.rb | 356 +-- generated/google/apis/fitness_v1/classes.rb | 148 +- .../google/apis/fusiontables_v2/classes.rb | 216 +- .../games_configuration_v1configuration.rb | 2 +- .../classes.rb | 104 +- .../apis/games_management_v1management.rb | 2 +- .../games_management_v1management/classes.rb | 92 +- generated/google/apis/games_v1.rb | 2 +- generated/google/apis/games_v1/classes.rb | 950 +++--- generated/google/apis/gan_v1beta1/classes.rb | 374 +-- generated/google/apis/genomics_v1.rb | 4 +- generated/google/apis/genomics_v1/classes.rb | 456 +-- generated/google/apis/genomics_v1/service.rb | 2 +- generated/google/apis/gmail_v1/classes.rb | 146 +- .../google/apis/groupsmigration_v1/classes.rb | 4 +- .../google/apis/groupssettings_v1/classes.rb | 56 +- generated/google/apis/identitytoolkit_v3.rb | 2 +- .../google/apis/identitytoolkit_v3/classes.rb | 366 ++- .../identitytoolkit_v3/representations.rb | 4 + generated/google/apis/kgsearch_v1/classes.rb | 6 +- generated/google/apis/licensing_v1/classes.rb | 22 +- generated/google/apis/logging_v2beta1.rb | 47 + .../google/apis/logging_v2beta1/classes.rb | 990 ++++++ .../apis/logging_v2beta1/representations.rb | 337 ++ .../google/apis/logging_v2beta1/service.rb | 547 ++++ .../google/apis/manager_v1beta2/classes.rb | 250 +- .../google/apis/mapsengine_v1/classes.rb | 554 ++-- generated/google/apis/mirror_v1/classes.rb | 202 +- generated/google/apis/oauth2_v2.rb | 2 +- generated/google/apis/oauth2_v2/classes.rb | 54 +- .../google/apis/pagespeedonline_v2/classes.rb | 124 +- generated/google/apis/partners_v2/classes.rb | 174 +- generated/google/apis/plus_domains_v1.rb | 2 +- .../google/apis/plus_domains_v1/classes.rb | 548 ++-- generated/google/apis/plus_v1.rb | 2 +- generated/google/apis/plus_v1/classes.rb | 430 +-- .../google/apis/prediction_v1_6/classes.rb | 146 +- .../apis/proximitybeacon_v1beta1/classes.rb | 90 +- generated/google/apis/pubsub_v1/classes.rb | 72 +- .../google/apis/qpx_express_v1/classes.rb | 270 +- .../apis/replicapool_v1beta2/classes.rb | 126 +- .../replicapoolupdater_v1beta1/classes.rb | 152 +- generated/google/apis/reseller_v1/classes.rb | 110 +- .../apis/resourceviews_v1beta2/classes.rb | 136 +- generated/google/apis/script_v1/classes.rb | 36 +- .../apis/site_verification_v1/classes.rb | 24 +- .../google/apis/sqladmin_v1beta4/classes.rb | 406 +-- generated/google/apis/storage_v1/classes.rb | 260 +- .../google/apis/storagetransfer_v1/classes.rb | 168 +- .../google/apis/tagmanager_v1/classes.rb | 308 +- .../google/apis/taskqueue_v1beta2/classes.rb | 48 +- generated/google/apis/tasks_v1/classes.rb | 64 +- generated/google/apis/translate_v2/classes.rb | 20 +- .../google/apis/urlshortener_v1/classes.rb | 48 +- .../google/apis/webmasters_v3/classes.rb | 98 +- .../apis/youtube_analytics_v1/classes.rb | 98 +- generated/google/apis/youtube_v3/classes.rb | 1752 +++++------ .../apis/youtubereporting_v1/classes.rb | 38 +- script/generate | 9 +- 139 files changed, 26917 insertions(+), 13763 deletions(-) create mode 100644 generated/google/apis/adexchangebuyer_v1_4.rb create mode 100644 generated/google/apis/adexchangebuyer_v1_4/classes.rb create mode 100644 generated/google/apis/adexchangebuyer_v1_4/representations.rb create mode 100644 generated/google/apis/adexchangebuyer_v1_4/service.rb create mode 100644 generated/google/apis/appengine_v1beta5.rb create mode 100644 generated/google/apis/appengine_v1beta5/classes.rb create mode 100644 generated/google/apis/appengine_v1beta5/representations.rb create mode 100644 generated/google/apis/appengine_v1beta5/service.rb create mode 100644 generated/google/apis/cloudbuild_v1.rb create mode 100644 generated/google/apis/cloudbuild_v1/classes.rb create mode 100644 generated/google/apis/cloudbuild_v1/representations.rb create mode 100644 generated/google/apis/cloudbuild_v1/service.rb create mode 100644 generated/google/apis/cloudlatencytest_v2.rb create mode 100644 generated/google/apis/cloudlatencytest_v2/classes.rb create mode 100644 generated/google/apis/cloudlatencytest_v2/representations.rb create mode 100644 generated/google/apis/cloudlatencytest_v2/service.rb create mode 100644 generated/google/apis/dataproc_v1.rb create mode 100644 generated/google/apis/dataproc_v1/classes.rb create mode 100644 generated/google/apis/dataproc_v1/representations.rb create mode 100644 generated/google/apis/dataproc_v1/service.rb create mode 100644 generated/google/apis/logging_v2beta1.rb create mode 100644 generated/google/apis/logging_v2beta1/classes.rb create mode 100644 generated/google/apis/logging_v2beta1/representations.rb create mode 100644 generated/google/apis/logging_v2beta1/service.rb diff --git a/api_names.yaml b/api_names.yaml index 2426217c2..e7eb54f71 100644 --- a/api_names.yaml +++ b/api_names.yaml @@ -2,6 +2,9 @@ "/adexchangebuyer:v1.3/PerformanceReport/latency50thPercentile": latency_50th_percentile "/adexchangebuyer:v1.3/PerformanceReport/latency85thPercentile": latency_85th_percentile "/adexchangebuyer:v1.3/PerformanceReport/latency95thPercentile": latency_95th_percentile +"/adexchangebuyer:v1.4/PerformanceReport/latency50thPercentile": latency_50th_percentile +"/adexchangebuyer:v1.4/PerformanceReport/latency85thPercentile": latency_85th_percentile +"/adexchangebuyer:v1.4/PerformanceReport/latency95thPercentile": latency_95th_percentile "/adexchangeseller:v2.0/adexchangeseller.accounts.adclients.list": list_account_ad_clients "/adexchangeseller:v2.0/adexchangeseller.accounts.customchannels.get": get_account_custom_channel "/adexchangeseller:v2.0/adexchangeseller.accounts.customchannels.list": list_account_custom_channels @@ -343,6 +346,8 @@ "/civicinfo:v2/civicinfo.elections.voterInfoQuery": query_voter_info "/civicinfo:v2/civicinfo.representatives.representativeInfoByAddress": representative_info_by_address "/civicinfo:v2/civicinfo.representatives.representativeInfoByDivision": representative_info_by_division +"/cloudlatencytest:v2/cloudlatencytest.statscollection.updateaggregatedstats": update_aggregated_stats +"/cloudlatencytest:v2/cloudlatencytest.statscollection.updatestats": update_stats "/compute:v1/DiskMoveRequest": move_disk_request "/compute:beta/InstanceMoveRequest": move_instance_request "/compute:beta/TargetPoolsAddHealthCheckRequest": add_target_pools_health_check_request @@ -887,6 +892,21 @@ "/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 +"/logging:v2beta1/logging.projects.logServices.indexes.list": list_log_service_indexes +"/logging:v2beta1/logging.projects.logServices.list": list_log_services +"/logging:v2beta1/logging.projects.logServices.sinks.create": create_log_service_sink +"/logging:v2beta1/logging.projects.logServices.sinks.delete": delete_log_service_sink +"/logging:v2beta1/logging.projects.logServices.sinks.get": get_log_service_sink +"/logging:v2beta1/logging.projects.logServices.sinks.list": list_log_service_sinks +"/logging:v2beta1/logging.projects.logServices.sinks.update": update_log_service_sink +"/logging:v2beta1/logging.projects.logs.delete": delete_log +"/logging:v2beta1/logging.projects.logs.list": list_logs +"/logging:v2beta1/logging.projects.logs.sinks.create": create_log_sink +"/logging:v2beta1/logging.projects.logs.sinks.delete": delete_log_sink +"/logging:v2beta1/logging.projects.logs.sinks.get": get_log_sink +"/logging:v2beta1/logging.projects.logs.sinks.list": list_log_sinks +"/logging:v2beta1/logging.projects.logs.sinks.update": update_log_sink +"/logging:v2beta1/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 diff --git a/api_names_out.yaml b/api_names_out.yaml index c4ebde448..6edcf29ed 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -2,6 +2,9 @@ "/adexchangebuyer:v1.3/PerformanceReport/latency50thPercentile": latency_50th_percentile "/adexchangebuyer:v1.3/PerformanceReport/latency85thPercentile": latency_85th_percentile "/adexchangebuyer:v1.3/PerformanceReport/latency95thPercentile": latency_95th_percentile +"/adexchangebuyer:v1.4/PerformanceReport/latency50thPercentile": latency_50th_percentile +"/adexchangebuyer:v1.4/PerformanceReport/latency85thPercentile": latency_85th_percentile +"/adexchangebuyer:v1.4/PerformanceReport/latency95thPercentile": latency_95th_percentile "/adexchangeseller:v2.0/adexchangeseller.accounts.adclients.list": list_account_ad_clients "/adexchangeseller:v2.0/adexchangeseller.accounts.customchannels.get": get_account_custom_channel "/adexchangeseller:v2.0/adexchangeseller.accounts.customchannels.list": list_account_custom_channels @@ -343,6 +346,8 @@ "/civicinfo:v2/civicinfo.elections.voterInfoQuery": query_voter_info "/civicinfo:v2/civicinfo.representatives.representativeInfoByAddress": representative_info_by_address "/civicinfo:v2/civicinfo.representatives.representativeInfoByDivision": representative_info_by_division +"/cloudlatencytest:v2/cloudlatencytest.statscollection.updateaggregatedstats": update_aggregated_stats +"/cloudlatencytest:v2/cloudlatencytest.statscollection.updatestats": update_stats "/compute:v1/DiskMoveRequest": move_disk_request "/compute:beta/InstanceMoveRequest": move_instance_request "/compute:beta/TargetPoolsAddHealthCheckRequest": add_target_pools_health_check_request @@ -863,6 +868,21 @@ "/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 +"/logging:v2beta1/logging.projects.logServices.indexes.list": list_log_service_indexes +"/logging:v2beta1/logging.projects.logServices.list": list_log_services +"/logging:v2beta1/logging.projects.logServices.sinks.create": create_log_service_sink +"/logging:v2beta1/logging.projects.logServices.sinks.delete": delete_log_service_sink +"/logging:v2beta1/logging.projects.logServices.sinks.get": get_log_service_sink +"/logging:v2beta1/logging.projects.logServices.sinks.list": list_log_service_sinks +"/logging:v2beta1/logging.projects.logServices.sinks.update": update_log_service_sink +"/logging:v2beta1/logging.projects.logs.delete": delete_log +"/logging:v2beta1/logging.projects.logs.list": list_logs +"/logging:v2beta1/logging.projects.logs.sinks.create": create_log_sink +"/logging:v2beta1/logging.projects.logs.sinks.delete": delete_log_sink +"/logging:v2beta1/logging.projects.logs.sinks.get": get_log_sink +"/logging:v2beta1/logging.projects.logs.sinks.list": list_log_sinks +"/logging:v2beta1/logging.projects.logs.sinks.update": update_log_sink +"/logging:v2beta1/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 @@ -1558,8 +1578,6 @@ "/compute:beta/compute.projects.get/project": project "/compute:beta/compute.projects.setCommonInstanceMetadata/project": project "/compute:beta/compute.projects.setUsageExportBucket/project": project -"/compute:beta/compute.projects.setUsageExportCloudStorageBucket": set_project_usage_export_cloud_storage_bucket -"/compute:beta/compute.projects.setUsageExportCloudStorageBucket/project": project "/compute:beta/compute.regionOperations.delete": delete_region_operation "/compute:beta/compute.regionOperations.delete/operation": operation "/compute:beta/compute.regionOperations.delete/project": project @@ -3042,269 +3060,519 @@ "/compute:beta/ZoneList/kind": kind "/compute:beta/ZoneList/nextPageToken": next_page_token "/compute:beta/ZoneList/selfLink": self_link -"/adexchangebuyer:v1.3/fields": fields -"/adexchangebuyer:v1.3/key": key -"/adexchangebuyer:v1.3/quotaUser": quota_user -"/adexchangebuyer:v1.3/userIp": user_ip -"/adexchangebuyer:v1.3/adexchangebuyer.accounts.get": get_account -"/adexchangebuyer:v1.3/adexchangebuyer.accounts.get/id": id -"/adexchangebuyer:v1.3/adexchangebuyer.accounts.list": list_accounts -"/adexchangebuyer:v1.3/adexchangebuyer.accounts.patch": patch_account -"/adexchangebuyer:v1.3/adexchangebuyer.accounts.patch/id": id -"/adexchangebuyer:v1.3/adexchangebuyer.accounts.update": update_account -"/adexchangebuyer:v1.3/adexchangebuyer.accounts.update/id": id -"/adexchangebuyer:v1.3/adexchangebuyer.billingInfo.get": get_billing_info -"/adexchangebuyer:v1.3/adexchangebuyer.billingInfo.get/accountId": account_id -"/adexchangebuyer:v1.3/adexchangebuyer.billingInfo.list": list_billing_infos -"/adexchangebuyer:v1.3/adexchangebuyer.budget.get": get_budget -"/adexchangebuyer:v1.3/adexchangebuyer.budget.get/accountId": account_id -"/adexchangebuyer:v1.3/adexchangebuyer.budget.get/billingId": billing_id -"/adexchangebuyer:v1.3/adexchangebuyer.budget.patch": patch_budget -"/adexchangebuyer:v1.3/adexchangebuyer.budget.patch/accountId": account_id -"/adexchangebuyer:v1.3/adexchangebuyer.budget.patch/billingId": billing_id -"/adexchangebuyer:v1.3/adexchangebuyer.budget.update": update_budget -"/adexchangebuyer:v1.3/adexchangebuyer.budget.update/accountId": account_id -"/adexchangebuyer:v1.3/adexchangebuyer.budget.update/billingId": billing_id -"/adexchangebuyer:v1.3/adexchangebuyer.creatives.get": get_creative -"/adexchangebuyer:v1.3/adexchangebuyer.creatives.get/accountId": account_id -"/adexchangebuyer:v1.3/adexchangebuyer.creatives.get/buyerCreativeId": buyer_creative_id -"/adexchangebuyer:v1.3/adexchangebuyer.creatives.insert": insert_creative -"/adexchangebuyer:v1.3/adexchangebuyer.creatives.list": list_creatives -"/adexchangebuyer:v1.3/adexchangebuyer.creatives.list/accountId": account_id -"/adexchangebuyer:v1.3/adexchangebuyer.creatives.list/buyerCreativeId": buyer_creative_id -"/adexchangebuyer:v1.3/adexchangebuyer.creatives.list/maxResults": max_results -"/adexchangebuyer:v1.3/adexchangebuyer.creatives.list/pageToken": page_token -"/adexchangebuyer:v1.3/adexchangebuyer.creatives.list/statusFilter": status_filter -"/adexchangebuyer:v1.3/adexchangebuyer.directDeals.get": get_direct_deal -"/adexchangebuyer:v1.3/adexchangebuyer.directDeals.get/id": id -"/adexchangebuyer:v1.3/adexchangebuyer.directDeals.list": list_direct_deals -"/adexchangebuyer:v1.3/adexchangebuyer.performanceReport.list": list_performance_reports -"/adexchangebuyer:v1.3/adexchangebuyer.performanceReport.list/accountId": account_id -"/adexchangebuyer:v1.3/adexchangebuyer.performanceReport.list/endDateTime": end_date_time -"/adexchangebuyer:v1.3/adexchangebuyer.performanceReport.list/maxResults": max_results -"/adexchangebuyer:v1.3/adexchangebuyer.performanceReport.list/pageToken": page_token -"/adexchangebuyer:v1.3/adexchangebuyer.performanceReport.list/startDateTime": start_date_time -"/adexchangebuyer:v1.3/adexchangebuyer.pretargetingConfig.delete": delete_pretargeting_config -"/adexchangebuyer:v1.3/adexchangebuyer.pretargetingConfig.delete/accountId": account_id -"/adexchangebuyer:v1.3/adexchangebuyer.pretargetingConfig.delete/configId": config_id -"/adexchangebuyer:v1.3/adexchangebuyer.pretargetingConfig.get": get_pretargeting_config -"/adexchangebuyer:v1.3/adexchangebuyer.pretargetingConfig.get/accountId": account_id -"/adexchangebuyer:v1.3/adexchangebuyer.pretargetingConfig.get/configId": config_id -"/adexchangebuyer:v1.3/adexchangebuyer.pretargetingConfig.insert": insert_pretargeting_config -"/adexchangebuyer:v1.3/adexchangebuyer.pretargetingConfig.insert/accountId": account_id -"/adexchangebuyer:v1.3/adexchangebuyer.pretargetingConfig.list": list_pretargeting_configs -"/adexchangebuyer:v1.3/adexchangebuyer.pretargetingConfig.list/accountId": account_id -"/adexchangebuyer:v1.3/adexchangebuyer.pretargetingConfig.patch": patch_pretargeting_config -"/adexchangebuyer:v1.3/adexchangebuyer.pretargetingConfig.patch/accountId": account_id -"/adexchangebuyer:v1.3/adexchangebuyer.pretargetingConfig.patch/configId": config_id -"/adexchangebuyer:v1.3/adexchangebuyer.pretargetingConfig.update": update_pretargeting_config -"/adexchangebuyer:v1.3/adexchangebuyer.pretargetingConfig.update/accountId": account_id -"/adexchangebuyer:v1.3/adexchangebuyer.pretargetingConfig.update/configId": config_id -"/adexchangebuyer:v1.3/Account": account -"/adexchangebuyer:v1.3/Account/bidderLocation": bidder_location -"/adexchangebuyer:v1.3/Account/bidderLocation/bidder_location": bidder_location -"/adexchangebuyer:v1.3/Account/bidderLocation/bidder_location/maximumQps": maximum_qps -"/adexchangebuyer:v1.3/Account/bidderLocation/bidder_location/region": region -"/adexchangebuyer:v1.3/Account/bidderLocation/bidder_location/url": url -"/adexchangebuyer:v1.3/Account/cookieMatchingNid": cookie_matching_nid -"/adexchangebuyer:v1.3/Account/cookieMatchingUrl": cookie_matching_url -"/adexchangebuyer:v1.3/Account/id": id -"/adexchangebuyer:v1.3/Account/kind": kind -"/adexchangebuyer:v1.3/Account/maximumActiveCreatives": maximum_active_creatives -"/adexchangebuyer:v1.3/Account/maximumTotalQps": maximum_total_qps -"/adexchangebuyer:v1.3/Account/numberActiveCreatives": number_active_creatives -"/adexchangebuyer:v1.3/AccountsList": accounts_list -"/adexchangebuyer:v1.3/AccountsList/items": items -"/adexchangebuyer:v1.3/AccountsList/items/item": item -"/adexchangebuyer:v1.3/AccountsList/kind": kind -"/adexchangebuyer:v1.3/BillingInfo": billing_info -"/adexchangebuyer:v1.3/BillingInfo/accountId": account_id -"/adexchangebuyer:v1.3/BillingInfo/accountName": account_name -"/adexchangebuyer:v1.3/BillingInfo/billingId": billing_id -"/adexchangebuyer:v1.3/BillingInfo/billingId/billing_id": billing_id -"/adexchangebuyer:v1.3/BillingInfo/kind": kind -"/adexchangebuyer:v1.3/BillingInfoList": billing_info_list -"/adexchangebuyer:v1.3/BillingInfoList/items": items -"/adexchangebuyer:v1.3/BillingInfoList/items/item": item -"/adexchangebuyer:v1.3/BillingInfoList/kind": kind -"/adexchangebuyer:v1.3/Budget": budget -"/adexchangebuyer:v1.3/Budget/accountId": account_id -"/adexchangebuyer:v1.3/Budget/billingId": billing_id -"/adexchangebuyer:v1.3/Budget/budgetAmount": budget_amount -"/adexchangebuyer:v1.3/Budget/currencyCode": currency_code -"/adexchangebuyer:v1.3/Budget/id": id -"/adexchangebuyer:v1.3/Budget/kind": kind -"/adexchangebuyer:v1.3/Creative": creative -"/adexchangebuyer:v1.3/Creative/HTMLSnippet": html_snippet -"/adexchangebuyer:v1.3/Creative/accountId": account_id -"/adexchangebuyer:v1.3/Creative/advertiserId": advertiser_id -"/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 -"/adexchangebuyer:v1.3/Creative/clickThroughUrl": click_through_url -"/adexchangebuyer:v1.3/Creative/clickThroughUrl/click_through_url": click_through_url -"/adexchangebuyer:v1.3/Creative/corrections": corrections -"/adexchangebuyer:v1.3/Creative/corrections/correction": correction -"/adexchangebuyer:v1.3/Creative/corrections/correction/details": details -"/adexchangebuyer:v1.3/Creative/corrections/correction/details/detail": detail -"/adexchangebuyer:v1.3/Creative/corrections/correction/reason": reason -"/adexchangebuyer:v1.3/Creative/disapprovalReasons": disapproval_reasons -"/adexchangebuyer:v1.3/Creative/disapprovalReasons/disapproval_reason": disapproval_reason -"/adexchangebuyer:v1.3/Creative/disapprovalReasons/disapproval_reason/details": details -"/adexchangebuyer:v1.3/Creative/disapprovalReasons/disapproval_reason/details/detail": detail -"/adexchangebuyer:v1.3/Creative/disapprovalReasons/disapproval_reason/reason": reason -"/adexchangebuyer:v1.3/Creative/filteringReasons": filtering_reasons -"/adexchangebuyer:v1.3/Creative/filteringReasons/date": date -"/adexchangebuyer:v1.3/Creative/filteringReasons/reasons": reasons -"/adexchangebuyer:v1.3/Creative/filteringReasons/reasons/reason": reason -"/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 -"/adexchangebuyer:v1.3/Creative/restrictedCategories/restricted_category": restricted_category -"/adexchangebuyer:v1.3/Creative/sensitiveCategories": sensitive_categories -"/adexchangebuyer:v1.3/Creative/sensitiveCategories/sensitive_category": sensitive_category -"/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 -"/adexchangebuyer:v1.3/CreativesList/items": items -"/adexchangebuyer:v1.3/CreativesList/items/item": item -"/adexchangebuyer:v1.3/CreativesList/kind": kind -"/adexchangebuyer:v1.3/CreativesList/nextPageToken": next_page_token -"/adexchangebuyer:v1.3/DirectDeal": direct_deal -"/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 -"/adexchangebuyer:v1.3/DirectDeal/kind": kind -"/adexchangebuyer:v1.3/DirectDeal/name": name -"/adexchangebuyer:v1.3/DirectDeal/privateExchangeMinCpm": private_exchange_min_cpm -"/adexchangebuyer:v1.3/DirectDeal/publisherBlocksOverriden": publisher_blocks_overriden -"/adexchangebuyer:v1.3/DirectDeal/sellerNetwork": seller_network -"/adexchangebuyer:v1.3/DirectDeal/startTime": start_time -"/adexchangebuyer:v1.3/DirectDealsList": direct_deals_list -"/adexchangebuyer:v1.3/DirectDealsList/directDeals": direct_deals -"/adexchangebuyer:v1.3/DirectDealsList/directDeals/direct_deal": direct_deal -"/adexchangebuyer:v1.3/DirectDealsList/kind": kind -"/adexchangebuyer:v1.3/PerformanceReport": performance_report -"/adexchangebuyer:v1.3/PerformanceReport/bidRate": bid_rate -"/adexchangebuyer:v1.3/PerformanceReport/bidRequestRate": bid_request_rate -"/adexchangebuyer:v1.3/PerformanceReport/calloutStatusRate": callout_status_rate -"/adexchangebuyer:v1.3/PerformanceReport/calloutStatusRate/callout_status_rate": callout_status_rate -"/adexchangebuyer:v1.3/PerformanceReport/cookieMatcherStatusRate": cookie_matcher_status_rate -"/adexchangebuyer:v1.3/PerformanceReport/cookieMatcherStatusRate/cookie_matcher_status_rate": cookie_matcher_status_rate -"/adexchangebuyer:v1.3/PerformanceReport/creativeStatusRate": creative_status_rate -"/adexchangebuyer:v1.3/PerformanceReport/creativeStatusRate/creative_status_rate": creative_status_rate -"/adexchangebuyer:v1.3/PerformanceReport/filteredBidRate": filtered_bid_rate -"/adexchangebuyer:v1.3/PerformanceReport/hostedMatchStatusRate": hosted_match_status_rate -"/adexchangebuyer:v1.3/PerformanceReport/hostedMatchStatusRate/hosted_match_status_rate": hosted_match_status_rate -"/adexchangebuyer:v1.3/PerformanceReport/inventoryMatchRate": inventory_match_rate -"/adexchangebuyer:v1.3/PerformanceReport/kind": kind -"/adexchangebuyer:v1.3/PerformanceReport/noQuotaInRegion": no_quota_in_region -"/adexchangebuyer:v1.3/PerformanceReport/outOfQuota": out_of_quota -"/adexchangebuyer:v1.3/PerformanceReport/pixelMatchRequests": pixel_match_requests -"/adexchangebuyer:v1.3/PerformanceReport/pixelMatchResponses": pixel_match_responses -"/adexchangebuyer:v1.3/PerformanceReport/quotaConfiguredLimit": quota_configured_limit -"/adexchangebuyer:v1.3/PerformanceReport/quotaThrottledLimit": quota_throttled_limit -"/adexchangebuyer:v1.3/PerformanceReport/region": region -"/adexchangebuyer:v1.3/PerformanceReport/successfulRequestRate": successful_request_rate -"/adexchangebuyer:v1.3/PerformanceReport/timestamp": timestamp -"/adexchangebuyer:v1.3/PerformanceReport/unsuccessfulRequestRate": unsuccessful_request_rate -"/adexchangebuyer:v1.3/PerformanceReportList": performance_report_list -"/adexchangebuyer:v1.3/PerformanceReportList/kind": kind -"/adexchangebuyer:v1.3/PerformanceReportList/performanceReport": performance_report -"/adexchangebuyer:v1.3/PerformanceReportList/performanceReport/performance_report": performance_report -"/adexchangebuyer:v1.3/PretargetingConfig": pretargeting_config -"/adexchangebuyer:v1.3/PretargetingConfig/billingId": billing_id -"/adexchangebuyer:v1.3/PretargetingConfig/configId": config_id -"/adexchangebuyer:v1.3/PretargetingConfig/configName": config_name -"/adexchangebuyer:v1.3/PretargetingConfig/creativeType": creative_type -"/adexchangebuyer:v1.3/PretargetingConfig/creativeType/creative_type": creative_type -"/adexchangebuyer:v1.3/PretargetingConfig/dimensions": dimensions -"/adexchangebuyer:v1.3/PretargetingConfig/dimensions/dimension": dimension -"/adexchangebuyer:v1.3/PretargetingConfig/dimensions/dimension/height": height -"/adexchangebuyer:v1.3/PretargetingConfig/dimensions/dimension/width": width -"/adexchangebuyer:v1.3/PretargetingConfig/excludedContentLabels": excluded_content_labels -"/adexchangebuyer:v1.3/PretargetingConfig/excludedContentLabels/excluded_content_label": excluded_content_label -"/adexchangebuyer:v1.3/PretargetingConfig/excludedGeoCriteriaIds": excluded_geo_criteria_ids -"/adexchangebuyer:v1.3/PretargetingConfig/excludedGeoCriteriaIds/excluded_geo_criteria_id": excluded_geo_criteria_id -"/adexchangebuyer:v1.3/PretargetingConfig/excludedPlacements": excluded_placements -"/adexchangebuyer:v1.3/PretargetingConfig/excludedPlacements/excluded_placement": excluded_placement -"/adexchangebuyer:v1.3/PretargetingConfig/excludedPlacements/excluded_placement/token": token -"/adexchangebuyer:v1.3/PretargetingConfig/excludedPlacements/excluded_placement/type": type -"/adexchangebuyer:v1.3/PretargetingConfig/excludedUserLists": excluded_user_lists -"/adexchangebuyer:v1.3/PretargetingConfig/excludedUserLists/excluded_user_list": excluded_user_list -"/adexchangebuyer:v1.3/PretargetingConfig/excludedVerticals": excluded_verticals -"/adexchangebuyer:v1.3/PretargetingConfig/excludedVerticals/excluded_vertical": excluded_vertical -"/adexchangebuyer:v1.3/PretargetingConfig/geoCriteriaIds": geo_criteria_ids -"/adexchangebuyer:v1.3/PretargetingConfig/geoCriteriaIds/geo_criteria_id": geo_criteria_id -"/adexchangebuyer:v1.3/PretargetingConfig/isActive": is_active -"/adexchangebuyer:v1.3/PretargetingConfig/kind": kind -"/adexchangebuyer:v1.3/PretargetingConfig/languages": languages -"/adexchangebuyer:v1.3/PretargetingConfig/languages/language": language -"/adexchangebuyer:v1.3/PretargetingConfig/mobileCarriers": mobile_carriers -"/adexchangebuyer:v1.3/PretargetingConfig/mobileCarriers/mobile_carrier": mobile_carrier -"/adexchangebuyer:v1.3/PretargetingConfig/mobileDevices": mobile_devices -"/adexchangebuyer:v1.3/PretargetingConfig/mobileDevices/mobile_device": mobile_device -"/adexchangebuyer:v1.3/PretargetingConfig/mobileOperatingSystemVersions": mobile_operating_system_versions -"/adexchangebuyer:v1.3/PretargetingConfig/mobileOperatingSystemVersions/mobile_operating_system_version": mobile_operating_system_version -"/adexchangebuyer:v1.3/PretargetingConfig/placements": placements -"/adexchangebuyer:v1.3/PretargetingConfig/placements/placement": placement -"/adexchangebuyer:v1.3/PretargetingConfig/placements/placement/token": token -"/adexchangebuyer:v1.3/PretargetingConfig/placements/placement/type": type -"/adexchangebuyer:v1.3/PretargetingConfig/platforms": platforms -"/adexchangebuyer:v1.3/PretargetingConfig/platforms/platform": platform -"/adexchangebuyer:v1.3/PretargetingConfig/supportedCreativeAttributes": supported_creative_attributes -"/adexchangebuyer:v1.3/PretargetingConfig/supportedCreativeAttributes/supported_creative_attribute": supported_creative_attribute -"/adexchangebuyer:v1.3/PretargetingConfig/userLists": user_lists -"/adexchangebuyer:v1.3/PretargetingConfig/userLists/user_list": user_list -"/adexchangebuyer:v1.3/PretargetingConfig/vendorTypes": vendor_types -"/adexchangebuyer:v1.3/PretargetingConfig/vendorTypes/vendor_type": vendor_type -"/adexchangebuyer:v1.3/PretargetingConfig/verticals": verticals -"/adexchangebuyer:v1.3/PretargetingConfig/verticals/vertical": vertical -"/adexchangebuyer:v1.3/PretargetingConfigList": pretargeting_config_list -"/adexchangebuyer:v1.3/PretargetingConfigList/items": items -"/adexchangebuyer:v1.3/PretargetingConfigList/items/item": item -"/adexchangebuyer:v1.3/PretargetingConfigList/kind": kind +"/adexchangebuyer:v1.4/fields": fields +"/adexchangebuyer:v1.4/key": key +"/adexchangebuyer:v1.4/quotaUser": quota_user +"/adexchangebuyer:v1.4/userIp": user_ip +"/adexchangebuyer:v1.4/adexchangebuyer.accounts.get": get_account +"/adexchangebuyer:v1.4/adexchangebuyer.accounts.get/id": id +"/adexchangebuyer:v1.4/adexchangebuyer.accounts.list": list_accounts +"/adexchangebuyer:v1.4/adexchangebuyer.accounts.patch": patch_account +"/adexchangebuyer:v1.4/adexchangebuyer.accounts.patch/id": id +"/adexchangebuyer:v1.4/adexchangebuyer.accounts.update": update_account +"/adexchangebuyer:v1.4/adexchangebuyer.accounts.update/id": id +"/adexchangebuyer:v1.4/adexchangebuyer.billingInfo.get": get_billing_info +"/adexchangebuyer:v1.4/adexchangebuyer.billingInfo.get/accountId": account_id +"/adexchangebuyer:v1.4/adexchangebuyer.billingInfo.list": list_billing_infos +"/adexchangebuyer:v1.4/adexchangebuyer.budget.get": get_budget +"/adexchangebuyer:v1.4/adexchangebuyer.budget.get/accountId": account_id +"/adexchangebuyer:v1.4/adexchangebuyer.budget.get/billingId": billing_id +"/adexchangebuyer:v1.4/adexchangebuyer.budget.patch": patch_budget +"/adexchangebuyer:v1.4/adexchangebuyer.budget.patch/accountId": account_id +"/adexchangebuyer:v1.4/adexchangebuyer.budget.patch/billingId": billing_id +"/adexchangebuyer:v1.4/adexchangebuyer.budget.update": update_budget +"/adexchangebuyer:v1.4/adexchangebuyer.budget.update/accountId": account_id +"/adexchangebuyer:v1.4/adexchangebuyer.budget.update/billingId": billing_id +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.addDeal": add_creative_deal +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.addDeal/accountId": account_id +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.addDeal/buyerCreativeId": buyer_creative_id +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.addDeal/dealId": deal_id +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.get": get_creative +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.get/accountId": account_id +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.get/buyerCreativeId": buyer_creative_id +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.insert": insert_creative +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.list": list_creatives +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.list/accountId": account_id +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.list/buyerCreativeId": buyer_creative_id +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.list/dealsStatusFilter": deals_status_filter +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.list/maxResults": max_results +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.list/openAuctionStatusFilter": open_auction_status_filter +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.list/pageToken": page_token +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.removeDeal": remove_creative_deal +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.removeDeal/accountId": account_id +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.removeDeal/buyerCreativeId": buyer_creative_id +"/adexchangebuyer:v1.4/adexchangebuyer.creatives.removeDeal/dealId": deal_id +"/adexchangebuyer:v1.4/adexchangebuyer.marketplacedeals.delete": delete_marketplacedeal_order_deals +"/adexchangebuyer:v1.4/adexchangebuyer.marketplacedeals.delete/proposalId": proposal_id +"/adexchangebuyer:v1.4/adexchangebuyer.marketplacedeals.insert": insert_marketplacedeal +"/adexchangebuyer:v1.4/adexchangebuyer.marketplacedeals.insert/proposalId": proposal_id +"/adexchangebuyer:v1.4/adexchangebuyer.marketplacedeals.list": list_marketplacedeals +"/adexchangebuyer:v1.4/adexchangebuyer.marketplacedeals.list/proposalId": proposal_id +"/adexchangebuyer:v1.4/adexchangebuyer.marketplacedeals.update": update_marketplacedeal +"/adexchangebuyer:v1.4/adexchangebuyer.marketplacedeals.update/proposalId": proposal_id +"/adexchangebuyer:v1.4/adexchangebuyer.marketplacenotes.insert": insert_marketplacenote +"/adexchangebuyer:v1.4/adexchangebuyer.marketplacenotes.insert/proposalId": proposal_id +"/adexchangebuyer:v1.4/adexchangebuyer.marketplacenotes.list": list_marketplacenotes +"/adexchangebuyer:v1.4/adexchangebuyer.marketplacenotes.list/proposalId": proposal_id +"/adexchangebuyer:v1.4/adexchangebuyer.performanceReport.list": list_performance_reports +"/adexchangebuyer:v1.4/adexchangebuyer.performanceReport.list/accountId": account_id +"/adexchangebuyer:v1.4/adexchangebuyer.performanceReport.list/endDateTime": end_date_time +"/adexchangebuyer:v1.4/adexchangebuyer.performanceReport.list/maxResults": max_results +"/adexchangebuyer:v1.4/adexchangebuyer.performanceReport.list/pageToken": page_token +"/adexchangebuyer:v1.4/adexchangebuyer.performanceReport.list/startDateTime": start_date_time +"/adexchangebuyer:v1.4/adexchangebuyer.pretargetingConfig.delete": delete_pretargeting_config +"/adexchangebuyer:v1.4/adexchangebuyer.pretargetingConfig.delete/accountId": account_id +"/adexchangebuyer:v1.4/adexchangebuyer.pretargetingConfig.delete/configId": config_id +"/adexchangebuyer:v1.4/adexchangebuyer.pretargetingConfig.get": get_pretargeting_config +"/adexchangebuyer:v1.4/adexchangebuyer.pretargetingConfig.get/accountId": account_id +"/adexchangebuyer:v1.4/adexchangebuyer.pretargetingConfig.get/configId": config_id +"/adexchangebuyer:v1.4/adexchangebuyer.pretargetingConfig.insert": insert_pretargeting_config +"/adexchangebuyer:v1.4/adexchangebuyer.pretargetingConfig.insert/accountId": account_id +"/adexchangebuyer:v1.4/adexchangebuyer.pretargetingConfig.list": list_pretargeting_configs +"/adexchangebuyer:v1.4/adexchangebuyer.pretargetingConfig.list/accountId": account_id +"/adexchangebuyer:v1.4/adexchangebuyer.pretargetingConfig.patch": patch_pretargeting_config +"/adexchangebuyer:v1.4/adexchangebuyer.pretargetingConfig.patch/accountId": account_id +"/adexchangebuyer:v1.4/adexchangebuyer.pretargetingConfig.patch/configId": config_id +"/adexchangebuyer:v1.4/adexchangebuyer.pretargetingConfig.update": update_pretargeting_config +"/adexchangebuyer:v1.4/adexchangebuyer.pretargetingConfig.update/accountId": account_id +"/adexchangebuyer:v1.4/adexchangebuyer.pretargetingConfig.update/configId": config_id +"/adexchangebuyer:v1.4/adexchangebuyer.products.get": get_product +"/adexchangebuyer:v1.4/adexchangebuyer.products.get/productId": product_id +"/adexchangebuyer:v1.4/adexchangebuyer.products.search": search_products +"/adexchangebuyer:v1.4/adexchangebuyer.products.search/pqlQuery": pql_query +"/adexchangebuyer:v1.4/adexchangebuyer.proposals.get": get_proposal +"/adexchangebuyer:v1.4/adexchangebuyer.proposals.get/proposalId": proposal_id +"/adexchangebuyer:v1.4/adexchangebuyer.proposals.insert": insert_proposal +"/adexchangebuyer:v1.4/adexchangebuyer.proposals.patch": patch_proposal +"/adexchangebuyer:v1.4/adexchangebuyer.proposals.patch/proposalId": proposal_id +"/adexchangebuyer:v1.4/adexchangebuyer.proposals.patch/revisionNumber": revision_number +"/adexchangebuyer:v1.4/adexchangebuyer.proposals.patch/updateAction": update_action +"/adexchangebuyer:v1.4/adexchangebuyer.proposals.search": search_proposals +"/adexchangebuyer:v1.4/adexchangebuyer.proposals.search/pqlQuery": pql_query +"/adexchangebuyer:v1.4/adexchangebuyer.proposals.update": update_proposal +"/adexchangebuyer:v1.4/adexchangebuyer.proposals.update/proposalId": proposal_id +"/adexchangebuyer:v1.4/adexchangebuyer.proposals.update/revisionNumber": revision_number +"/adexchangebuyer:v1.4/adexchangebuyer.proposals.update/updateAction": update_action +"/adexchangebuyer:v1.4/Account": account +"/adexchangebuyer:v1.4/Account/bidderLocation": bidder_location +"/adexchangebuyer:v1.4/Account/bidderLocation/bidder_location": bidder_location +"/adexchangebuyer:v1.4/Account/bidderLocation/bidder_location/maximumQps": maximum_qps +"/adexchangebuyer:v1.4/Account/bidderLocation/bidder_location/region": region +"/adexchangebuyer:v1.4/Account/bidderLocation/bidder_location/url": url +"/adexchangebuyer:v1.4/Account/cookieMatchingNid": cookie_matching_nid +"/adexchangebuyer:v1.4/Account/cookieMatchingUrl": cookie_matching_url +"/adexchangebuyer:v1.4/Account/id": id +"/adexchangebuyer:v1.4/Account/kind": kind +"/adexchangebuyer:v1.4/Account/maximumActiveCreatives": maximum_active_creatives +"/adexchangebuyer:v1.4/Account/maximumTotalQps": maximum_total_qps +"/adexchangebuyer:v1.4/Account/numberActiveCreatives": number_active_creatives +"/adexchangebuyer:v1.4/AccountsList": accounts_list +"/adexchangebuyer:v1.4/AccountsList/items": items +"/adexchangebuyer:v1.4/AccountsList/items/item": item +"/adexchangebuyer:v1.4/AccountsList/kind": kind +"/adexchangebuyer:v1.4/AddOrderDealsRequest": add_order_deals_request +"/adexchangebuyer:v1.4/AddOrderDealsRequest/deals": deals +"/adexchangebuyer:v1.4/AddOrderDealsRequest/deals/deal": deal +"/adexchangebuyer:v1.4/AddOrderDealsRequest/proposalRevisionNumber": proposal_revision_number +"/adexchangebuyer:v1.4/AddOrderDealsRequest/updateAction": update_action +"/adexchangebuyer:v1.4/AddOrderDealsResponse": add_order_deals_response +"/adexchangebuyer:v1.4/AddOrderDealsResponse/deals": deals +"/adexchangebuyer:v1.4/AddOrderDealsResponse/deals/deal": deal +"/adexchangebuyer:v1.4/AddOrderDealsResponse/proposalRevisionNumber": proposal_revision_number +"/adexchangebuyer:v1.4/AddOrderNotesRequest": add_order_notes_request +"/adexchangebuyer:v1.4/AddOrderNotesRequest/notes": notes +"/adexchangebuyer:v1.4/AddOrderNotesRequest/notes/note": note +"/adexchangebuyer:v1.4/AddOrderNotesResponse": add_order_notes_response +"/adexchangebuyer:v1.4/AddOrderNotesResponse/notes": notes +"/adexchangebuyer:v1.4/AddOrderNotesResponse/notes/note": note +"/adexchangebuyer:v1.4/BillingInfo": billing_info +"/adexchangebuyer:v1.4/BillingInfo/accountId": account_id +"/adexchangebuyer:v1.4/BillingInfo/accountName": account_name +"/adexchangebuyer:v1.4/BillingInfo/billingId": billing_id +"/adexchangebuyer:v1.4/BillingInfo/billingId/billing_id": billing_id +"/adexchangebuyer:v1.4/BillingInfo/kind": kind +"/adexchangebuyer:v1.4/BillingInfoList": billing_info_list +"/adexchangebuyer:v1.4/BillingInfoList/items": items +"/adexchangebuyer:v1.4/BillingInfoList/items/item": item +"/adexchangebuyer:v1.4/BillingInfoList/kind": kind +"/adexchangebuyer:v1.4/Budget": budget +"/adexchangebuyer:v1.4/Budget/accountId": account_id +"/adexchangebuyer:v1.4/Budget/billingId": billing_id +"/adexchangebuyer:v1.4/Budget/budgetAmount": budget_amount +"/adexchangebuyer:v1.4/Budget/currencyCode": currency_code +"/adexchangebuyer:v1.4/Budget/id": id +"/adexchangebuyer:v1.4/Budget/kind": kind +"/adexchangebuyer:v1.4/Buyer": buyer +"/adexchangebuyer:v1.4/Buyer/accountId": account_id +"/adexchangebuyer:v1.4/ContactInformation": contact_information +"/adexchangebuyer:v1.4/ContactInformation/email": email +"/adexchangebuyer:v1.4/ContactInformation/name": name +"/adexchangebuyer:v1.4/CreateOrdersRequest": create_orders_request +"/adexchangebuyer:v1.4/CreateOrdersRequest/proposals": proposals +"/adexchangebuyer:v1.4/CreateOrdersRequest/proposals/proposal": proposal +"/adexchangebuyer:v1.4/CreateOrdersRequest/webPropertyCode": web_property_code +"/adexchangebuyer:v1.4/CreateOrdersResponse": create_orders_response +"/adexchangebuyer:v1.4/CreateOrdersResponse/proposals": proposals +"/adexchangebuyer:v1.4/CreateOrdersResponse/proposals/proposal": proposal +"/adexchangebuyer:v1.4/Creative": creative +"/adexchangebuyer:v1.4/Creative/HTMLSnippet": html_snippet +"/adexchangebuyer:v1.4/Creative/accountId": account_id +"/adexchangebuyer:v1.4/Creative/advertiserId": advertiser_id +"/adexchangebuyer:v1.4/Creative/advertiserId/advertiser_id": advertiser_id +"/adexchangebuyer:v1.4/Creative/advertiserName": advertiser_name +"/adexchangebuyer:v1.4/Creative/agencyId": agency_id +"/adexchangebuyer:v1.4/Creative/apiUploadTimestamp": api_upload_timestamp +"/adexchangebuyer:v1.4/Creative/attribute": attribute +"/adexchangebuyer:v1.4/Creative/attribute/attribute": attribute +"/adexchangebuyer:v1.4/Creative/buyerCreativeId": buyer_creative_id +"/adexchangebuyer:v1.4/Creative/clickThroughUrl": click_through_url +"/adexchangebuyer:v1.4/Creative/clickThroughUrl/click_through_url": click_through_url +"/adexchangebuyer:v1.4/Creative/corrections": corrections +"/adexchangebuyer:v1.4/Creative/corrections/correction": correction +"/adexchangebuyer:v1.4/Creative/corrections/correction/details": details +"/adexchangebuyer:v1.4/Creative/corrections/correction/details/detail": detail +"/adexchangebuyer:v1.4/Creative/corrections/correction/reason": reason +"/adexchangebuyer:v1.4/Creative/dealsStatus": deals_status +"/adexchangebuyer:v1.4/Creative/filteringReasons": filtering_reasons +"/adexchangebuyer:v1.4/Creative/filteringReasons/date": date +"/adexchangebuyer:v1.4/Creative/filteringReasons/reasons": reasons +"/adexchangebuyer:v1.4/Creative/filteringReasons/reasons/reason": reason +"/adexchangebuyer:v1.4/Creative/filteringReasons/reasons/reason/filteringCount": filtering_count +"/adexchangebuyer:v1.4/Creative/filteringReasons/reasons/reason/filteringStatus": filtering_status +"/adexchangebuyer:v1.4/Creative/height": height +"/adexchangebuyer:v1.4/Creative/impressionTrackingUrl": impression_tracking_url +"/adexchangebuyer:v1.4/Creative/impressionTrackingUrl/impression_tracking_url": impression_tracking_url +"/adexchangebuyer:v1.4/Creative/kind": kind +"/adexchangebuyer:v1.4/Creative/nativeAd": native_ad +"/adexchangebuyer:v1.4/Creative/nativeAd/advertiser": advertiser +"/adexchangebuyer:v1.4/Creative/nativeAd/appIcon": app_icon +"/adexchangebuyer:v1.4/Creative/nativeAd/appIcon/height": height +"/adexchangebuyer:v1.4/Creative/nativeAd/appIcon/url": url +"/adexchangebuyer:v1.4/Creative/nativeAd/appIcon/width": width +"/adexchangebuyer:v1.4/Creative/nativeAd/body": body +"/adexchangebuyer:v1.4/Creative/nativeAd/callToAction": call_to_action +"/adexchangebuyer:v1.4/Creative/nativeAd/clickTrackingUrl": click_tracking_url +"/adexchangebuyer:v1.4/Creative/nativeAd/headline": headline +"/adexchangebuyer:v1.4/Creative/nativeAd/image": image +"/adexchangebuyer:v1.4/Creative/nativeAd/image/height": height +"/adexchangebuyer:v1.4/Creative/nativeAd/image/url": url +"/adexchangebuyer:v1.4/Creative/nativeAd/image/width": width +"/adexchangebuyer:v1.4/Creative/nativeAd/impressionTrackingUrl": impression_tracking_url +"/adexchangebuyer:v1.4/Creative/nativeAd/impressionTrackingUrl/impression_tracking_url": impression_tracking_url +"/adexchangebuyer:v1.4/Creative/nativeAd/logo": logo +"/adexchangebuyer:v1.4/Creative/nativeAd/logo/height": height +"/adexchangebuyer:v1.4/Creative/nativeAd/logo/url": url +"/adexchangebuyer:v1.4/Creative/nativeAd/logo/width": width +"/adexchangebuyer:v1.4/Creative/nativeAd/price": price +"/adexchangebuyer:v1.4/Creative/nativeAd/starRating": star_rating +"/adexchangebuyer:v1.4/Creative/nativeAd/store": store +"/adexchangebuyer:v1.4/Creative/openAuctionStatus": open_auction_status +"/adexchangebuyer:v1.4/Creative/productCategories": product_categories +"/adexchangebuyer:v1.4/Creative/productCategories/product_category": product_category +"/adexchangebuyer:v1.4/Creative/restrictedCategories": restricted_categories +"/adexchangebuyer:v1.4/Creative/restrictedCategories/restricted_category": restricted_category +"/adexchangebuyer:v1.4/Creative/sensitiveCategories": sensitive_categories +"/adexchangebuyer:v1.4/Creative/sensitiveCategories/sensitive_category": sensitive_category +"/adexchangebuyer:v1.4/Creative/servingRestrictions": serving_restrictions +"/adexchangebuyer:v1.4/Creative/servingRestrictions/serving_restriction": serving_restriction +"/adexchangebuyer:v1.4/Creative/servingRestrictions/serving_restriction/contexts": contexts +"/adexchangebuyer:v1.4/Creative/servingRestrictions/serving_restriction/contexts/context": context +"/adexchangebuyer:v1.4/Creative/servingRestrictions/serving_restriction/contexts/context/auctionType": auction_type +"/adexchangebuyer:v1.4/Creative/servingRestrictions/serving_restriction/contexts/context/auctionType/auction_type": auction_type +"/adexchangebuyer:v1.4/Creative/servingRestrictions/serving_restriction/contexts/context/contextType": context_type +"/adexchangebuyer:v1.4/Creative/servingRestrictions/serving_restriction/contexts/context/geoCriteriaId": geo_criteria_id +"/adexchangebuyer:v1.4/Creative/servingRestrictions/serving_restriction/contexts/context/geoCriteriaId/geo_criteria_id": geo_criteria_id +"/adexchangebuyer:v1.4/Creative/servingRestrictions/serving_restriction/contexts/context/platform": platform +"/adexchangebuyer:v1.4/Creative/servingRestrictions/serving_restriction/contexts/context/platform/platform": platform +"/adexchangebuyer:v1.4/Creative/servingRestrictions/serving_restriction/disapprovalReasons": disapproval_reasons +"/adexchangebuyer:v1.4/Creative/servingRestrictions/serving_restriction/disapprovalReasons/disapproval_reason": disapproval_reason +"/adexchangebuyer:v1.4/Creative/servingRestrictions/serving_restriction/disapprovalReasons/disapproval_reason/details": details +"/adexchangebuyer:v1.4/Creative/servingRestrictions/serving_restriction/disapprovalReasons/disapproval_reason/details/detail": detail +"/adexchangebuyer:v1.4/Creative/servingRestrictions/serving_restriction/disapprovalReasons/disapproval_reason/reason": reason +"/adexchangebuyer:v1.4/Creative/servingRestrictions/serving_restriction/reason": reason +"/adexchangebuyer:v1.4/Creative/vendorType": vendor_type +"/adexchangebuyer:v1.4/Creative/vendorType/vendor_type": vendor_type +"/adexchangebuyer:v1.4/Creative/version": version +"/adexchangebuyer:v1.4/Creative/videoURL": video_url +"/adexchangebuyer:v1.4/Creative/width": width +"/adexchangebuyer:v1.4/CreativesList": creatives_list +"/adexchangebuyer:v1.4/CreativesList/items": items +"/adexchangebuyer:v1.4/CreativesList/items/item": item +"/adexchangebuyer:v1.4/CreativesList/kind": kind +"/adexchangebuyer:v1.4/CreativesList/nextPageToken": next_page_token +"/adexchangebuyer:v1.4/DealTerms": deal_terms +"/adexchangebuyer:v1.4/DealTerms/brandingType": branding_type +"/adexchangebuyer:v1.4/DealTerms/description": description +"/adexchangebuyer:v1.4/DealTerms/estimatedGrossSpend": estimated_gross_spend +"/adexchangebuyer:v1.4/DealTerms/estimatedImpressionsPerDay": estimated_impressions_per_day +"/adexchangebuyer:v1.4/DealTerms/guaranteedFixedPriceTerms": guaranteed_fixed_price_terms +"/adexchangebuyer:v1.4/DealTerms/nonGuaranteedAuctionTerms": non_guaranteed_auction_terms +"/adexchangebuyer:v1.4/DealTerms/nonGuaranteedFixedPriceTerms": non_guaranteed_fixed_price_terms +"/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTerms": deal_terms_guaranteed_fixed_price_terms +"/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTerms/fixedPrices": fixed_prices +"/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTerms/fixedPrices/fixed_price": fixed_price +"/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTerms/guaranteedImpressions": guaranteed_impressions +"/adexchangebuyer:v1.4/DealTermsGuaranteedFixedPriceTerms/guaranteedLooks": guaranteed_looks +"/adexchangebuyer:v1.4/DealTermsNonGuaranteedAuctionTerms": deal_terms_non_guaranteed_auction_terms +"/adexchangebuyer:v1.4/DealTermsNonGuaranteedAuctionTerms/privateAuctionId": private_auction_id +"/adexchangebuyer:v1.4/DealTermsNonGuaranteedAuctionTerms/reservePricePerBuyers": reserve_price_per_buyers +"/adexchangebuyer:v1.4/DealTermsNonGuaranteedAuctionTerms/reservePricePerBuyers/reserve_price_per_buyer": reserve_price_per_buyer +"/adexchangebuyer:v1.4/DealTermsNonGuaranteedFixedPriceTerms": deal_terms_non_guaranteed_fixed_price_terms +"/adexchangebuyer:v1.4/DealTermsNonGuaranteedFixedPriceTerms/fixedPrices": fixed_prices +"/adexchangebuyer:v1.4/DealTermsNonGuaranteedFixedPriceTerms/fixedPrices/fixed_price": fixed_price +"/adexchangebuyer:v1.4/DeleteOrderDealsRequest": delete_order_deals_request +"/adexchangebuyer:v1.4/DeleteOrderDealsRequest/dealIds": deal_ids +"/adexchangebuyer:v1.4/DeleteOrderDealsRequest/dealIds/deal_id": deal_id +"/adexchangebuyer:v1.4/DeleteOrderDealsRequest/proposalRevisionNumber": proposal_revision_number +"/adexchangebuyer:v1.4/DeleteOrderDealsRequest/updateAction": update_action +"/adexchangebuyer:v1.4/DeleteOrderDealsResponse": delete_order_deals_response +"/adexchangebuyer:v1.4/DeleteOrderDealsResponse/deals": deals +"/adexchangebuyer:v1.4/DeleteOrderDealsResponse/deals/deal": deal +"/adexchangebuyer:v1.4/DeleteOrderDealsResponse/proposalRevisionNumber": proposal_revision_number +"/adexchangebuyer:v1.4/DeliveryControl": delivery_control +"/adexchangebuyer:v1.4/DeliveryControl/creativeBlockingLevel": creative_blocking_level +"/adexchangebuyer:v1.4/DeliveryControl/deliveryRateType": delivery_rate_type +"/adexchangebuyer:v1.4/DeliveryControl/frequencyCaps": frequency_caps +"/adexchangebuyer:v1.4/DeliveryControl/frequencyCaps/frequency_cap": frequency_cap +"/adexchangebuyer:v1.4/DeliveryControlFrequencyCap": delivery_control_frequency_cap +"/adexchangebuyer:v1.4/DeliveryControlFrequencyCap/maxImpressions": max_impressions +"/adexchangebuyer:v1.4/DeliveryControlFrequencyCap/numTimeUnits": num_time_units +"/adexchangebuyer:v1.4/DeliveryControlFrequencyCap/timeUnitType": time_unit_type +"/adexchangebuyer:v1.4/EditAllOrderDealsRequest": edit_all_order_deals_request +"/adexchangebuyer:v1.4/EditAllOrderDealsRequest/deals": deals +"/adexchangebuyer:v1.4/EditAllOrderDealsRequest/deals/deal": deal +"/adexchangebuyer:v1.4/EditAllOrderDealsRequest/proposal": proposal +"/adexchangebuyer:v1.4/EditAllOrderDealsRequest/proposalRevisionNumber": proposal_revision_number +"/adexchangebuyer:v1.4/EditAllOrderDealsRequest/updateAction": update_action +"/adexchangebuyer:v1.4/EditAllOrderDealsResponse": edit_all_order_deals_response +"/adexchangebuyer:v1.4/EditAllOrderDealsResponse/deals": deals +"/adexchangebuyer:v1.4/EditAllOrderDealsResponse/deals/deal": deal +"/adexchangebuyer:v1.4/GetOffersResponse": get_offers_response +"/adexchangebuyer:v1.4/GetOffersResponse/products": products +"/adexchangebuyer:v1.4/GetOffersResponse/products/product": product +"/adexchangebuyer:v1.4/GetOrderDealsResponse": get_order_deals_response +"/adexchangebuyer:v1.4/GetOrderDealsResponse/deals": deals +"/adexchangebuyer:v1.4/GetOrderDealsResponse/deals/deal": deal +"/adexchangebuyer:v1.4/GetOrderNotesResponse": get_order_notes_response +"/adexchangebuyer:v1.4/GetOrderNotesResponse/notes": notes +"/adexchangebuyer:v1.4/GetOrderNotesResponse/notes/note": note +"/adexchangebuyer:v1.4/GetOrdersResponse": get_orders_response +"/adexchangebuyer:v1.4/GetOrdersResponse/proposals": proposals +"/adexchangebuyer:v1.4/GetOrdersResponse/proposals/proposal": proposal +"/adexchangebuyer:v1.4/MarketplaceDeal": marketplace_deal +"/adexchangebuyer:v1.4/MarketplaceDeal/buyerPrivateData": buyer_private_data +"/adexchangebuyer:v1.4/MarketplaceDeal/creationTimeMs": creation_time_ms +"/adexchangebuyer:v1.4/MarketplaceDeal/creativePreApprovalPolicy": creative_pre_approval_policy +"/adexchangebuyer:v1.4/MarketplaceDeal/dealId": deal_id +"/adexchangebuyer:v1.4/MarketplaceDeal/deliveryControl": delivery_control +"/adexchangebuyer:v1.4/MarketplaceDeal/externalDealId": external_deal_id +"/adexchangebuyer:v1.4/MarketplaceDeal/flightEndTimeMs": flight_end_time_ms +"/adexchangebuyer:v1.4/MarketplaceDeal/flightStartTimeMs": flight_start_time_ms +"/adexchangebuyer:v1.4/MarketplaceDeal/inventoryDescription": inventory_description +"/adexchangebuyer:v1.4/MarketplaceDeal/kind": kind +"/adexchangebuyer:v1.4/MarketplaceDeal/lastUpdateTimeMs": last_update_time_ms +"/adexchangebuyer:v1.4/MarketplaceDeal/name": name +"/adexchangebuyer:v1.4/MarketplaceDeal/productId": product_id +"/adexchangebuyer:v1.4/MarketplaceDeal/productRevisionNumber": product_revision_number +"/adexchangebuyer:v1.4/MarketplaceDeal/proposalId": proposal_id +"/adexchangebuyer:v1.4/MarketplaceDeal/sellerContacts": seller_contacts +"/adexchangebuyer:v1.4/MarketplaceDeal/sellerContacts/seller_contact": seller_contact +"/adexchangebuyer:v1.4/MarketplaceDeal/sharedTargetings": shared_targetings +"/adexchangebuyer:v1.4/MarketplaceDeal/sharedTargetings/shared_targeting": shared_targeting +"/adexchangebuyer:v1.4/MarketplaceDeal/syndicationProduct": syndication_product +"/adexchangebuyer:v1.4/MarketplaceDeal/terms": terms +"/adexchangebuyer:v1.4/MarketplaceDeal/webPropertyCode": web_property_code +"/adexchangebuyer:v1.4/MarketplaceDealParty": marketplace_deal_party +"/adexchangebuyer:v1.4/MarketplaceDealParty/buyer": buyer +"/adexchangebuyer:v1.4/MarketplaceDealParty/seller": seller +"/adexchangebuyer:v1.4/MarketplaceLabel": marketplace_label +"/adexchangebuyer:v1.4/MarketplaceLabel/accountId": account_id +"/adexchangebuyer:v1.4/MarketplaceLabel/createTimeMs": create_time_ms +"/adexchangebuyer:v1.4/MarketplaceLabel/deprecatedMarketplaceDealParty": deprecated_marketplace_deal_party +"/adexchangebuyer:v1.4/MarketplaceLabel/label": label +"/adexchangebuyer:v1.4/MarketplaceNote": marketplace_note +"/adexchangebuyer:v1.4/MarketplaceNote/creatorRole": creator_role +"/adexchangebuyer:v1.4/MarketplaceNote/dealId": deal_id +"/adexchangebuyer:v1.4/MarketplaceNote/kind": kind +"/adexchangebuyer:v1.4/MarketplaceNote/note": note +"/adexchangebuyer:v1.4/MarketplaceNote/noteId": note_id +"/adexchangebuyer:v1.4/MarketplaceNote/proposalId": proposal_id +"/adexchangebuyer:v1.4/MarketplaceNote/proposalRevisionNumber": proposal_revision_number +"/adexchangebuyer:v1.4/MarketplaceNote/timestampMs": timestamp_ms +"/adexchangebuyer:v1.4/PerformanceReport": performance_report +"/adexchangebuyer:v1.4/PerformanceReport/bidRate": bid_rate +"/adexchangebuyer:v1.4/PerformanceReport/bidRequestRate": bid_request_rate +"/adexchangebuyer:v1.4/PerformanceReport/calloutStatusRate": callout_status_rate +"/adexchangebuyer:v1.4/PerformanceReport/calloutStatusRate/callout_status_rate": callout_status_rate +"/adexchangebuyer:v1.4/PerformanceReport/cookieMatcherStatusRate": cookie_matcher_status_rate +"/adexchangebuyer:v1.4/PerformanceReport/cookieMatcherStatusRate/cookie_matcher_status_rate": cookie_matcher_status_rate +"/adexchangebuyer:v1.4/PerformanceReport/creativeStatusRate": creative_status_rate +"/adexchangebuyer:v1.4/PerformanceReport/creativeStatusRate/creative_status_rate": creative_status_rate +"/adexchangebuyer:v1.4/PerformanceReport/filteredBidRate": filtered_bid_rate +"/adexchangebuyer:v1.4/PerformanceReport/hostedMatchStatusRate": hosted_match_status_rate +"/adexchangebuyer:v1.4/PerformanceReport/hostedMatchStatusRate/hosted_match_status_rate": hosted_match_status_rate +"/adexchangebuyer:v1.4/PerformanceReport/inventoryMatchRate": inventory_match_rate +"/adexchangebuyer:v1.4/PerformanceReport/kind": kind +"/adexchangebuyer:v1.4/PerformanceReport/noQuotaInRegion": no_quota_in_region +"/adexchangebuyer:v1.4/PerformanceReport/outOfQuota": out_of_quota +"/adexchangebuyer:v1.4/PerformanceReport/pixelMatchRequests": pixel_match_requests +"/adexchangebuyer:v1.4/PerformanceReport/pixelMatchResponses": pixel_match_responses +"/adexchangebuyer:v1.4/PerformanceReport/quotaConfiguredLimit": quota_configured_limit +"/adexchangebuyer:v1.4/PerformanceReport/quotaThrottledLimit": quota_throttled_limit +"/adexchangebuyer:v1.4/PerformanceReport/region": region +"/adexchangebuyer:v1.4/PerformanceReport/successfulRequestRate": successful_request_rate +"/adexchangebuyer:v1.4/PerformanceReport/timestamp": timestamp +"/adexchangebuyer:v1.4/PerformanceReport/unsuccessfulRequestRate": unsuccessful_request_rate +"/adexchangebuyer:v1.4/PerformanceReportList": performance_report_list +"/adexchangebuyer:v1.4/PerformanceReportList/kind": kind +"/adexchangebuyer:v1.4/PerformanceReportList/performanceReport": performance_report +"/adexchangebuyer:v1.4/PerformanceReportList/performanceReport/performance_report": performance_report +"/adexchangebuyer:v1.4/PretargetingConfig": pretargeting_config +"/adexchangebuyer:v1.4/PretargetingConfig/billingId": billing_id +"/adexchangebuyer:v1.4/PretargetingConfig/configId": config_id +"/adexchangebuyer:v1.4/PretargetingConfig/configName": config_name +"/adexchangebuyer:v1.4/PretargetingConfig/creativeType": creative_type +"/adexchangebuyer:v1.4/PretargetingConfig/creativeType/creative_type": creative_type +"/adexchangebuyer:v1.4/PretargetingConfig/dimensions": dimensions +"/adexchangebuyer:v1.4/PretargetingConfig/dimensions/dimension": dimension +"/adexchangebuyer:v1.4/PretargetingConfig/dimensions/dimension/height": height +"/adexchangebuyer:v1.4/PretargetingConfig/dimensions/dimension/width": width +"/adexchangebuyer:v1.4/PretargetingConfig/excludedContentLabels": excluded_content_labels +"/adexchangebuyer:v1.4/PretargetingConfig/excludedContentLabels/excluded_content_label": excluded_content_label +"/adexchangebuyer:v1.4/PretargetingConfig/excludedGeoCriteriaIds": excluded_geo_criteria_ids +"/adexchangebuyer:v1.4/PretargetingConfig/excludedGeoCriteriaIds/excluded_geo_criteria_id": excluded_geo_criteria_id +"/adexchangebuyer:v1.4/PretargetingConfig/excludedPlacements": excluded_placements +"/adexchangebuyer:v1.4/PretargetingConfig/excludedPlacements/excluded_placement": excluded_placement +"/adexchangebuyer:v1.4/PretargetingConfig/excludedPlacements/excluded_placement/token": token +"/adexchangebuyer:v1.4/PretargetingConfig/excludedPlacements/excluded_placement/type": type +"/adexchangebuyer:v1.4/PretargetingConfig/excludedUserLists": excluded_user_lists +"/adexchangebuyer:v1.4/PretargetingConfig/excludedUserLists/excluded_user_list": excluded_user_list +"/adexchangebuyer:v1.4/PretargetingConfig/excludedVerticals": excluded_verticals +"/adexchangebuyer:v1.4/PretargetingConfig/excludedVerticals/excluded_vertical": excluded_vertical +"/adexchangebuyer:v1.4/PretargetingConfig/geoCriteriaIds": geo_criteria_ids +"/adexchangebuyer:v1.4/PretargetingConfig/geoCriteriaIds/geo_criteria_id": geo_criteria_id +"/adexchangebuyer:v1.4/PretargetingConfig/isActive": is_active +"/adexchangebuyer:v1.4/PretargetingConfig/kind": kind +"/adexchangebuyer:v1.4/PretargetingConfig/languages": languages +"/adexchangebuyer:v1.4/PretargetingConfig/languages/language": language +"/adexchangebuyer:v1.4/PretargetingConfig/mobileCarriers": mobile_carriers +"/adexchangebuyer:v1.4/PretargetingConfig/mobileCarriers/mobile_carrier": mobile_carrier +"/adexchangebuyer:v1.4/PretargetingConfig/mobileDevices": mobile_devices +"/adexchangebuyer:v1.4/PretargetingConfig/mobileDevices/mobile_device": mobile_device +"/adexchangebuyer:v1.4/PretargetingConfig/mobileOperatingSystemVersions": mobile_operating_system_versions +"/adexchangebuyer:v1.4/PretargetingConfig/mobileOperatingSystemVersions/mobile_operating_system_version": mobile_operating_system_version +"/adexchangebuyer:v1.4/PretargetingConfig/placements": placements +"/adexchangebuyer:v1.4/PretargetingConfig/placements/placement": placement +"/adexchangebuyer:v1.4/PretargetingConfig/placements/placement/token": token +"/adexchangebuyer:v1.4/PretargetingConfig/placements/placement/type": type +"/adexchangebuyer:v1.4/PretargetingConfig/platforms": platforms +"/adexchangebuyer:v1.4/PretargetingConfig/platforms/platform": platform +"/adexchangebuyer:v1.4/PretargetingConfig/supportedCreativeAttributes": supported_creative_attributes +"/adexchangebuyer:v1.4/PretargetingConfig/supportedCreativeAttributes/supported_creative_attribute": supported_creative_attribute +"/adexchangebuyer:v1.4/PretargetingConfig/userLists": user_lists +"/adexchangebuyer:v1.4/PretargetingConfig/userLists/user_list": user_list +"/adexchangebuyer:v1.4/PretargetingConfig/vendorTypes": vendor_types +"/adexchangebuyer:v1.4/PretargetingConfig/vendorTypes/vendor_type": vendor_type +"/adexchangebuyer:v1.4/PretargetingConfig/verticals": verticals +"/adexchangebuyer:v1.4/PretargetingConfig/verticals/vertical": vertical +"/adexchangebuyer:v1.4/PretargetingConfig/videoPlayerSizes": video_player_sizes +"/adexchangebuyer:v1.4/PretargetingConfig/videoPlayerSizes/video_player_size": video_player_size +"/adexchangebuyer:v1.4/PretargetingConfig/videoPlayerSizes/video_player_size/aspectRatio": aspect_ratio +"/adexchangebuyer:v1.4/PretargetingConfig/videoPlayerSizes/video_player_size/minHeight": min_height +"/adexchangebuyer:v1.4/PretargetingConfig/videoPlayerSizes/video_player_size/minWidth": min_width +"/adexchangebuyer:v1.4/PretargetingConfigList": pretargeting_config_list +"/adexchangebuyer:v1.4/PretargetingConfigList/items": items +"/adexchangebuyer:v1.4/PretargetingConfigList/items/item": item +"/adexchangebuyer:v1.4/PretargetingConfigList/kind": kind +"/adexchangebuyer:v1.4/Price": price +"/adexchangebuyer:v1.4/Price/amountMicros": amount_micros +"/adexchangebuyer:v1.4/Price/currencyCode": currency_code +"/adexchangebuyer:v1.4/Price/pricingType": pricing_type +"/adexchangebuyer:v1.4/PricePerBuyer": price_per_buyer +"/adexchangebuyer:v1.4/PricePerBuyer/buyer": buyer +"/adexchangebuyer:v1.4/PricePerBuyer/price": price +"/adexchangebuyer:v1.4/PrivateData": private_data +"/adexchangebuyer:v1.4/PrivateData/referenceId": reference_id +"/adexchangebuyer:v1.4/PrivateData/referencePayload": reference_payload +"/adexchangebuyer:v1.4/Product": product +"/adexchangebuyer:v1.4/Product/creationTimeMs": creation_time_ms +"/adexchangebuyer:v1.4/Product/creatorContacts": creator_contacts +"/adexchangebuyer:v1.4/Product/creatorContacts/creator_contact": creator_contact +"/adexchangebuyer:v1.4/Product/flightEndTimeMs": flight_end_time_ms +"/adexchangebuyer:v1.4/Product/flightStartTimeMs": flight_start_time_ms +"/adexchangebuyer:v1.4/Product/hasCreatorSignedOff": has_creator_signed_off +"/adexchangebuyer:v1.4/Product/inventorySource": inventory_source +"/adexchangebuyer:v1.4/Product/kind": kind +"/adexchangebuyer:v1.4/Product/labels": labels +"/adexchangebuyer:v1.4/Product/labels/label": label +"/adexchangebuyer:v1.4/Product/lastUpdateTimeMs": last_update_time_ms +"/adexchangebuyer:v1.4/Product/name": name +"/adexchangebuyer:v1.4/Product/productId": product_id +"/adexchangebuyer:v1.4/Product/revisionNumber": revision_number +"/adexchangebuyer:v1.4/Product/seller": seller +"/adexchangebuyer:v1.4/Product/sharedTargetings": shared_targetings +"/adexchangebuyer:v1.4/Product/sharedTargetings/shared_targeting": shared_targeting +"/adexchangebuyer:v1.4/Product/state": state +"/adexchangebuyer:v1.4/Product/syndicationProduct": syndication_product +"/adexchangebuyer:v1.4/Product/terms": terms +"/adexchangebuyer:v1.4/Product/webPropertyCode": web_property_code +"/adexchangebuyer:v1.4/Proposal": proposal +"/adexchangebuyer:v1.4/Proposal/billedBuyer": billed_buyer +"/adexchangebuyer:v1.4/Proposal/buyer": buyer +"/adexchangebuyer:v1.4/Proposal/buyerContacts": buyer_contacts +"/adexchangebuyer:v1.4/Proposal/buyerContacts/buyer_contact": buyer_contact +"/adexchangebuyer:v1.4/Proposal/buyerPrivateData": buyer_private_data +"/adexchangebuyer:v1.4/Proposal/hasBuyerSignedOff": has_buyer_signed_off +"/adexchangebuyer:v1.4/Proposal/hasSellerSignedOff": has_seller_signed_off +"/adexchangebuyer:v1.4/Proposal/inventorySource": inventory_source +"/adexchangebuyer:v1.4/Proposal/isRenegotiating": is_renegotiating +"/adexchangebuyer:v1.4/Proposal/isSetupComplete": is_setup_complete +"/adexchangebuyer:v1.4/Proposal/kind": kind +"/adexchangebuyer:v1.4/Proposal/labels": labels +"/adexchangebuyer:v1.4/Proposal/labels/label": label +"/adexchangebuyer:v1.4/Proposal/lastUpdaterOrCommentorRole": last_updater_or_commentor_role +"/adexchangebuyer:v1.4/Proposal/lastUpdaterRole": last_updater_role +"/adexchangebuyer:v1.4/Proposal/name": name +"/adexchangebuyer:v1.4/Proposal/originatorRole": originator_role +"/adexchangebuyer:v1.4/Proposal/proposalId": proposal_id +"/adexchangebuyer:v1.4/Proposal/proposalState": proposal_state +"/adexchangebuyer:v1.4/Proposal/revisionNumber": revision_number +"/adexchangebuyer:v1.4/Proposal/revisionTimeMs": revision_time_ms +"/adexchangebuyer:v1.4/Proposal/seller": seller +"/adexchangebuyer:v1.4/Proposal/sellerContacts": seller_contacts +"/adexchangebuyer:v1.4/Proposal/sellerContacts/seller_contact": seller_contact +"/adexchangebuyer:v1.4/Seller": seller +"/adexchangebuyer:v1.4/Seller/accountId": account_id +"/adexchangebuyer:v1.4/Seller/subAccountId": sub_account_id +"/adexchangebuyer:v1.4/SharedTargeting": shared_targeting +"/adexchangebuyer:v1.4/SharedTargeting/exclusions": exclusions +"/adexchangebuyer:v1.4/SharedTargeting/exclusions/exclusion": exclusion +"/adexchangebuyer:v1.4/SharedTargeting/inclusions": inclusions +"/adexchangebuyer:v1.4/SharedTargeting/inclusions/inclusion": inclusion +"/adexchangebuyer:v1.4/SharedTargeting/key": key +"/adexchangebuyer:v1.4/TargetingValue": targeting_value +"/adexchangebuyer:v1.4/TargetingValue/creativeSizeValue": creative_size_value +"/adexchangebuyer:v1.4/TargetingValue/dayPartTargetingValue": day_part_targeting_value +"/adexchangebuyer:v1.4/TargetingValue/longValue": long_value +"/adexchangebuyer:v1.4/TargetingValue/stringValue": string_value +"/adexchangebuyer:v1.4/TargetingValueCreativeSize": targeting_value_creative_size +"/adexchangebuyer:v1.4/TargetingValueCreativeSize/companionSizes": companion_sizes +"/adexchangebuyer:v1.4/TargetingValueCreativeSize/companionSizes/companion_size": companion_size +"/adexchangebuyer:v1.4/TargetingValueCreativeSize/creativeSizeType": creative_size_type +"/adexchangebuyer:v1.4/TargetingValueCreativeSize/size": size +"/adexchangebuyer:v1.4/TargetingValueDayPartTargeting": targeting_value_day_part_targeting +"/adexchangebuyer:v1.4/TargetingValueDayPartTargeting/dayParts": day_parts +"/adexchangebuyer:v1.4/TargetingValueDayPartTargeting/dayParts/day_part": day_part +"/adexchangebuyer:v1.4/TargetingValueDayPartTargeting/timeZoneType": time_zone_type +"/adexchangebuyer:v1.4/TargetingValueDayPartTargetingDayPart": targeting_value_day_part_targeting_day_part +"/adexchangebuyer:v1.4/TargetingValueDayPartTargetingDayPart/dayOfWeek": day_of_week +"/adexchangebuyer:v1.4/TargetingValueDayPartTargetingDayPart/endHour": end_hour +"/adexchangebuyer:v1.4/TargetingValueDayPartTargetingDayPart/endMinute": end_minute +"/adexchangebuyer:v1.4/TargetingValueDayPartTargetingDayPart/startHour": start_hour +"/adexchangebuyer:v1.4/TargetingValueDayPartTargetingDayPart/startMinute": start_minute +"/adexchangebuyer:v1.4/TargetingValueSize": targeting_value_size +"/adexchangebuyer:v1.4/TargetingValueSize/height": height +"/adexchangebuyer:v1.4/TargetingValueSize/width": width "/adexchangeseller:v2.0/fields": fields "/adexchangeseller:v2.0/key": key "/adexchangeseller:v2.0/quotaUser": quota_user @@ -8834,6 +9102,114 @@ "/civicinfo:v2/VoterInfoResponse/precinctId": precinct_id "/civicinfo:v2/VoterInfoResponse/state": state "/civicinfo:v2/VoterInfoResponse/state/state": state +"/cloudbuild:v1/key": key +"/cloudbuild:v1/quotaUser": quota_user +"/cloudbuild:v1/fields": fields +"/cloudbuild:v1/cloudbuild.projects.builds.get": get_project_build +"/cloudbuild:v1/cloudbuild.projects.builds.get/id": id +"/cloudbuild:v1/cloudbuild.projects.builds.get/projectId": project_id +"/cloudbuild:v1/cloudbuild.projects.builds.create": create_project_build +"/cloudbuild:v1/cloudbuild.projects.builds.create/projectId": project_id +"/cloudbuild:v1/cloudbuild.projects.builds.list": list_project_builds +"/cloudbuild:v1/cloudbuild.projects.builds.list/pageSize": page_size +"/cloudbuild:v1/cloudbuild.projects.builds.list/pageToken": page_token +"/cloudbuild:v1/cloudbuild.projects.builds.list/projectId": project_id +"/cloudbuild:v1/cloudbuild.projects.builds.cancel": cancel_build +"/cloudbuild:v1/cloudbuild.projects.builds.cancel/id": id +"/cloudbuild:v1/cloudbuild.projects.builds.cancel/projectId": project_id +"/cloudbuild:v1/cloudbuild.operations.get": get_operation +"/cloudbuild:v1/cloudbuild.operations.get/name": name +"/cloudbuild:v1/cloudbuild.operations.list": list_operations +"/cloudbuild:v1/cloudbuild.operations.list/pageSize": page_size +"/cloudbuild:v1/cloudbuild.operations.list/filter": filter +"/cloudbuild:v1/cloudbuild.operations.list/pageToken": page_token +"/cloudbuild:v1/cloudbuild.operations.list/name": name +"/cloudbuild:v1/Status": status +"/cloudbuild:v1/Status/code": code +"/cloudbuild:v1/Status/details": details +"/cloudbuild:v1/Status/details/detail": detail +"/cloudbuild:v1/Status/details/detail/detail": detail +"/cloudbuild:v1/Status/message": message +"/cloudbuild:v1/BuildOperationMetadata": build_operation_metadata +"/cloudbuild:v1/BuildOperationMetadata/build": build +"/cloudbuild:v1/Source": source +"/cloudbuild:v1/Source/storageSource": storage_source +"/cloudbuild:v1/Operation": operation +"/cloudbuild:v1/Operation/error": error +"/cloudbuild:v1/Operation/done": done +"/cloudbuild:v1/Operation/response": response +"/cloudbuild:v1/Operation/response/response": response +"/cloudbuild:v1/Operation/metadata": metadata +"/cloudbuild:v1/Operation/metadata/metadatum": metadatum +"/cloudbuild:v1/Operation/name": name +"/cloudbuild:v1/BuiltImage": built_image +"/cloudbuild:v1/BuiltImage/digest": digest +"/cloudbuild:v1/BuiltImage/name": name +"/cloudbuild:v1/StorageSource": storage_source +"/cloudbuild:v1/StorageSource/bucket": bucket +"/cloudbuild:v1/StorageSource/object": object +"/cloudbuild:v1/Results": results +"/cloudbuild:v1/Results/images": images +"/cloudbuild:v1/Results/images/image": image +"/cloudbuild:v1/Build": build +"/cloudbuild:v1/Build/id": id +"/cloudbuild:v1/Build/results": results +"/cloudbuild:v1/Build/status": status +"/cloudbuild:v1/Build/finishTime": finish_time +"/cloudbuild:v1/Build/timeout": timeout +"/cloudbuild:v1/Build/steps": steps +"/cloudbuild:v1/Build/steps/step": step +"/cloudbuild:v1/Build/source": source +"/cloudbuild:v1/Build/createTime": create_time +"/cloudbuild:v1/Build/images": images +"/cloudbuild:v1/Build/images/image": image +"/cloudbuild:v1/Build/startTime": start_time +"/cloudbuild:v1/Build/logsBucket": logs_bucket +"/cloudbuild:v1/Build/projectId": project_id +"/cloudbuild:v1/CancelBuildRequest": cancel_build_request +"/cloudbuild:v1/ListOperationsResponse": list_operations_response +"/cloudbuild:v1/ListOperationsResponse/nextPageToken": next_page_token +"/cloudbuild:v1/ListOperationsResponse/operations": operations +"/cloudbuild:v1/ListOperationsResponse/operations/operation": operation +"/cloudbuild:v1/BuildStep": build_step +"/cloudbuild:v1/BuildStep/args": args +"/cloudbuild:v1/BuildStep/args/arg": arg +"/cloudbuild:v1/BuildStep/dir": dir +"/cloudbuild:v1/BuildStep/env": env +"/cloudbuild:v1/BuildStep/env/env": env +"/cloudbuild:v1/BuildStep/name": name +"/cloudbuild:v1/ListBuildsResponse": list_builds_response +"/cloudbuild:v1/ListBuildsResponse/nextPageToken": next_page_token +"/cloudbuild:v1/ListBuildsResponse/builds": builds +"/cloudbuild:v1/ListBuildsResponse/builds/build": build +"/cloudlatencytest:v2/fields": fields +"/cloudlatencytest:v2/key": key +"/cloudlatencytest:v2/quotaUser": quota_user +"/cloudlatencytest:v2/userIp": user_ip +"/cloudlatencytest:v2/AggregatedStats": aggregated_stats +"/cloudlatencytest:v2/AggregatedStats/stats": stats +"/cloudlatencytest:v2/AggregatedStats/stats/stat": stat +"/cloudlatencytest:v2/AggregatedStatsReply": aggregated_stats_reply +"/cloudlatencytest:v2/AggregatedStatsReply/testValue": test_value +"/cloudlatencytest:v2/DoubleValue": double_value +"/cloudlatencytest:v2/DoubleValue/label": label +"/cloudlatencytest:v2/DoubleValue/value": value +"/cloudlatencytest:v2/IntValue": int_value +"/cloudlatencytest:v2/IntValue/label": label +"/cloudlatencytest:v2/IntValue/value": value +"/cloudlatencytest:v2/Stats": stats +"/cloudlatencytest:v2/Stats/doubleValues": double_values +"/cloudlatencytest:v2/Stats/doubleValues/double_value": double_value +"/cloudlatencytest:v2/Stats/intValues": int_values +"/cloudlatencytest:v2/Stats/intValues/int_value": int_value +"/cloudlatencytest:v2/Stats/stringValues": string_values +"/cloudlatencytest:v2/Stats/stringValues/string_value": string_value +"/cloudlatencytest:v2/Stats/time": time +"/cloudlatencytest:v2/StatsReply": stats_reply +"/cloudlatencytest:v2/StatsReply/testValue": test_value +"/cloudlatencytest:v2/StringValue": string_value +"/cloudlatencytest:v2/StringValue/label": label +"/cloudlatencytest:v2/StringValue/value": value "/cloudmonitoring:v2beta2/fields": fields "/cloudmonitoring:v2beta2/key": key "/cloudmonitoring:v2beta2/quotaUser": quota_user @@ -9539,6 +9915,10 @@ "/compute:v1/compute.instances.setDiskAutoDelete/instance": instance "/compute:v1/compute.instances.setDiskAutoDelete/project": project "/compute:v1/compute.instances.setDiskAutoDelete/zone": zone +"/compute:v1/compute.instances.setMachineType": set_instance_machine_type +"/compute:v1/compute.instances.setMachineType/instance": instance +"/compute:v1/compute.instances.setMachineType/project": project +"/compute:v1/compute.instances.setMachineType/zone": zone "/compute:v1/compute.instances.setMetadata/instance": instance "/compute:v1/compute.instances.setMetadata/project": project "/compute:v1/compute.instances.setMetadata/zone": zone @@ -9651,6 +10031,28 @@ "/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.subnetworks.aggregatedList": aggregated_subnetwork_list +"/compute:v1/compute.subnetworks.aggregatedList/filter": filter +"/compute:v1/compute.subnetworks.aggregatedList/maxResults": max_results +"/compute:v1/compute.subnetworks.aggregatedList/pageToken": page_token +"/compute:v1/compute.subnetworks.aggregatedList/project": project +"/compute:v1/compute.subnetworks.delete": delete_subnetwork +"/compute:v1/compute.subnetworks.delete/project": project +"/compute:v1/compute.subnetworks.delete/region": region +"/compute:v1/compute.subnetworks.delete/subnetwork": subnetwork +"/compute:v1/compute.subnetworks.get": get_subnetwork +"/compute:v1/compute.subnetworks.get/project": project +"/compute:v1/compute.subnetworks.get/region": region +"/compute:v1/compute.subnetworks.get/subnetwork": subnetwork +"/compute:v1/compute.subnetworks.insert": insert_subnetwork +"/compute:v1/compute.subnetworks.insert/project": project +"/compute:v1/compute.subnetworks.insert/region": region +"/compute:v1/compute.subnetworks.list": list_subnetworks +"/compute:v1/compute.subnetworks.list/filter": filter +"/compute:v1/compute.subnetworks.list/maxResults": max_results +"/compute:v1/compute.subnetworks.list/pageToken": page_token +"/compute:v1/compute.subnetworks.list/project": project +"/compute:v1/compute.subnetworks.list/region": region "/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 @@ -10245,6 +10647,7 @@ "/compute:v1/InstanceGroup/network": network "/compute:v1/InstanceGroup/selfLink": self_link "/compute:v1/InstanceGroup/size": size +"/compute:v1/InstanceGroup/subnetwork": subnetwork "/compute:v1/InstanceGroup/zone": zone "/compute:v1/InstanceGroupAggregatedList": instance_group_aggregated_list "/compute:v1/InstanceGroupAggregatedList/id": id @@ -10411,6 +10814,8 @@ "/compute:v1/InstancesScopedList/warning/data/datum/key": key "/compute:v1/InstancesScopedList/warning/data/datum/value": value "/compute:v1/InstancesScopedList/warning/message": message +"/compute:v1/InstancesSetMachineTypeRequest": instances_set_machine_type_request +"/compute:v1/InstancesSetMachineTypeRequest/machineType": machine_type "/compute:v1/License": license "/compute:v1/License/chargesUseFee": charges_use_fee "/compute:v1/License/kind": kind @@ -10482,6 +10887,7 @@ "/compute:v1/NamedPort/port": port "/compute:v1/Network": network "/compute:v1/Network/IPv4Range": i_pv4_range +"/compute:v1/Network/autoCreateSubnetworks": auto_create_subnetworks "/compute:v1/Network/creationTimestamp": creation_timestamp "/compute:v1/Network/description": description "/compute:v1/Network/gatewayIPv4": gateway_i_pv4 @@ -10489,12 +10895,15 @@ "/compute:v1/Network/kind": kind "/compute:v1/Network/name": name "/compute:v1/Network/selfLink": self_link +"/compute:v1/Network/subnetworks": subnetworks +"/compute:v1/Network/subnetworks/subnetwork": subnetwork "/compute:v1/NetworkInterface": network_interface "/compute:v1/NetworkInterface/accessConfigs": access_configs "/compute:v1/NetworkInterface/accessConfigs/access_config": access_config "/compute:v1/NetworkInterface/name": name "/compute:v1/NetworkInterface/network": network "/compute:v1/NetworkInterface/networkIP": network_ip +"/compute:v1/NetworkInterface/subnetwork": subnetwork "/compute:v1/NetworkList": network_list "/compute:v1/NetworkList/id": id "/compute:v1/NetworkList/items": items @@ -10693,6 +11102,41 @@ "/compute:v1/SslCertificateList/kind": kind "/compute:v1/SslCertificateList/nextPageToken": next_page_token "/compute:v1/SslCertificateList/selfLink": self_link +"/compute:v1/Subnetwork": subnetwork +"/compute:v1/Subnetwork/creationTimestamp": creation_timestamp +"/compute:v1/Subnetwork/description": description +"/compute:v1/Subnetwork/gatewayAddress": gateway_address +"/compute:v1/Subnetwork/id": id +"/compute:v1/Subnetwork/ipCidrRange": ip_cidr_range +"/compute:v1/Subnetwork/kind": kind +"/compute:v1/Subnetwork/name": name +"/compute:v1/Subnetwork/network": network +"/compute:v1/Subnetwork/region": region +"/compute:v1/Subnetwork/selfLink": self_link +"/compute:v1/SubnetworkAggregatedList": subnetwork_aggregated_list +"/compute:v1/SubnetworkAggregatedList/id": id +"/compute:v1/SubnetworkAggregatedList/items": items +"/compute:v1/SubnetworkAggregatedList/items/item": item +"/compute:v1/SubnetworkAggregatedList/kind": kind +"/compute:v1/SubnetworkAggregatedList/nextPageToken": next_page_token +"/compute:v1/SubnetworkAggregatedList/selfLink": self_link +"/compute:v1/SubnetworkList": subnetwork_list +"/compute:v1/SubnetworkList/id": id +"/compute:v1/SubnetworkList/items": items +"/compute:v1/SubnetworkList/items/item": item +"/compute:v1/SubnetworkList/kind": kind +"/compute:v1/SubnetworkList/nextPageToken": next_page_token +"/compute:v1/SubnetworkList/selfLink": self_link +"/compute:v1/SubnetworksScopedList": subnetworks_scoped_list +"/compute:v1/SubnetworksScopedList/subnetworks": subnetworks +"/compute:v1/SubnetworksScopedList/subnetworks/subnetwork": subnetwork +"/compute:v1/SubnetworksScopedList/warning": warning +"/compute:v1/SubnetworksScopedList/warning/code": code +"/compute:v1/SubnetworksScopedList/warning/data": data +"/compute:v1/SubnetworksScopedList/warning/data/datum": datum +"/compute:v1/SubnetworksScopedList/warning/data/datum/key": key +"/compute:v1/SubnetworksScopedList/warning/data/datum/value": value +"/compute:v1/SubnetworksScopedList/warning/message": message "/compute:v1/Tags": tags "/compute:v1/Tags/fingerprint": fingerprint "/compute:v1/Tags/items": items @@ -10910,6 +11354,8 @@ "/compute:v1/VpnTunnel/id": id "/compute:v1/VpnTunnel/ikeVersion": ike_version "/compute:v1/VpnTunnel/kind": kind +"/compute:v1/VpnTunnel/localTrafficSelector": local_traffic_selector +"/compute:v1/VpnTunnel/localTrafficSelector/local_traffic_selector": local_traffic_selector "/compute:v1/VpnTunnel/name": name "/compute:v1/VpnTunnel/peerIp": peer_ip "/compute:v1/VpnTunnel/region": region @@ -18389,248 +18835,247 @@ "/groupssettings:v1/Groups/whoCanPostMessage": who_can_post_message "/groupssettings:v1/Groups/whoCanViewGroup": who_can_view_group "/groupssettings:v1/Groups/whoCanViewMembership": who_can_view_membership -"/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 +"/appengine:v1beta5/fields": fields +"/appengine:v1beta5/key": key +"/appengine:v1beta5/quotaUser": quota_user +"/appengine:v1beta5/appengine.apps.get": get_app +"/appengine:v1beta5/appengine.apps.get/appsId": apps_id +"/appengine:v1beta5/appengine.apps.get/ensureResourcesExist": ensure_resources_exist +"/appengine:v1beta5/appengine.apps.operations.get": get_app_operation +"/appengine:v1beta5/appengine.apps.operations.get/appsId": apps_id +"/appengine:v1beta5/appengine.apps.operations.get/operationsId": operations_id +"/appengine:v1beta5/appengine.apps.operations.list": list_app_operations +"/appengine:v1beta5/appengine.apps.operations.list/appsId": apps_id +"/appengine:v1beta5/appengine.apps.operations.list/filter": filter +"/appengine:v1beta5/appengine.apps.operations.list/pageSize": page_size +"/appengine:v1beta5/appengine.apps.operations.list/pageToken": page_token +"/appengine:v1beta5/appengine.apps.services.delete": delete_app_service +"/appengine:v1beta5/appengine.apps.services.delete/appsId": apps_id +"/appengine:v1beta5/appengine.apps.services.delete/servicesId": services_id +"/appengine:v1beta5/appengine.apps.services.get": get_app_service +"/appengine:v1beta5/appengine.apps.services.get/appsId": apps_id +"/appengine:v1beta5/appengine.apps.services.get/servicesId": services_id +"/appengine:v1beta5/appengine.apps.services.list": list_app_services +"/appengine:v1beta5/appengine.apps.services.list/appsId": apps_id +"/appengine:v1beta5/appengine.apps.services.list/pageSize": page_size +"/appengine:v1beta5/appengine.apps.services.list/pageToken": page_token +"/appengine:v1beta5/appengine.apps.services.patch": patch_app_service +"/appengine:v1beta5/appengine.apps.services.patch/appsId": apps_id +"/appengine:v1beta5/appengine.apps.services.patch/servicesId": services_id +"/appengine:v1beta5/appengine.apps.services.patch/mask": mask +"/appengine:v1beta5/appengine.apps.services.patch/migrateTraffic": migrate_traffic +"/appengine:v1beta5/appengine.apps.services.versions.create": create_app_service_version +"/appengine:v1beta5/appengine.apps.services.versions.create/appsId": apps_id +"/appengine:v1beta5/appengine.apps.services.versions.create/servicesId": services_id +"/appengine:v1beta5/appengine.apps.services.versions.delete": delete_app_service_version +"/appengine:v1beta5/appengine.apps.services.versions.delete/appsId": apps_id +"/appengine:v1beta5/appengine.apps.services.versions.delete/servicesId": services_id +"/appengine:v1beta5/appengine.apps.services.versions.delete/versionsId": versions_id +"/appengine:v1beta5/appengine.apps.services.versions.get": get_app_service_version +"/appengine:v1beta5/appengine.apps.services.versions.get/appsId": apps_id +"/appengine:v1beta5/appengine.apps.services.versions.get/servicesId": services_id +"/appengine:v1beta5/appengine.apps.services.versions.get/versionsId": versions_id +"/appengine:v1beta5/appengine.apps.services.versions.get/view": view +"/appengine:v1beta5/appengine.apps.services.versions.list": list_app_service_versions +"/appengine:v1beta5/appengine.apps.services.versions.list/appsId": apps_id +"/appengine:v1beta5/appengine.apps.services.versions.list/servicesId": services_id +"/appengine:v1beta5/appengine.apps.services.versions.list/view": view +"/appengine:v1beta5/appengine.apps.services.versions.list/pageSize": page_size +"/appengine:v1beta5/appengine.apps.services.versions.list/pageToken": page_token +"/appengine:v1beta5/Operation": operation +"/appengine:v1beta5/Operation/name": name +"/appengine:v1beta5/Operation/metadata": metadata +"/appengine:v1beta5/Operation/metadata/metadatum": metadatum +"/appengine:v1beta5/Operation/done": done +"/appengine:v1beta5/Operation/error": error +"/appengine:v1beta5/Operation/response": response +"/appengine:v1beta5/Operation/response/response": response +"/appengine:v1beta5/Status": status +"/appengine:v1beta5/Status/code": code +"/appengine:v1beta5/Status/message": message +"/appengine:v1beta5/Status/details": details +"/appengine:v1beta5/Status/details/detail": detail +"/appengine:v1beta5/Status/details/detail/detail": detail +"/appengine:v1beta5/ListOperationsResponse": list_operations_response +"/appengine:v1beta5/ListOperationsResponse/operations": operations +"/appengine:v1beta5/ListOperationsResponse/operations/operation": operation +"/appengine:v1beta5/ListOperationsResponse/nextPageToken": next_page_token +"/appengine:v1beta5/Application": application +"/appengine:v1beta5/Application/name": name +"/appengine:v1beta5/Application/id": id +"/appengine:v1beta5/Application/dispatchRules": dispatch_rules +"/appengine:v1beta5/Application/dispatchRules/dispatch_rule": dispatch_rule +"/appengine:v1beta5/Application/location": location +"/appengine:v1beta5/Application/codeBucket": code_bucket +"/appengine:v1beta5/Application/defaultBucket": default_bucket +"/appengine:v1beta5/UrlDispatchRule": url_dispatch_rule +"/appengine:v1beta5/UrlDispatchRule/domain": domain +"/appengine:v1beta5/UrlDispatchRule/path": path +"/appengine:v1beta5/UrlDispatchRule/service": service +"/appengine:v1beta5/Version": version +"/appengine:v1beta5/Version/name": name +"/appengine:v1beta5/Version/id": id +"/appengine:v1beta5/Version/automaticScaling": automatic_scaling +"/appengine:v1beta5/Version/basicScaling": basic_scaling +"/appengine:v1beta5/Version/manualScaling": manual_scaling +"/appengine:v1beta5/Version/inboundServices": inbound_services +"/appengine:v1beta5/Version/inboundServices/inbound_service": inbound_service +"/appengine:v1beta5/Version/instanceClass": instance_class +"/appengine:v1beta5/Version/network": network +"/appengine:v1beta5/Version/resources": resources +"/appengine:v1beta5/Version/runtime": runtime +"/appengine:v1beta5/Version/threadsafe": threadsafe +"/appengine:v1beta5/Version/vm": vm +"/appengine:v1beta5/Version/betaSettings": beta_settings +"/appengine:v1beta5/Version/betaSettings/beta_setting": beta_setting +"/appengine:v1beta5/Version/env": env +"/appengine:v1beta5/Version/servingStatus": serving_status +"/appengine:v1beta5/Version/deployer": deployer +"/appengine:v1beta5/Version/creationTime": creation_time +"/appengine:v1beta5/Version/diskUsageBytes": disk_usage_bytes +"/appengine:v1beta5/Version/handlers": handlers +"/appengine:v1beta5/Version/handlers/handler": handler +"/appengine:v1beta5/Version/errorHandlers": error_handlers +"/appengine:v1beta5/Version/errorHandlers/error_handler": error_handler +"/appengine:v1beta5/Version/libraries": libraries +"/appengine:v1beta5/Version/libraries/library": library +"/appengine:v1beta5/Version/apiConfig": api_config +"/appengine:v1beta5/Version/envVariables": env_variables +"/appengine:v1beta5/Version/envVariables/env_variable": env_variable +"/appengine:v1beta5/Version/defaultExpiration": default_expiration +"/appengine:v1beta5/Version/healthCheck": health_check +"/appengine:v1beta5/Version/nobuildFilesRegex": nobuild_files_regex +"/appengine:v1beta5/Version/deployment": deployment +"/appengine:v1beta5/AutomaticScaling": automatic_scaling +"/appengine:v1beta5/AutomaticScaling/coolDownPeriod": cool_down_period +"/appengine:v1beta5/AutomaticScaling/cpuUtilization": cpu_utilization +"/appengine:v1beta5/AutomaticScaling/maxConcurrentRequests": max_concurrent_requests +"/appengine:v1beta5/AutomaticScaling/maxIdleInstances": max_idle_instances +"/appengine:v1beta5/AutomaticScaling/maxTotalInstances": max_total_instances +"/appengine:v1beta5/AutomaticScaling/maxPendingLatency": max_pending_latency +"/appengine:v1beta5/AutomaticScaling/minIdleInstances": min_idle_instances +"/appengine:v1beta5/AutomaticScaling/minTotalInstances": min_total_instances +"/appengine:v1beta5/AutomaticScaling/minPendingLatency": min_pending_latency +"/appengine:v1beta5/AutomaticScaling/requestUtilization": request_utilization +"/appengine:v1beta5/AutomaticScaling/diskUtilization": disk_utilization +"/appengine:v1beta5/AutomaticScaling/networkUtilization": network_utilization +"/appengine:v1beta5/CpuUtilization": cpu_utilization +"/appengine:v1beta5/CpuUtilization/aggregationWindowLength": aggregation_window_length +"/appengine:v1beta5/CpuUtilization/targetUtilization": target_utilization +"/appengine:v1beta5/RequestUtilization": request_utilization +"/appengine:v1beta5/RequestUtilization/targetRequestCountPerSec": target_request_count_per_sec +"/appengine:v1beta5/RequestUtilization/targetConcurrentRequests": target_concurrent_requests +"/appengine:v1beta5/DiskUtilization": disk_utilization +"/appengine:v1beta5/DiskUtilization/targetWriteBytesPerSec": target_write_bytes_per_sec +"/appengine:v1beta5/DiskUtilization/targetWriteOpsPerSec": target_write_ops_per_sec +"/appengine:v1beta5/DiskUtilization/targetReadBytesPerSec": target_read_bytes_per_sec +"/appengine:v1beta5/DiskUtilization/targetReadOpsPerSec": target_read_ops_per_sec +"/appengine:v1beta5/NetworkUtilization": network_utilization +"/appengine:v1beta5/NetworkUtilization/targetSentBytesPerSec": target_sent_bytes_per_sec +"/appengine:v1beta5/NetworkUtilization/targetSentPacketsPerSec": target_sent_packets_per_sec +"/appengine:v1beta5/NetworkUtilization/targetReceivedBytesPerSec": target_received_bytes_per_sec +"/appengine:v1beta5/NetworkUtilization/targetReceivedPacketsPerSec": target_received_packets_per_sec +"/appengine:v1beta5/BasicScaling": basic_scaling +"/appengine:v1beta5/BasicScaling/idleTimeout": idle_timeout +"/appengine:v1beta5/BasicScaling/maxInstances": max_instances +"/appengine:v1beta5/ManualScaling": manual_scaling +"/appengine:v1beta5/ManualScaling/instances": instances +"/appengine:v1beta5/Network": network +"/appengine:v1beta5/Network/forwardedPorts": forwarded_ports +"/appengine:v1beta5/Network/forwardedPorts/forwarded_port": forwarded_port +"/appengine:v1beta5/Network/instanceTag": instance_tag +"/appengine:v1beta5/Network/name": name +"/appengine:v1beta5/Resources": resources +"/appengine:v1beta5/Resources/cpu": cpu +"/appengine:v1beta5/Resources/diskGb": disk_gb +"/appengine:v1beta5/Resources/memoryGb": memory_gb +"/appengine:v1beta5/UrlMap": url_map +"/appengine:v1beta5/UrlMap/urlRegex": url_regex +"/appengine:v1beta5/UrlMap/staticFiles": static_files +"/appengine:v1beta5/UrlMap/script": script +"/appengine:v1beta5/UrlMap/apiEndpoint": api_endpoint +"/appengine:v1beta5/UrlMap/securityLevel": security_level +"/appengine:v1beta5/UrlMap/login": login +"/appengine:v1beta5/UrlMap/authFailAction": auth_fail_action +"/appengine:v1beta5/UrlMap/redirectHttpResponseCode": redirect_http_response_code +"/appengine:v1beta5/StaticFilesHandler": static_files_handler +"/appengine:v1beta5/StaticFilesHandler/path": path +"/appengine:v1beta5/StaticFilesHandler/uploadPathRegex": upload_path_regex +"/appengine:v1beta5/StaticFilesHandler/httpHeaders": http_headers +"/appengine:v1beta5/StaticFilesHandler/httpHeaders/http_header": http_header +"/appengine:v1beta5/StaticFilesHandler/mimeType": mime_type +"/appengine:v1beta5/StaticFilesHandler/expiration": expiration +"/appengine:v1beta5/StaticFilesHandler/requireMatchingFile": require_matching_file +"/appengine:v1beta5/StaticFilesHandler/applicationReadable": application_readable +"/appengine:v1beta5/ScriptHandler": script_handler +"/appengine:v1beta5/ScriptHandler/scriptPath": script_path +"/appengine:v1beta5/ApiEndpointHandler": api_endpoint_handler +"/appengine:v1beta5/ApiEndpointHandler/scriptPath": script_path +"/appengine:v1beta5/ErrorHandler": error_handler +"/appengine:v1beta5/ErrorHandler/errorCode": error_code +"/appengine:v1beta5/ErrorHandler/staticFile": static_file +"/appengine:v1beta5/ErrorHandler/mimeType": mime_type +"/appengine:v1beta5/Library": library +"/appengine:v1beta5/Library/name": name +"/appengine:v1beta5/Library/version": version +"/appengine:v1beta5/ApiConfigHandler": api_config_handler +"/appengine:v1beta5/ApiConfigHandler/authFailAction": auth_fail_action +"/appengine:v1beta5/ApiConfigHandler/login": login +"/appengine:v1beta5/ApiConfigHandler/script": script +"/appengine:v1beta5/ApiConfigHandler/securityLevel": security_level +"/appengine:v1beta5/ApiConfigHandler/url": url +"/appengine:v1beta5/HealthCheck": health_check +"/appengine:v1beta5/HealthCheck/disableHealthCheck": disable_health_check +"/appengine:v1beta5/HealthCheck/host": host +"/appengine:v1beta5/HealthCheck/healthyThreshold": healthy_threshold +"/appengine:v1beta5/HealthCheck/unhealthyThreshold": unhealthy_threshold +"/appengine:v1beta5/HealthCheck/restartThreshold": restart_threshold +"/appengine:v1beta5/HealthCheck/checkInterval": check_interval +"/appengine:v1beta5/HealthCheck/timeout": timeout +"/appengine:v1beta5/Deployment": deployment +"/appengine:v1beta5/Deployment/files": files +"/appengine:v1beta5/Deployment/files/file": file +"/appengine:v1beta5/Deployment/container": container +"/appengine:v1beta5/Deployment/sourceReferences": source_references +"/appengine:v1beta5/Deployment/sourceReferences/source_reference": source_reference +"/appengine:v1beta5/FileInfo": file_info +"/appengine:v1beta5/FileInfo/sourceUrl": source_url +"/appengine:v1beta5/FileInfo/sha1Sum": sha1_sum +"/appengine:v1beta5/FileInfo/mimeType": mime_type +"/appengine:v1beta5/ContainerInfo": container_info +"/appengine:v1beta5/ContainerInfo/image": image +"/appengine:v1beta5/SourceReference": source_reference +"/appengine:v1beta5/SourceReference/repository": repository +"/appengine:v1beta5/SourceReference/revisionId": revision_id +"/appengine:v1beta5/ListVersionsResponse": list_versions_response +"/appengine:v1beta5/ListVersionsResponse/versions": versions +"/appengine:v1beta5/ListVersionsResponse/versions/version": version +"/appengine:v1beta5/ListVersionsResponse/nextPageToken": next_page_token +"/appengine:v1beta5/Service": service +"/appengine:v1beta5/Service/name": name +"/appengine:v1beta5/Service/id": id +"/appengine:v1beta5/Service/split": split +"/appengine:v1beta5/TrafficSplit": traffic_split +"/appengine:v1beta5/TrafficSplit/shardBy": shard_by +"/appengine:v1beta5/TrafficSplit/allocations": allocations +"/appengine:v1beta5/TrafficSplit/allocations/allocation": allocation +"/appengine:v1beta5/ListServicesResponse": list_services_response +"/appengine:v1beta5/ListServicesResponse/services": services +"/appengine:v1beta5/ListServicesResponse/services/service": service +"/appengine:v1beta5/ListServicesResponse/nextPageToken": next_page_token +"/appengine:v1beta5/OperationMetadata": operation_metadata +"/appengine:v1beta5/OperationMetadata/operationType": operation_type +"/appengine:v1beta5/OperationMetadata/insertTime": insert_time +"/appengine:v1beta5/OperationMetadata/endTime": end_time +"/appengine:v1beta5/OperationMetadata/user": user +"/appengine:v1beta5/OperationMetadata/target": target +"/appengine:v1beta5/OperationMetadata/method": method_prop +"/appengine:v1beta5/OperationMetadataV1Beta5": operation_metadata_v1_beta5 +"/appengine:v1beta5/OperationMetadataV1Beta5/method": method_prop +"/appengine:v1beta5/OperationMetadataV1Beta5/insertTime": insert_time +"/appengine:v1beta5/OperationMetadataV1Beta5/endTime": end_time +"/appengine:v1beta5/OperationMetadataV1Beta5/user": user +"/appengine:v1beta5/OperationMetadataV1Beta5/target": target "/classroom:v1/fields": fields "/classroom:v1/key": key "/classroom:v1/quotaUser": quota_user @@ -19148,6 +19593,34 @@ "/container:v1/ServerConfig/defaultClusterVersion": default_cluster_version "/container:v1/ServerConfig/validNodeVersions": valid_node_versions "/container:v1/ServerConfig/validNodeVersions/valid_node_version": valid_node_version +"/dataproc:v1/fields": fields +"/dataproc:v1/key": key +"/dataproc:v1/quotaUser": quota_user +"/dataproc:v1/dataproc.media.upload": upload_medium +"/dataproc:v1/dataproc.media.upload/resourceName": resource_name +"/dataproc:v1/dataproc.media.download": download_medium +"/dataproc:v1/dataproc.media.download/resourceName": resource_name +"/dataproc:v1/Media": media +"/dataproc:v1/Media/resourceName": resource_name +"/dataproc:v1/DiagnoseClusterOutputLocation": diagnose_cluster_output_location +"/dataproc:v1/DiagnoseClusterOutputLocation/outputUri": output_uri +"/dataproc:v1/OperationMetadata": operation_metadata +"/dataproc:v1/OperationMetadata/state": state +"/dataproc:v1/OperationMetadata/innerState": inner_state +"/dataproc:v1/OperationMetadata/details": details +"/dataproc:v1/OperationMetadata/insertTime": insert_time +"/dataproc:v1/OperationMetadata/startTime": start_time +"/dataproc:v1/OperationMetadata/endTime": end_time +"/dataproc:v1/OperationMetadata/clusterName": cluster_name +"/dataproc:v1/OperationMetadata/clusterUuid": cluster_uuid +"/dataproc:v1/OperationMetadata/status": status +"/dataproc:v1/OperationMetadata/statusHistory": status_history +"/dataproc:v1/OperationMetadata/statusHistory/status_history": status_history +"/dataproc:v1/OperationStatus": operation_status +"/dataproc:v1/OperationStatus/state": state +"/dataproc:v1/OperationStatus/innerState": inner_state +"/dataproc:v1/OperationStatus/details": details +"/dataproc:v1/OperationStatus/stateStartTime": state_start_time "/genomics:v1/fields": fields "/genomics:v1/key": key "/genomics:v1/quotaUser": quota_user @@ -19600,6 +20073,171 @@ "/kgsearch:v1/SearchResponse/type": type "/kgsearch:v1/SearchResponse/itemListElement": item_list_element "/kgsearch:v1/SearchResponse/itemListElement/item_list_element": item_list_element +"/logging:v2beta1/fields": fields +"/logging:v2beta1/key": key +"/logging:v2beta1/quotaUser": quota_user +"/logging:v2beta1/logging.projects.logs.delete/logName": log_name +"/logging:v2beta1/logging.projects.sinks.list": list_project_sinks +"/logging:v2beta1/logging.projects.sinks.list/projectName": project_name +"/logging:v2beta1/logging.projects.sinks.list/pageToken": page_token +"/logging:v2beta1/logging.projects.sinks.list/pageSize": page_size +"/logging:v2beta1/logging.projects.sinks.get": get_project_sink +"/logging:v2beta1/logging.projects.sinks.get/sinkName": sink_name +"/logging:v2beta1/logging.projects.sinks.create": create_project_sink +"/logging:v2beta1/logging.projects.sinks.create/projectName": project_name +"/logging:v2beta1/logging.projects.sinks.update": update_project_sink +"/logging:v2beta1/logging.projects.sinks.update/sinkName": sink_name +"/logging:v2beta1/logging.projects.sinks.delete": delete_project_sink +"/logging:v2beta1/logging.projects.sinks.delete/sinkName": sink_name +"/logging:v2beta1/logging.projects.metrics.list": list_project_metrics +"/logging:v2beta1/logging.projects.metrics.list/projectName": project_name +"/logging:v2beta1/logging.projects.metrics.list/pageToken": page_token +"/logging:v2beta1/logging.projects.metrics.list/pageSize": page_size +"/logging:v2beta1/logging.projects.metrics.get": get_project_metric +"/logging:v2beta1/logging.projects.metrics.get/metricName": metric_name +"/logging:v2beta1/logging.projects.metrics.create": create_project_metric +"/logging:v2beta1/logging.projects.metrics.create/projectName": project_name +"/logging:v2beta1/logging.projects.metrics.update": update_project_metric +"/logging:v2beta1/logging.projects.metrics.update/metricName": metric_name +"/logging:v2beta1/logging.projects.metrics.delete": delete_project_metric +"/logging:v2beta1/logging.projects.metrics.delete/metricName": metric_name +"/logging:v2beta1/logging.entries.write": write_entry_log_entries +"/logging:v2beta1/logging.entries.list": list_entry_log_entries +"/logging:v2beta1/logging.monitoredResourceDescriptors.list": list_monitored_resource_descriptors +"/logging:v2beta1/logging.monitoredResourceDescriptors.list/pageSize": page_size +"/logging:v2beta1/logging.monitoredResourceDescriptors.list/pageToken": page_token +"/logging:v2beta1/Empty": empty +"/logging:v2beta1/WriteLogEntriesRequest": write_log_entries_request +"/logging:v2beta1/WriteLogEntriesRequest/logName": log_name +"/logging:v2beta1/WriteLogEntriesRequest/resource": resource +"/logging:v2beta1/WriteLogEntriesRequest/labels": labels +"/logging:v2beta1/WriteLogEntriesRequest/labels/label": label +"/logging:v2beta1/WriteLogEntriesRequest/entries": entries +"/logging:v2beta1/WriteLogEntriesRequest/entries/entry": entry +"/logging:v2beta1/MonitoredResource": monitored_resource +"/logging:v2beta1/MonitoredResource/type": type +"/logging:v2beta1/MonitoredResource/labels": labels +"/logging:v2beta1/MonitoredResource/labels/label": label +"/logging:v2beta1/LogEntry": log_entry +"/logging:v2beta1/LogEntry/logName": log_name +"/logging:v2beta1/LogEntry/resource": resource +"/logging:v2beta1/LogEntry/protoPayload": proto_payload +"/logging:v2beta1/LogEntry/protoPayload/proto_payload": proto_payload +"/logging:v2beta1/LogEntry/textPayload": text_payload +"/logging:v2beta1/LogEntry/jsonPayload": json_payload +"/logging:v2beta1/LogEntry/jsonPayload/json_payload": json_payload +"/logging:v2beta1/LogEntry/timestamp": timestamp +"/logging:v2beta1/LogEntry/severity": severity +"/logging:v2beta1/LogEntry/insertId": insert_id +"/logging:v2beta1/LogEntry/httpRequest": http_request +"/logging:v2beta1/LogEntry/labels": labels +"/logging:v2beta1/LogEntry/labels/label": label +"/logging:v2beta1/LogEntry/operation": operation +"/logging:v2beta1/HttpRequest": http_request +"/logging:v2beta1/HttpRequest/requestMethod": request_method +"/logging:v2beta1/HttpRequest/requestUrl": request_url +"/logging:v2beta1/HttpRequest/requestSize": request_size +"/logging:v2beta1/HttpRequest/status": status +"/logging:v2beta1/HttpRequest/responseSize": response_size +"/logging:v2beta1/HttpRequest/userAgent": user_agent +"/logging:v2beta1/HttpRequest/remoteIp": remote_ip +"/logging:v2beta1/HttpRequest/referer": referer +"/logging:v2beta1/HttpRequest/cacheHit": cache_hit +"/logging:v2beta1/HttpRequest/validatedWithOriginServer": validated_with_origin_server +"/logging:v2beta1/LogEntryOperation": log_entry_operation +"/logging:v2beta1/LogEntryOperation/id": id +"/logging:v2beta1/LogEntryOperation/producer": producer +"/logging:v2beta1/LogEntryOperation/first": first +"/logging:v2beta1/LogEntryOperation/last": last +"/logging:v2beta1/WriteLogEntriesResponse": write_log_entries_response +"/logging:v2beta1/ListLogEntriesRequest": list_log_entries_request +"/logging:v2beta1/ListLogEntriesRequest/projectIds": project_ids +"/logging:v2beta1/ListLogEntriesRequest/projectIds/project_id": project_id +"/logging:v2beta1/ListLogEntriesRequest/filter": filter +"/logging:v2beta1/ListLogEntriesRequest/orderBy": order_by +"/logging:v2beta1/ListLogEntriesRequest/pageSize": page_size +"/logging:v2beta1/ListLogEntriesRequest/pageToken": page_token +"/logging:v2beta1/ListLogEntriesResponse": list_log_entries_response +"/logging:v2beta1/ListLogEntriesResponse/entries": entries +"/logging:v2beta1/ListLogEntriesResponse/entries/entry": entry +"/logging:v2beta1/ListLogEntriesResponse/nextPageToken": next_page_token +"/logging:v2beta1/ListMonitoredResourceDescriptorsResponse": list_monitored_resource_descriptors_response +"/logging:v2beta1/ListMonitoredResourceDescriptorsResponse/resourceDescriptors": resource_descriptors +"/logging:v2beta1/ListMonitoredResourceDescriptorsResponse/resourceDescriptors/resource_descriptor": resource_descriptor +"/logging:v2beta1/ListMonitoredResourceDescriptorsResponse/nextPageToken": next_page_token +"/logging:v2beta1/MonitoredResourceDescriptor": monitored_resource_descriptor +"/logging:v2beta1/MonitoredResourceDescriptor/type": type +"/logging:v2beta1/MonitoredResourceDescriptor/displayName": display_name +"/logging:v2beta1/MonitoredResourceDescriptor/description": description +"/logging:v2beta1/MonitoredResourceDescriptor/labels": labels +"/logging:v2beta1/MonitoredResourceDescriptor/labels/label": label +"/logging:v2beta1/LabelDescriptor": label_descriptor +"/logging:v2beta1/LabelDescriptor/key": key +"/logging:v2beta1/LabelDescriptor/valueType": value_type +"/logging:v2beta1/LabelDescriptor/description": description +"/logging:v2beta1/ListSinksResponse": list_sinks_response +"/logging:v2beta1/ListSinksResponse/sinks": sinks +"/logging:v2beta1/ListSinksResponse/sinks/sink": sink +"/logging:v2beta1/ListSinksResponse/nextPageToken": next_page_token +"/logging:v2beta1/LogSink": log_sink +"/logging:v2beta1/LogSink/name": name +"/logging:v2beta1/LogSink/destination": destination +"/logging:v2beta1/LogSink/filter": filter +"/logging:v2beta1/LogSink/outputVersionFormat": output_version_format +"/logging:v2beta1/ListLogMetricsResponse": list_log_metrics_response +"/logging:v2beta1/ListLogMetricsResponse/metrics": metrics +"/logging:v2beta1/ListLogMetricsResponse/metrics/metric": metric +"/logging:v2beta1/ListLogMetricsResponse/nextPageToken": next_page_token +"/logging:v2beta1/LogMetric": log_metric +"/logging:v2beta1/LogMetric/name": name +"/logging:v2beta1/LogMetric/description": description +"/logging:v2beta1/LogMetric/filter": filter +"/logging:v2beta1/RequestLog": request_log +"/logging:v2beta1/RequestLog/appId": app_id +"/logging:v2beta1/RequestLog/moduleId": module_id +"/logging:v2beta1/RequestLog/versionId": version_id +"/logging:v2beta1/RequestLog/requestId": request_id +"/logging:v2beta1/RequestLog/ip": ip +"/logging:v2beta1/RequestLog/startTime": start_time +"/logging:v2beta1/RequestLog/endTime": end_time +"/logging:v2beta1/RequestLog/latency": latency +"/logging:v2beta1/RequestLog/megaCycles": mega_cycles +"/logging:v2beta1/RequestLog/method": method_prop +"/logging:v2beta1/RequestLog/resource": resource +"/logging:v2beta1/RequestLog/httpVersion": http_version +"/logging:v2beta1/RequestLog/status": status +"/logging:v2beta1/RequestLog/responseSize": response_size +"/logging:v2beta1/RequestLog/referrer": referrer +"/logging:v2beta1/RequestLog/userAgent": user_agent +"/logging:v2beta1/RequestLog/nickname": nickname +"/logging:v2beta1/RequestLog/urlMapEntry": url_map_entry +"/logging:v2beta1/RequestLog/host": host +"/logging:v2beta1/RequestLog/cost": cost +"/logging:v2beta1/RequestLog/taskQueueName": task_queue_name +"/logging:v2beta1/RequestLog/taskName": task_name +"/logging:v2beta1/RequestLog/wasLoadingRequest": was_loading_request +"/logging:v2beta1/RequestLog/pendingTime": pending_time +"/logging:v2beta1/RequestLog/instanceIndex": instance_index +"/logging:v2beta1/RequestLog/finished": finished +"/logging:v2beta1/RequestLog/instanceId": instance_id +"/logging:v2beta1/RequestLog/line": line +"/logging:v2beta1/RequestLog/line/line": line +"/logging:v2beta1/RequestLog/appEngineRelease": app_engine_release +"/logging:v2beta1/RequestLog/traceId": trace_id +"/logging:v2beta1/RequestLog/sourceReference": source_reference +"/logging:v2beta1/RequestLog/sourceReference/source_reference": source_reference +"/logging:v2beta1/LogLine": log_line +"/logging:v2beta1/LogLine/time": time +"/logging:v2beta1/LogLine/severity": severity +"/logging:v2beta1/LogLine/logMessage": log_message +"/logging:v2beta1/LogLine/sourceLocation": source_location +"/logging:v2beta1/SourceLocation": source_location +"/logging:v2beta1/SourceLocation/file": file +"/logging:v2beta1/SourceLocation/line": line +"/logging:v2beta1/SourceLocation/functionName": function_name +"/logging:v2beta1/SourceReference": source_reference +"/logging:v2beta1/SourceReference/repository": repository +"/logging:v2beta1/SourceReference/revisionId": revision_id "/partners:v2/fields": fields "/partners:v2/key": key "/partners:v2/quotaUser": quota_user @@ -20290,7 +20928,9 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/openidRealm": openid_realm "/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/otaApp": ota_app "/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest/providerId": provider_id +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyDeleteAccountRequest/delegatedProjectNumber": delegated_project_number "/identitytoolkit:v3/IdentitytoolkitRelyingpartyDeleteAccountRequest/localId": local_id +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyDownloadAccountRequest/delegatedProjectNumber": delegated_project_number "/identitytoolkit:v3/IdentitytoolkitRelyingpartyDownloadAccountRequest/maxResults": max_results "/identitytoolkit:v3/IdentitytoolkitRelyingpartyDownloadAccountRequest/nextPageToken": next_page_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartyGetAccountInfoRequest/email": email @@ -20326,6 +20966,7 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartySignOutUserRequest/instanceId": instance_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartySignOutUserRequest/localId": local_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartySignOutUserResponse/localId": local_id +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/delegatedProjectNumber": delegated_project_number "/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/hashAlgorithm": hash_algorithm "/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/memoryCost": memory_cost "/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/rounds": rounds @@ -20333,6 +20974,7 @@ "/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/signerKey": signer_key "/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/users": users "/identitytoolkit:v3/IdentitytoolkitRelyingpartyUploadAccountRequest/users/user": user +"/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/delegatedProjectNumber": delegated_project_number "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/instanceId": instance_id "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/pendingIdToken": pending_id_token "/identitytoolkit:v3/IdentitytoolkitRelyingpartyVerifyAssertionRequest/postBody": post_body diff --git a/generated/google/apis/adexchangebuyer_v1_3/classes.rb b/generated/google/apis/adexchangebuyer_v1_3/classes.rb index a4883c9fb..d4e9f9f88 100644 --- a/generated/google/apis/adexchangebuyer_v1_3/classes.rb +++ b/generated/google/apis/adexchangebuyer_v1_3/classes.rb @@ -77,14 +77,14 @@ module Google # Update properties of this object def update!(**args) - @bidder_location = args[:bidder_location] unless args[:bidder_location].nil? - @cookie_matching_nid = args[:cookie_matching_nid] unless args[:cookie_matching_nid].nil? - @cookie_matching_url = args[:cookie_matching_url] unless args[:cookie_matching_url].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @maximum_active_creatives = args[:maximum_active_creatives] unless args[:maximum_active_creatives].nil? - @maximum_total_qps = args[:maximum_total_qps] unless args[:maximum_total_qps].nil? - @number_active_creatives = args[:number_active_creatives] unless args[:number_active_creatives].nil? + @bidder_location = args[:bidder_location] if args.key?(:bidder_location) + @cookie_matching_nid = args[:cookie_matching_nid] if args.key?(:cookie_matching_nid) + @cookie_matching_url = args[:cookie_matching_url] if args.key?(:cookie_matching_url) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @maximum_active_creatives = args[:maximum_active_creatives] if args.key?(:maximum_active_creatives) + @maximum_total_qps = args[:maximum_total_qps] if args.key?(:maximum_total_qps) + @number_active_creatives = args[:number_active_creatives] if args.key?(:number_active_creatives) end # @@ -118,9 +118,9 @@ module Google # Update properties of this object def update!(**args) - @maximum_qps = args[:maximum_qps] unless args[:maximum_qps].nil? - @region = args[:region] unless args[:region].nil? - @url = args[:url] unless args[:url].nil? + @maximum_qps = args[:maximum_qps] if args.key?(:maximum_qps) + @region = args[:region] if args.key?(:region) + @url = args[:url] if args.key?(:url) end end end @@ -146,8 +146,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -183,10 +183,10 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @account_name = args[:account_name] unless args[:account_name].nil? - @billing_id = args[:billing_id] unless args[:billing_id].nil? - @kind = args[:kind] unless args[:kind].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @account_name = args[:account_name] if args.key?(:account_name) + @billing_id = args[:billing_id] if args.key?(:billing_id) + @kind = args[:kind] if args.key?(:kind) end end @@ -211,8 +211,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -258,12 +258,12 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @billing_id = args[:billing_id] unless args[:billing_id].nil? - @budget_amount = args[:budget_amount] unless args[:budget_amount].nil? - @currency_code = args[:currency_code] unless args[:currency_code].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @billing_id = args[:billing_id] if args.key?(:billing_id) + @budget_amount = args[:budget_amount] if args.key?(:budget_amount) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) end end @@ -410,30 +410,30 @@ module Google # Update properties of this object def update!(**args) - @html_snippet = args[:html_snippet] unless args[:html_snippet].nil? - @account_id = args[:account_id] unless args[:account_id].nil? - @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? - @corrections = args[:corrections] unless args[:corrections].nil? - @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? + @html_snippet = args[:html_snippet] if args.key?(:html_snippet) + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name) + @agency_id = args[:agency_id] if args.key?(:agency_id) + @api_upload_timestamp = args[:api_upload_timestamp] if args.key?(:api_upload_timestamp) + @attribute = args[:attribute] if args.key?(:attribute) + @buyer_creative_id = args[:buyer_creative_id] if args.key?(:buyer_creative_id) + @click_through_url = args[:click_through_url] if args.key?(:click_through_url) + @corrections = args[:corrections] if args.key?(:corrections) + @disapproval_reasons = args[:disapproval_reasons] if args.key?(:disapproval_reasons) + @filtering_reasons = args[:filtering_reasons] if args.key?(:filtering_reasons) + @height = args[:height] if args.key?(:height) + @impression_tracking_url = args[:impression_tracking_url] if args.key?(:impression_tracking_url) + @kind = args[:kind] if args.key?(:kind) + @native_ad = args[:native_ad] if args.key?(:native_ad) + @product_categories = args[:product_categories] if args.key?(:product_categories) + @restricted_categories = args[:restricted_categories] if args.key?(:restricted_categories) + @sensitive_categories = args[:sensitive_categories] if args.key?(:sensitive_categories) + @status = args[:status] if args.key?(:status) + @vendor_type = args[:vendor_type] if args.key?(:vendor_type) + @version = args[:version] if args.key?(:version) + @video_url = args[:video_url] if args.key?(:video_url) + @width = args[:width] if args.key?(:width) end # @@ -456,8 +456,8 @@ module Google # Update properties of this object def update!(**args) - @details = args[:details] unless args[:details].nil? - @reason = args[:reason] unless args[:reason].nil? + @details = args[:details] if args.key?(:details) + @reason = args[:reason] if args.key?(:reason) end end @@ -481,8 +481,8 @@ module Google # Update properties of this object def update!(**args) - @details = args[:details] unless args[:details].nil? - @reason = args[:reason] unless args[:reason].nil? + @details = args[:details] if args.key?(:details) + @reason = args[:reason] if args.key?(:reason) end end @@ -508,8 +508,8 @@ module Google # Update properties of this object def update!(**args) - @date = args[:date] unless args[:date].nil? - @reasons = args[:reasons] unless args[:reasons].nil? + @date = args[:date] if args.key?(:date) + @reasons = args[:reasons] if args.key?(:reasons) end # @@ -534,8 +534,8 @@ module Google # Update properties of this object def update!(**args) - @filtering_count = args[:filtering_count] unless args[:filtering_count].nil? - @filtering_status = args[:filtering_status] unless args[:filtering_status].nil? + @filtering_count = args[:filtering_count] if args.key?(:filtering_count) + @filtering_status = args[:filtering_status] if args.key?(:filtering_status) end end end @@ -610,18 +610,18 @@ module Google # 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? + @advertiser = args[:advertiser] if args.key?(:advertiser) + @app_icon = args[:app_icon] if args.key?(:app_icon) + @body = args[:body] if args.key?(:body) + @call_to_action = args[:call_to_action] if args.key?(:call_to_action) + @click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url) + @headline = args[:headline] if args.key?(:headline) + @image = args[:image] if args.key?(:image) + @impression_tracking_url = args[:impression_tracking_url] if args.key?(:impression_tracking_url) + @logo = args[:logo] if args.key?(:logo) + @price = args[:price] if args.key?(:price) + @star_rating = args[:star_rating] if args.key?(:star_rating) + @store = args[:store] if args.key?(:store) end # The app icon, for app download ads. @@ -649,9 +649,9 @@ module Google # 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? + @height = args[:height] if args.key?(:height) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) end end @@ -680,9 +680,9 @@ module Google # 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? + @height = args[:height] if args.key?(:height) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) end end @@ -711,9 +711,9 @@ module Google # 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? + @height = args[:height] if args.key?(:height) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) end end end @@ -747,9 +747,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -837,19 +837,19 @@ module Google # Update properties of this object def update!(**args) - @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? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @private_exchange_min_cpm = args[:private_exchange_min_cpm] unless args[:private_exchange_min_cpm].nil? - @publisher_blocks_overriden = args[:publisher_blocks_overriden] unless args[:publisher_blocks_overriden].nil? - @seller_network = args[:seller_network] unless args[:seller_network].nil? - @start_time = args[:start_time] unless args[:start_time].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser = args[:advertiser] if args.key?(:advertiser) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @deal_tier = args[:deal_tier] if args.key?(:deal_tier) + @end_time = args[:end_time] if args.key?(:end_time) + @fixed_cpm = args[:fixed_cpm] if args.key?(:fixed_cpm) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @private_exchange_min_cpm = args[:private_exchange_min_cpm] if args.key?(:private_exchange_min_cpm) + @publisher_blocks_overriden = args[:publisher_blocks_overriden] if args.key?(:publisher_blocks_overriden) + @seller_network = args[:seller_network] if args.key?(:seller_network) + @start_time = args[:start_time] if args.key?(:start_time) end end @@ -875,8 +875,8 @@ module Google # Update properties of this object def update!(**args) - @direct_deals = args[:direct_deals] unless args[:direct_deals].nil? - @kind = args[:kind] unless args[:kind].nil? + @direct_deals = args[:direct_deals] if args.key?(:direct_deals) + @kind = args[:kind] if args.key?(:kind) end end @@ -1008,28 +1008,28 @@ module Google # Update properties of this object def update!(**args) - @bid_rate = args[:bid_rate] unless args[:bid_rate].nil? - @bid_request_rate = args[:bid_request_rate] unless args[:bid_request_rate].nil? - @callout_status_rate = args[:callout_status_rate] unless args[:callout_status_rate].nil? - @cookie_matcher_status_rate = args[:cookie_matcher_status_rate] unless args[:cookie_matcher_status_rate].nil? - @creative_status_rate = args[:creative_status_rate] unless args[:creative_status_rate].nil? - @filtered_bid_rate = args[:filtered_bid_rate] unless args[:filtered_bid_rate].nil? - @hosted_match_status_rate = args[:hosted_match_status_rate] unless args[:hosted_match_status_rate].nil? - @inventory_match_rate = args[:inventory_match_rate] unless args[:inventory_match_rate].nil? - @kind = args[:kind] unless args[:kind].nil? - @latency_50th_percentile = args[:latency_50th_percentile] unless args[:latency_50th_percentile].nil? - @latency_85th_percentile = args[:latency_85th_percentile] unless args[:latency_85th_percentile].nil? - @latency_95th_percentile = args[:latency_95th_percentile] unless args[:latency_95th_percentile].nil? - @no_quota_in_region = args[:no_quota_in_region] unless args[:no_quota_in_region].nil? - @out_of_quota = args[:out_of_quota] unless args[:out_of_quota].nil? - @pixel_match_requests = args[:pixel_match_requests] unless args[:pixel_match_requests].nil? - @pixel_match_responses = args[:pixel_match_responses] unless args[:pixel_match_responses].nil? - @quota_configured_limit = args[:quota_configured_limit] unless args[:quota_configured_limit].nil? - @quota_throttled_limit = args[:quota_throttled_limit] unless args[:quota_throttled_limit].nil? - @region = args[:region] unless args[:region].nil? - @successful_request_rate = args[:successful_request_rate] unless args[:successful_request_rate].nil? - @timestamp = args[:timestamp] unless args[:timestamp].nil? - @unsuccessful_request_rate = args[:unsuccessful_request_rate] unless args[:unsuccessful_request_rate].nil? + @bid_rate = args[:bid_rate] if args.key?(:bid_rate) + @bid_request_rate = args[:bid_request_rate] if args.key?(:bid_request_rate) + @callout_status_rate = args[:callout_status_rate] if args.key?(:callout_status_rate) + @cookie_matcher_status_rate = args[:cookie_matcher_status_rate] if args.key?(:cookie_matcher_status_rate) + @creative_status_rate = args[:creative_status_rate] if args.key?(:creative_status_rate) + @filtered_bid_rate = args[:filtered_bid_rate] if args.key?(:filtered_bid_rate) + @hosted_match_status_rate = args[:hosted_match_status_rate] if args.key?(:hosted_match_status_rate) + @inventory_match_rate = args[:inventory_match_rate] if args.key?(:inventory_match_rate) + @kind = args[:kind] if args.key?(:kind) + @latency_50th_percentile = args[:latency_50th_percentile] if args.key?(:latency_50th_percentile) + @latency_85th_percentile = args[:latency_85th_percentile] if args.key?(:latency_85th_percentile) + @latency_95th_percentile = args[:latency_95th_percentile] if args.key?(:latency_95th_percentile) + @no_quota_in_region = args[:no_quota_in_region] if args.key?(:no_quota_in_region) + @out_of_quota = args[:out_of_quota] if args.key?(:out_of_quota) + @pixel_match_requests = args[:pixel_match_requests] if args.key?(:pixel_match_requests) + @pixel_match_responses = args[:pixel_match_responses] if args.key?(:pixel_match_responses) + @quota_configured_limit = args[:quota_configured_limit] if args.key?(:quota_configured_limit) + @quota_throttled_limit = args[:quota_throttled_limit] if args.key?(:quota_throttled_limit) + @region = args[:region] if args.key?(:region) + @successful_request_rate = args[:successful_request_rate] if args.key?(:successful_request_rate) + @timestamp = args[:timestamp] if args.key?(:timestamp) + @unsuccessful_request_rate = args[:unsuccessful_request_rate] if args.key?(:unsuccessful_request_rate) end end @@ -1056,8 +1056,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @performance_report = args[:performance_report] unless args[:performance_report].nil? + @kind = args[:kind] if args.key?(:kind) + @performance_report = args[:performance_report] if args.key?(:performance_report) end end @@ -1201,29 +1201,29 @@ module Google # Update properties of this object def update!(**args) - @billing_id = args[:billing_id] unless args[:billing_id].nil? - @config_id = args[:config_id] unless args[:config_id].nil? - @config_name = args[:config_name] unless args[:config_name].nil? - @creative_type = args[:creative_type] unless args[:creative_type].nil? - @dimensions = args[:dimensions] unless args[:dimensions].nil? - @excluded_content_labels = args[:excluded_content_labels] unless args[:excluded_content_labels].nil? - @excluded_geo_criteria_ids = args[:excluded_geo_criteria_ids] unless args[:excluded_geo_criteria_ids].nil? - @excluded_placements = args[:excluded_placements] unless args[:excluded_placements].nil? - @excluded_user_lists = args[:excluded_user_lists] unless args[:excluded_user_lists].nil? - @excluded_verticals = args[:excluded_verticals] unless args[:excluded_verticals].nil? - @geo_criteria_ids = args[:geo_criteria_ids] unless args[:geo_criteria_ids].nil? - @is_active = args[:is_active] unless args[:is_active].nil? - @kind = args[:kind] unless args[:kind].nil? - @languages = args[:languages] unless args[:languages].nil? - @mobile_carriers = args[:mobile_carriers] unless args[:mobile_carriers].nil? - @mobile_devices = args[:mobile_devices] unless args[:mobile_devices].nil? - @mobile_operating_system_versions = args[:mobile_operating_system_versions] unless args[:mobile_operating_system_versions].nil? - @placements = args[:placements] unless args[:placements].nil? - @platforms = args[:platforms] unless args[:platforms].nil? - @supported_creative_attributes = args[:supported_creative_attributes] unless args[:supported_creative_attributes].nil? - @user_lists = args[:user_lists] unless args[:user_lists].nil? - @vendor_types = args[:vendor_types] unless args[:vendor_types].nil? - @verticals = args[:verticals] unless args[:verticals].nil? + @billing_id = args[:billing_id] if args.key?(:billing_id) + @config_id = args[:config_id] if args.key?(:config_id) + @config_name = args[:config_name] if args.key?(:config_name) + @creative_type = args[:creative_type] if args.key?(:creative_type) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @excluded_content_labels = args[:excluded_content_labels] if args.key?(:excluded_content_labels) + @excluded_geo_criteria_ids = args[:excluded_geo_criteria_ids] if args.key?(:excluded_geo_criteria_ids) + @excluded_placements = args[:excluded_placements] if args.key?(:excluded_placements) + @excluded_user_lists = args[:excluded_user_lists] if args.key?(:excluded_user_lists) + @excluded_verticals = args[:excluded_verticals] if args.key?(:excluded_verticals) + @geo_criteria_ids = args[:geo_criteria_ids] if args.key?(:geo_criteria_ids) + @is_active = args[:is_active] if args.key?(:is_active) + @kind = args[:kind] if args.key?(:kind) + @languages = args[:languages] if args.key?(:languages) + @mobile_carriers = args[:mobile_carriers] if args.key?(:mobile_carriers) + @mobile_devices = args[:mobile_devices] if args.key?(:mobile_devices) + @mobile_operating_system_versions = args[:mobile_operating_system_versions] if args.key?(:mobile_operating_system_versions) + @placements = args[:placements] if args.key?(:placements) + @platforms = args[:platforms] if args.key?(:platforms) + @supported_creative_attributes = args[:supported_creative_attributes] if args.key?(:supported_creative_attributes) + @user_lists = args[:user_lists] if args.key?(:user_lists) + @vendor_types = args[:vendor_types] if args.key?(:vendor_types) + @verticals = args[:verticals] if args.key?(:verticals) end # @@ -1246,8 +1246,8 @@ module Google # Update properties of this object def update!(**args) - @height = args[:height] unless args[:height].nil? - @width = args[:width] unless args[:width].nil? + @height = args[:height] if args.key?(:height) + @width = args[:width] if args.key?(:width) end end @@ -1273,8 +1273,8 @@ module Google # Update properties of this object def update!(**args) - @token = args[:token] unless args[:token].nil? - @type = args[:type] unless args[:type].nil? + @token = args[:token] if args.key?(:token) + @type = args[:type] if args.key?(:type) end end @@ -1300,8 +1300,8 @@ module Google # Update properties of this object def update!(**args) - @token = args[:token] unless args[:token].nil? - @type = args[:type] unless args[:type].nil? + @token = args[:token] if args.key?(:token) + @type = args[:type] if args.key?(:type) end end end @@ -1326,8 +1326,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end end diff --git a/generated/google/apis/adexchangebuyer_v1_4.rb b/generated/google/apis/adexchangebuyer_v1_4.rb new file mode 100644 index 000000000..801ff9541 --- /dev/null +++ b/generated/google/apis/adexchangebuyer_v1_4.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/adexchangebuyer_v1_4/service.rb' +require 'google/apis/adexchangebuyer_v1_4/classes.rb' +require 'google/apis/adexchangebuyer_v1_4/representations.rb' + +module Google + module Apis + # Ad Exchange Buyer API + # + # Accesses your bidding-account information, submits creatives for validation, + # finds available direct deals, and retrieves performance reports. + # + # @see https://developers.google.com/ad-exchange/buyer-rest + module AdexchangebuyerV1_4 + VERSION = 'V1_4' + REVISION = '20160118' + + # Manage your Ad Exchange buyer account configuration + AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' + end + end +end diff --git a/generated/google/apis/adexchangebuyer_v1_4/classes.rb b/generated/google/apis/adexchangebuyer_v1_4/classes.rb new file mode 100644 index 000000000..79ddc991d --- /dev/null +++ b/generated/google/apis/adexchangebuyer_v1_4/classes.rb @@ -0,0 +1,2785 @@ +# 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 AdexchangebuyerV1_4 + + # Configuration data for an Ad Exchange buyer account. + class Account + include Google::Apis::Core::Hashable + + # Your bidder locations that have distinct URLs. + # Corresponds to the JSON property `bidderLocation` + # @return [Array] + attr_accessor :bidder_location + + # The nid parameter value used in cookie match requests. Please contact your + # technical account manager if you need to change this. + # Corresponds to the JSON property `cookieMatchingNid` + # @return [String] + attr_accessor :cookie_matching_nid + + # The base URL used in cookie match requests. + # Corresponds to the JSON property `cookieMatchingUrl` + # @return [String] + attr_accessor :cookie_matching_url + + # Account id. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Resource type. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The maximum number of active creatives that an account can have, where a + # creative is active if it was inserted or bid with in the last 30 days. Please + # contact your technical account manager if you need to change this. + # Corresponds to the JSON property `maximumActiveCreatives` + # @return [Fixnum] + attr_accessor :maximum_active_creatives + + # The sum of all bidderLocation.maximumQps values cannot exceed this. Please + # contact your technical account manager if you need to change this. + # Corresponds to the JSON property `maximumTotalQps` + # @return [Fixnum] + attr_accessor :maximum_total_qps + + # The number of creatives that this account inserted or bid with in the last 30 + # days. + # Corresponds to the JSON property `numberActiveCreatives` + # @return [Fixnum] + attr_accessor :number_active_creatives + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bidder_location = args[:bidder_location] if args.key?(:bidder_location) + @cookie_matching_nid = args[:cookie_matching_nid] if args.key?(:cookie_matching_nid) + @cookie_matching_url = args[:cookie_matching_url] if args.key?(:cookie_matching_url) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @maximum_active_creatives = args[:maximum_active_creatives] if args.key?(:maximum_active_creatives) + @maximum_total_qps = args[:maximum_total_qps] if args.key?(:maximum_total_qps) + @number_active_creatives = args[:number_active_creatives] if args.key?(:number_active_creatives) + end + + # + class BidderLocation + include Google::Apis::Core::Hashable + + # The maximum queries per second the Ad Exchange will send. + # Corresponds to the JSON property `maximumQps` + # @return [Fixnum] + attr_accessor :maximum_qps + + # The geographical region the Ad Exchange should send requests from. Only used + # by some quota systems, but always setting the value is recommended. Allowed + # values: + # - ASIA + # - EUROPE + # - US_EAST + # - US_WEST + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # The URL to which the Ad Exchange will send bid requests. + # 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) + @maximum_qps = args[:maximum_qps] if args.key?(:maximum_qps) + @region = args[:region] if args.key?(:region) + @url = args[:url] if args.key?(:url) + end + end + end + + # An account feed lists Ad Exchange buyer accounts that the user has access to. + # Each entry in the feed corresponds to a single buyer account. + class AccountsList + include Google::Apis::Core::Hashable + + # A list of accounts. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # Resource type. + # 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) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class AddOrderDealsRequest + include Google::Apis::Core::Hashable + + # The list of deals to add + # Corresponds to the JSON property `deals` + # @return [Array] + attr_accessor :deals + + # The last known proposal revision number. + # Corresponds to the JSON property `proposalRevisionNumber` + # @return [String] + attr_accessor :proposal_revision_number + + # Indicates an optional action to take on the proposal + # Corresponds to the JSON property `updateAction` + # @return [String] + attr_accessor :update_action + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deals = args[:deals] if args.key?(:deals) + @proposal_revision_number = args[:proposal_revision_number] if args.key?(:proposal_revision_number) + @update_action = args[:update_action] if args.key?(:update_action) + end + end + + # + class AddOrderDealsResponse + include Google::Apis::Core::Hashable + + # List of deals added (in the same proposal as passed in the request) + # Corresponds to the JSON property `deals` + # @return [Array] + attr_accessor :deals + + # The updated revision number for the proposal. + # Corresponds to the JSON property `proposalRevisionNumber` + # @return [String] + attr_accessor :proposal_revision_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deals = args[:deals] if args.key?(:deals) + @proposal_revision_number = args[:proposal_revision_number] if args.key?(:proposal_revision_number) + end + end + + # + class AddOrderNotesRequest + include Google::Apis::Core::Hashable + + # The list of notes to add. + # Corresponds to the JSON property `notes` + # @return [Array] + attr_accessor :notes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @notes = args[:notes] if args.key?(:notes) + end + end + + # + class AddOrderNotesResponse + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `notes` + # @return [Array] + attr_accessor :notes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @notes = args[:notes] if args.key?(:notes) + end + end + + # The configuration data for an Ad Exchange billing info. + class BillingInfo + include Google::Apis::Core::Hashable + + # Account id. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Account name. + # Corresponds to the JSON property `accountName` + # @return [String] + attr_accessor :account_name + + # A list of adgroup IDs associated with this particular account. These IDs may + # show up as part of a realtime bidding BidRequest, which indicates a bid + # request for this account. + # Corresponds to the JSON property `billingId` + # @return [Array] + attr_accessor :billing_id + + # Resource type. + # 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) + @account_id = args[:account_id] if args.key?(:account_id) + @account_name = args[:account_name] if args.key?(:account_name) + @billing_id = args[:billing_id] if args.key?(:billing_id) + @kind = args[:kind] if args.key?(:kind) + end + end + + # A billing info feed lists Billing Info the Ad Exchange buyer account has + # access to. Each entry in the feed corresponds to a single billing info. + class BillingInfoList + include Google::Apis::Core::Hashable + + # A list of billing info relevant for your account. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # Resource type. + # 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) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + end + end + + # The configuration data for Ad Exchange RTB - Budget API. + class Budget + include Google::Apis::Core::Hashable + + # The id of the account. This is required for get and update requests. + # Corresponds to the JSON property `accountId` + # @return [String] + attr_accessor :account_id + + # The billing id to determine which adgroup to provide budget information for. + # This is required for get and update requests. + # Corresponds to the JSON property `billingId` + # @return [String] + attr_accessor :billing_id + + # 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 + + # The currency code for the buyer. This cannot be altered here. + # Corresponds to the JSON property `currencyCode` + # @return [String] + attr_accessor :currency_code + + # The unique id that describes this item. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The kind of the resource, i.e. "adexchangebuyer#budget". + # 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) + @account_id = args[:account_id] if args.key?(:account_id) + @billing_id = args[:billing_id] if args.key?(:billing_id) + @budget_amount = args[:budget_amount] if args.key?(:budget_amount) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class Buyer + include Google::Apis::Core::Hashable + + # Adx account id of the buyer. + # Corresponds to the JSON property `accountId` + # @return [String] + attr_accessor :account_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + end + end + + # + class ContactInformation + include Google::Apis::Core::Hashable + + # Email address of the contact. + # Corresponds to the JSON property `email` + # @return [String] + attr_accessor :email + + # The name of the contact. + # 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) + @email = args[:email] if args.key?(:email) + @name = args[:name] if args.key?(:name) + end + end + + # + class CreateOrdersRequest + include Google::Apis::Core::Hashable + + # The list of proposals to create. + # Corresponds to the JSON property `proposals` + # @return [Array] + attr_accessor :proposals + + # + # Corresponds to the JSON property `webPropertyCode` + # @return [String] + attr_accessor :web_property_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @proposals = args[:proposals] if args.key?(:proposals) + @web_property_code = args[:web_property_code] if args.key?(:web_property_code) + end + end + + # + class CreateOrdersResponse + include Google::Apis::Core::Hashable + + # The list of proposals successfully created. + # Corresponds to the JSON property `proposals` + # @return [Array] + attr_accessor :proposals + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @proposals = args[:proposals] if args.key?(:proposals) + end + end + + # A creative and its classification data. + class Creative + include Google::Apis::Core::Hashable + + # The HTML snippet that displays the ad when inserted in the web page. If set, + # videoURL should not be set. + # Corresponds to the JSON property `HTMLSnippet` + # @return [String] + attr_accessor :html_snippet + + # Account id. + # Corresponds to the JSON property `accountId` + # @return [Fixnum] + attr_accessor :account_id + + # Detected advertiser id, if any. Read-only. This field should not be set in + # requests. + # Corresponds to the JSON property `advertiserId` + # @return [Array] + attr_accessor :advertiser_id + + # The name of the company being advertised in the creative. + # Corresponds to the JSON property `advertiserName` + # @return [String] + attr_accessor :advertiser_name + + # The agency id for this creative. + # Corresponds to the JSON property `agencyId` + # @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] + attr_accessor :attribute + + # A buyer-specific id identifying the creative in this ad. + # Corresponds to the JSON property `buyerCreativeId` + # @return [String] + attr_accessor :buyer_creative_id + + # The set of destination urls for the snippet. + # Corresponds to the JSON property `clickThroughUrl` + # @return [Array] + attr_accessor :click_through_url + + # Shows any corrections that were applied to this creative. Read-only. This + # field should not be set in requests. + # Corresponds to the JSON property `corrections` + # @return [Array] + attr_accessor :corrections + + # Top-level deals status. Read-only. This field should not be set in requests. + # If disapproved, an entry for auctionType=DIRECT_DEALS (or ALL) in + # servingRestrictions will also exist. Note that this may be nuanced with other + # contextual restrictions, in which case it may be preferable to read from + # servingRestrictions directly. + # Corresponds to the JSON property `dealsStatus` + # @return [String] + attr_accessor :deals_status + + # The filtering reasons for the creative. Read-only. This field should not be + # set in requests. + # Corresponds to the JSON property `filteringReasons` + # @return [Google::Apis::AdexchangebuyerV1_4::Creative::FilteringReasons] + attr_accessor :filtering_reasons + + # Ad height. + # Corresponds to the JSON property `height` + # @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_4::Creative::NativeAd] + attr_accessor :native_ad + + # Top-level open auction status. Read-only. This field should not be set in + # requests. If disapproved, an entry for auctionType=OPEN_AUCTION (or ALL) in + # servingRestrictions will also exist. Note that this may be nuanced with other + # contextual restrictions, in which case it may be preferable to read from + # ServingRestrictions directly. + # Corresponds to the JSON property `openAuctionStatus` + # @return [String] + attr_accessor :open_auction_status + + # Detected product categories, if any. Read-only. This field should not be set + # in requests. + # Corresponds to the JSON property `productCategories` + # @return [Array] + attr_accessor :product_categories + + # All restricted categories for the ads that may be shown from this snippet. + # Corresponds to the JSON property `restrictedCategories` + # @return [Array] + attr_accessor :restricted_categories + + # Detected sensitive categories, if any. Read-only. This field should not be set + # in requests. + # Corresponds to the JSON property `sensitiveCategories` + # @return [Array] + attr_accessor :sensitive_categories + + # The granular status of this ad in specific contexts. A context here relates to + # where something ultimately serves (for example, a physical location, a + # platform, an HTTPS vs HTTP request, or the type of auction). Read-only. This + # field should not be set in requests. + # Corresponds to the JSON property `servingRestrictions` + # @return [Array] + attr_accessor :serving_restrictions + + # All vendor types for the ads that may be shown from this snippet. + # Corresponds to the JSON property `vendorType` + # @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] + attr_accessor :video_url + + # Ad width. + # 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) + @html_snippet = args[:html_snippet] if args.key?(:html_snippet) + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name) + @agency_id = args[:agency_id] if args.key?(:agency_id) + @api_upload_timestamp = args[:api_upload_timestamp] if args.key?(:api_upload_timestamp) + @attribute = args[:attribute] if args.key?(:attribute) + @buyer_creative_id = args[:buyer_creative_id] if args.key?(:buyer_creative_id) + @click_through_url = args[:click_through_url] if args.key?(:click_through_url) + @corrections = args[:corrections] if args.key?(:corrections) + @deals_status = args[:deals_status] if args.key?(:deals_status) + @filtering_reasons = args[:filtering_reasons] if args.key?(:filtering_reasons) + @height = args[:height] if args.key?(:height) + @impression_tracking_url = args[:impression_tracking_url] if args.key?(:impression_tracking_url) + @kind = args[:kind] if args.key?(:kind) + @native_ad = args[:native_ad] if args.key?(:native_ad) + @open_auction_status = args[:open_auction_status] if args.key?(:open_auction_status) + @product_categories = args[:product_categories] if args.key?(:product_categories) + @restricted_categories = args[:restricted_categories] if args.key?(:restricted_categories) + @sensitive_categories = args[:sensitive_categories] if args.key?(:sensitive_categories) + @serving_restrictions = args[:serving_restrictions] if args.key?(:serving_restrictions) + @vendor_type = args[:vendor_type] if args.key?(:vendor_type) + @version = args[:version] if args.key?(:version) + @video_url = args[:video_url] if args.key?(:video_url) + @width = args[:width] if args.key?(:width) + end + + # + class Correction + include Google::Apis::Core::Hashable + + # Additional details about the correction. + # Corresponds to the JSON property `details` + # @return [Array] + attr_accessor :details + + # The type of correction that was applied to the creative. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @details = args[:details] if args.key?(:details) + @reason = args[:reason] if args.key?(:reason) + end + end + + # The filtering reasons for the creative. Read-only. This field should not be + # set in requests. + class FilteringReasons + include Google::Apis::Core::Hashable + + # The date in ISO 8601 format for the data. The data is collected from 00:00:00 + # to 23:59:59 in PST. + # Corresponds to the JSON property `date` + # @return [String] + attr_accessor :date + + # The filtering reasons. + # Corresponds to the JSON property `reasons` + # @return [Array] + attr_accessor :reasons + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @date = args[:date] if args.key?(:date) + @reasons = args[:reasons] if args.key?(:reasons) + end + + # + class Reason + include Google::Apis::Core::Hashable + + # The number of times the creative was filtered for the status. The count is + # aggregated across all publishers on the exchange. + # Corresponds to the JSON property `filteringCount` + # @return [String] + attr_accessor :filtering_count + + # The filtering status code. Please refer to the creative-status-codes.txt file + # for different statuses. + # Corresponds to the JSON property `filteringStatus` + # @return [Fixnum] + attr_accessor :filtering_status + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @filtering_count = args[:filtering_count] if args.key?(:filtering_count) + @filtering_status = args[:filtering_status] if args.key?(:filtering_status) + 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_4::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_4::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_4::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] if args.key?(:advertiser) + @app_icon = args[:app_icon] if args.key?(:app_icon) + @body = args[:body] if args.key?(:body) + @call_to_action = args[:call_to_action] if args.key?(:call_to_action) + @click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url) + @headline = args[:headline] if args.key?(:headline) + @image = args[:image] if args.key?(:image) + @impression_tracking_url = args[:impression_tracking_url] if args.key?(:impression_tracking_url) + @logo = args[:logo] if args.key?(:logo) + @price = args[:price] if args.key?(:price) + @star_rating = args[:star_rating] if args.key?(:star_rating) + @store = args[:store] if args.key?(:store) + 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] if args.key?(:height) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) + 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] if args.key?(:height) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) + 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] if args.key?(:height) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) + end + end + end + + # + class ServingRestriction + include Google::Apis::Core::Hashable + + # All known contexts/restrictions. + # Corresponds to the JSON property `contexts` + # @return [Array] + attr_accessor :contexts + + # The reasons for disapproval within this restriction, if any. Note that not all + # disapproval reasons may be categorized, so it is possible for the creative to + # have a status of DISAPPROVED or CONDITIONALLY_APPROVED with an empty list for + # disapproval_reasons. In this case, please reach out to your TAM to help debug + # the issue. + # Corresponds to the JSON property `disapprovalReasons` + # @return [Array] + attr_accessor :disapproval_reasons + + # Why the creative is ineligible to serve in this context (e.g., it has been + # explicitly disapproved or is pending review). + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @contexts = args[:contexts] if args.key?(:contexts) + @disapproval_reasons = args[:disapproval_reasons] if args.key?(:disapproval_reasons) + @reason = args[:reason] if args.key?(:reason) + end + + # + class Context + include Google::Apis::Core::Hashable + + # Only set when contextType=AUCTION_TYPE. Represents the auction types this + # restriction applies to. + # Corresponds to the JSON property `auctionType` + # @return [Array] + attr_accessor :auction_type + + # The type of context (e.g., location, platform, auction type, SSL-ness). + # Corresponds to the JSON property `contextType` + # @return [String] + attr_accessor :context_type + + # Only set when contextType=LOCATION. Represents the geo criterias this + # restriction applies to. + # Corresponds to the JSON property `geoCriteriaId` + # @return [Array] + attr_accessor :geo_criteria_id + + # Only set when contextType=PLATFORM. Represents the platforms this restriction + # applies to. + # Corresponds to the JSON property `platform` + # @return [Array] + attr_accessor :platform + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @auction_type = args[:auction_type] if args.key?(:auction_type) + @context_type = args[:context_type] if args.key?(:context_type) + @geo_criteria_id = args[:geo_criteria_id] if args.key?(:geo_criteria_id) + @platform = args[:platform] if args.key?(:platform) + end + end + + # + class DisapprovalReason + include Google::Apis::Core::Hashable + + # Additional details about the reason for disapproval. + # Corresponds to the JSON property `details` + # @return [Array] + attr_accessor :details + + # The categorized reason for disapproval. + # Corresponds to the JSON property `reason` + # @return [String] + attr_accessor :reason + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @details = args[:details] if args.key?(:details) + @reason = args[:reason] if args.key?(:reason) + end + end + end + end + + # The creatives feed lists the active creatives for the Ad Exchange buyer + # accounts that the user has access to. Each entry in the feed corresponds to a + # single creative. + class CreativesList + include Google::Apis::Core::Hashable + + # A list of creatives. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # Resource type. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Continuation token used to page through creatives. To retrieve the next page + # of results, set the next request's "pageToken" value to this. + # 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] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # + class DealTerms + include Google::Apis::Core::Hashable + + # Visibilty of the URL in bid requests. + # Corresponds to the JSON property `brandingType` + # @return [String] + attr_accessor :branding_type + + # Description for the proposed terms of the deal. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # Non-binding estimate of the estimated gross spend for this deal Can be set by + # buyer or seller. + # Corresponds to the JSON property `estimatedGrossSpend` + # @return [Google::Apis::AdexchangebuyerV1_4::Price] + attr_accessor :estimated_gross_spend + + # Non-binding estimate of the impressions served per day Can be set by buyer or + # seller. + # Corresponds to the JSON property `estimatedImpressionsPerDay` + # @return [String] + attr_accessor :estimated_impressions_per_day + + # The terms for guaranteed fixed price deals. + # Corresponds to the JSON property `guaranteedFixedPriceTerms` + # @return [Google::Apis::AdexchangebuyerV1_4::DealTermsGuaranteedFixedPriceTerms] + attr_accessor :guaranteed_fixed_price_terms + + # The terms for non-guaranteed auction deals. + # Corresponds to the JSON property `nonGuaranteedAuctionTerms` + # @return [Google::Apis::AdexchangebuyerV1_4::DealTermsNonGuaranteedAuctionTerms] + attr_accessor :non_guaranteed_auction_terms + + # The terms for non-guaranteed fixed price deals. + # Corresponds to the JSON property `nonGuaranteedFixedPriceTerms` + # @return [Google::Apis::AdexchangebuyerV1_4::DealTermsNonGuaranteedFixedPriceTerms] + attr_accessor :non_guaranteed_fixed_price_terms + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @branding_type = args[:branding_type] if args.key?(:branding_type) + @description = args[:description] if args.key?(:description) + @estimated_gross_spend = args[:estimated_gross_spend] if args.key?(:estimated_gross_spend) + @estimated_impressions_per_day = args[:estimated_impressions_per_day] if args.key?(:estimated_impressions_per_day) + @guaranteed_fixed_price_terms = args[:guaranteed_fixed_price_terms] if args.key?(:guaranteed_fixed_price_terms) + @non_guaranteed_auction_terms = args[:non_guaranteed_auction_terms] if args.key?(:non_guaranteed_auction_terms) + @non_guaranteed_fixed_price_terms = args[:non_guaranteed_fixed_price_terms] if args.key?(:non_guaranteed_fixed_price_terms) + end + end + + # + class DealTermsGuaranteedFixedPriceTerms + include Google::Apis::Core::Hashable + + # Fixed price for the specified buyer. + # Corresponds to the JSON property `fixedPrices` + # @return [Array] + attr_accessor :fixed_prices + + # Guaranteed impressions as a percentage. This is the percentage of guaranteed + # looks that the buyer is guaranteeing to buy. + # Corresponds to the JSON property `guaranteedImpressions` + # @return [String] + attr_accessor :guaranteed_impressions + + # Count of guaranteed looks. Required for deal, optional for product. + # Corresponds to the JSON property `guaranteedLooks` + # @return [String] + attr_accessor :guaranteed_looks + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fixed_prices = args[:fixed_prices] if args.key?(:fixed_prices) + @guaranteed_impressions = args[:guaranteed_impressions] if args.key?(:guaranteed_impressions) + @guaranteed_looks = args[:guaranteed_looks] if args.key?(:guaranteed_looks) + end + end + + # + class DealTermsNonGuaranteedAuctionTerms + include Google::Apis::Core::Hashable + + # Id of the corresponding private auction. + # Corresponds to the JSON property `privateAuctionId` + # @return [String] + attr_accessor :private_auction_id + + # Reserve price for the specified buyer. + # Corresponds to the JSON property `reservePricePerBuyers` + # @return [Array] + attr_accessor :reserve_price_per_buyers + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @private_auction_id = args[:private_auction_id] if args.key?(:private_auction_id) + @reserve_price_per_buyers = args[:reserve_price_per_buyers] if args.key?(:reserve_price_per_buyers) + end + end + + # + class DealTermsNonGuaranteedFixedPriceTerms + include Google::Apis::Core::Hashable + + # Fixed price for the specified buyer. + # Corresponds to the JSON property `fixedPrices` + # @return [Array] + attr_accessor :fixed_prices + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @fixed_prices = args[:fixed_prices] if args.key?(:fixed_prices) + end + end + + # + class DeleteOrderDealsRequest + include Google::Apis::Core::Hashable + + # List of deals to delete for a given proposal + # Corresponds to the JSON property `dealIds` + # @return [Array] + attr_accessor :deal_ids + + # The last known proposal revision number. + # Corresponds to the JSON property `proposalRevisionNumber` + # @return [String] + attr_accessor :proposal_revision_number + + # + # Corresponds to the JSON property `updateAction` + # @return [String] + attr_accessor :update_action + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deal_ids = args[:deal_ids] if args.key?(:deal_ids) + @proposal_revision_number = args[:proposal_revision_number] if args.key?(:proposal_revision_number) + @update_action = args[:update_action] if args.key?(:update_action) + end + end + + # + class DeleteOrderDealsResponse + include Google::Apis::Core::Hashable + + # List of deals deleted (in the same proposal as passed in the request) + # Corresponds to the JSON property `deals` + # @return [Array] + attr_accessor :deals + + # The updated revision number for the proposal. + # Corresponds to the JSON property `proposalRevisionNumber` + # @return [String] + attr_accessor :proposal_revision_number + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deals = args[:deals] if args.key?(:deals) + @proposal_revision_number = args[:proposal_revision_number] if args.key?(:proposal_revision_number) + end + end + + # + class DeliveryControl + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `creativeBlockingLevel` + # @return [String] + attr_accessor :creative_blocking_level + + # + # Corresponds to the JSON property `deliveryRateType` + # @return [String] + attr_accessor :delivery_rate_type + + # + # Corresponds to the JSON property `frequencyCaps` + # @return [Array] + attr_accessor :frequency_caps + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creative_blocking_level = args[:creative_blocking_level] if args.key?(:creative_blocking_level) + @delivery_rate_type = args[:delivery_rate_type] if args.key?(:delivery_rate_type) + @frequency_caps = args[:frequency_caps] if args.key?(:frequency_caps) + end + end + + # + class DeliveryControlFrequencyCap + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `maxImpressions` + # @return [Fixnum] + attr_accessor :max_impressions + + # + # Corresponds to the JSON property `numTimeUnits` + # @return [Fixnum] + attr_accessor :num_time_units + + # + # Corresponds to the JSON property `timeUnitType` + # @return [String] + attr_accessor :time_unit_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @max_impressions = args[:max_impressions] if args.key?(:max_impressions) + @num_time_units = args[:num_time_units] if args.key?(:num_time_units) + @time_unit_type = args[:time_unit_type] if args.key?(:time_unit_type) + end + end + + # + class EditAllOrderDealsRequest + include Google::Apis::Core::Hashable + + # List of deals to edit. Service may perform 3 different operations based on + # comparison of deals in this list vs deals already persisted in database: 1. + # Add new deal to proposal If a deal in this list does not exist in the proposal, + # the service will create a new deal and add it to the proposal. Validation + # will follow AddOrderDealsRequest. 2. Update existing deal in the proposal If a + # deal in this list already exist in the proposal, the service will update that + # existing deal to this new deal in the request. Validation will follow + # UpdateOrderDealsRequest. 3. Delete deals from the proposal (just need the id) + # If a existing deal in the proposal is not present in this list, the service + # will delete that deal from the proposal. Validation will follow + # DeleteOrderDealsRequest. + # Corresponds to the JSON property `deals` + # @return [Array] + attr_accessor :deals + + # Represents a proposal in the marketplace. A proposal is the unit of + # negotiation between a seller and a buyer and contains deals which are served. + # Each field in a proposal can have one of the following setting: + # (readonly) - It is an error to try and set this field. (buyer-readonly) - Only + # the seller can set this field. (seller-readonly) - Only the buyer can set this + # field. (updatable) - The field is updatable at all times by either buyer or + # the seller. + # Corresponds to the JSON property `proposal` + # @return [Google::Apis::AdexchangebuyerV1_4::Proposal] + attr_accessor :proposal + + # The last known revision number for the proposal. + # Corresponds to the JSON property `proposalRevisionNumber` + # @return [String] + attr_accessor :proposal_revision_number + + # Indicates an optional action to take on the proposal + # Corresponds to the JSON property `updateAction` + # @return [String] + attr_accessor :update_action + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deals = args[:deals] if args.key?(:deals) + @proposal = args[:proposal] if args.key?(:proposal) + @proposal_revision_number = args[:proposal_revision_number] if args.key?(:proposal_revision_number) + @update_action = args[:update_action] if args.key?(:update_action) + end + end + + # + class EditAllOrderDealsResponse + include Google::Apis::Core::Hashable + + # List of all deals in the proposal after edit. + # Corresponds to the JSON property `deals` + # @return [Array] + attr_accessor :deals + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deals = args[:deals] if args.key?(:deals) + end + end + + # + class GetOffersResponse + include Google::Apis::Core::Hashable + + # The returned list of products. + # Corresponds to the JSON property `products` + # @return [Array] + attr_accessor :products + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @products = args[:products] if args.key?(:products) + end + end + + # + class GetOrderDealsResponse + include Google::Apis::Core::Hashable + + # List of deals for the proposal + # Corresponds to the JSON property `deals` + # @return [Array] + attr_accessor :deals + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @deals = args[:deals] if args.key?(:deals) + end + end + + # + class GetOrderNotesResponse + include Google::Apis::Core::Hashable + + # The list of matching notes. + # Corresponds to the JSON property `notes` + # @return [Array] + attr_accessor :notes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @notes = args[:notes] if args.key?(:notes) + end + end + + # + class GetOrdersResponse + include Google::Apis::Core::Hashable + + # The list of matching proposals. + # Corresponds to the JSON property `proposals` + # @return [Array] + attr_accessor :proposals + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @proposals = args[:proposals] if args.key?(:proposals) + end + end + + # A proposal can contain multiple deals. A deal contains the terms and targeting + # information that is used for serving. + class MarketplaceDeal + include Google::Apis::Core::Hashable + + # Buyer private data (hidden from seller). + # Corresponds to the JSON property `buyerPrivateData` + # @return [Google::Apis::AdexchangebuyerV1_4::PrivateData] + attr_accessor :buyer_private_data + + # The time (ms since epoch) of the deal creation. (readonly) + # Corresponds to the JSON property `creationTimeMs` + # @return [String] + attr_accessor :creation_time_ms + + # Specifies the creative pre-approval policy (buyer-readonly) + # Corresponds to the JSON property `creativePreApprovalPolicy` + # @return [String] + attr_accessor :creative_pre_approval_policy + + # A unique deal=id for the deal (readonly). + # Corresponds to the JSON property `dealId` + # @return [String] + attr_accessor :deal_id + + # The set of fields around delivery control that are interesting for a buyer to + # see but are non-negotiable. These are set by the publisher. This message is + # assigned an id of 100 since some day we would want to model this as a protobuf + # extension. + # Corresponds to the JSON property `deliveryControl` + # @return [Google::Apis::AdexchangebuyerV1_4::DeliveryControl] + attr_accessor :delivery_control + + # The external deal id assigned to this deal once the deal is finalized. This is + # the deal-id that shows up in serving/reporting etc. (readonly) + # Corresponds to the JSON property `externalDealId` + # @return [String] + attr_accessor :external_deal_id + + # Proposed flight end time of the deal (ms since epoch) This will generally be + # stored in a granularity of a second. (updatable) + # Corresponds to the JSON property `flightEndTimeMs` + # @return [String] + attr_accessor :flight_end_time_ms + + # Proposed flight start time of the deal (ms since epoch) This will generally be + # stored in a granularity of a second. (updatable) + # Corresponds to the JSON property `flightStartTimeMs` + # @return [String] + attr_accessor :flight_start_time_ms + + # Description for the deal terms. (updatable) + # Corresponds to the JSON property `inventoryDescription` + # @return [String] + attr_accessor :inventory_description + + # Identifies what kind of resource this is. Value: the fixed string " + # adexchangebuyer#marketplaceDeal". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The time (ms since epoch) when the deal was last updated. (readonly) + # Corresponds to the JSON property `lastUpdateTimeMs` + # @return [String] + attr_accessor :last_update_time_ms + + # The name of the deal. (updatable) + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The product-id from which this deal was created. (readonly, except on create) + # Corresponds to the JSON property `productId` + # @return [String] + attr_accessor :product_id + + # The revision number of the product that the deal was created from (readonly, + # except on create) + # Corresponds to the JSON property `productRevisionNumber` + # @return [String] + attr_accessor :product_revision_number + + # + # Corresponds to the JSON property `proposalId` + # @return [String] + attr_accessor :proposal_id + + # Optional Seller contact information for the deal (buyer-readonly) + # Corresponds to the JSON property `sellerContacts` + # @return [Array] + attr_accessor :seller_contacts + + # The shared targeting visible to buyers and sellers. (updatable) + # Corresponds to the JSON property `sharedTargetings` + # @return [Array] + attr_accessor :shared_targetings + + # The syndication product associated with the deal. (readonly, except on create) + # Corresponds to the JSON property `syndicationProduct` + # @return [String] + attr_accessor :syndication_product + + # The negotiable terms of the deal. (updatable) + # Corresponds to the JSON property `terms` + # @return [Google::Apis::AdexchangebuyerV1_4::DealTerms] + attr_accessor :terms + + # + # Corresponds to the JSON property `webPropertyCode` + # @return [String] + attr_accessor :web_property_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @buyer_private_data = args[:buyer_private_data] if args.key?(:buyer_private_data) + @creation_time_ms = args[:creation_time_ms] if args.key?(:creation_time_ms) + @creative_pre_approval_policy = args[:creative_pre_approval_policy] if args.key?(:creative_pre_approval_policy) + @deal_id = args[:deal_id] if args.key?(:deal_id) + @delivery_control = args[:delivery_control] if args.key?(:delivery_control) + @external_deal_id = args[:external_deal_id] if args.key?(:external_deal_id) + @flight_end_time_ms = args[:flight_end_time_ms] if args.key?(:flight_end_time_ms) + @flight_start_time_ms = args[:flight_start_time_ms] if args.key?(:flight_start_time_ms) + @inventory_description = args[:inventory_description] if args.key?(:inventory_description) + @kind = args[:kind] if args.key?(:kind) + @last_update_time_ms = args[:last_update_time_ms] if args.key?(:last_update_time_ms) + @name = args[:name] if args.key?(:name) + @product_id = args[:product_id] if args.key?(:product_id) + @product_revision_number = args[:product_revision_number] if args.key?(:product_revision_number) + @proposal_id = args[:proposal_id] if args.key?(:proposal_id) + @seller_contacts = args[:seller_contacts] if args.key?(:seller_contacts) + @shared_targetings = args[:shared_targetings] if args.key?(:shared_targetings) + @syndication_product = args[:syndication_product] if args.key?(:syndication_product) + @terms = args[:terms] if args.key?(:terms) + @web_property_code = args[:web_property_code] if args.key?(:web_property_code) + end + end + + # + class MarketplaceDealParty + include Google::Apis::Core::Hashable + + # The buyer/seller associated with the deal. One of buyer/seller is specified + # for a deal-party. + # Corresponds to the JSON property `buyer` + # @return [Google::Apis::AdexchangebuyerV1_4::Buyer] + attr_accessor :buyer + + # The buyer/seller associated with the deal. One of buyer/seller is specified + # for a deal party. + # Corresponds to the JSON property `seller` + # @return [Google::Apis::AdexchangebuyerV1_4::Seller] + attr_accessor :seller + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @buyer = args[:buyer] if args.key?(:buyer) + @seller = args[:seller] if args.key?(:seller) + end + end + + # + class MarketplaceLabel + include Google::Apis::Core::Hashable + + # The accountId of the party that created the label. + # Corresponds to the JSON property `accountId` + # @return [String] + attr_accessor :account_id + + # The creation time (in ms since epoch) for the label. + # Corresponds to the JSON property `createTimeMs` + # @return [String] + attr_accessor :create_time_ms + + # Information about the party that created the label. + # Corresponds to the JSON property `deprecatedMarketplaceDealParty` + # @return [Google::Apis::AdexchangebuyerV1_4::MarketplaceDealParty] + attr_accessor :deprecated_marketplace_deal_party + + # The label to use. + # Corresponds to the JSON property `label` + # @return [String] + attr_accessor :label + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @create_time_ms = args[:create_time_ms] if args.key?(:create_time_ms) + @deprecated_marketplace_deal_party = args[:deprecated_marketplace_deal_party] if args.key?(:deprecated_marketplace_deal_party) + @label = args[:label] if args.key?(:label) + end + end + + # A proposal is associated with a bunch of notes which may optionally be + # associated with a deal and/or revision number. + class MarketplaceNote + include Google::Apis::Core::Hashable + + # The role of the person (buyer/seller) creating the note. (readonly) + # Corresponds to the JSON property `creatorRole` + # @return [String] + attr_accessor :creator_role + + # Notes can optionally be associated with a deal. (readonly, except on create) + # Corresponds to the JSON property `dealId` + # @return [String] + attr_accessor :deal_id + + # Identifies what kind of resource this is. Value: the fixed string " + # adexchangebuyer#marketplaceNote". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The actual note to attach. (readonly, except on create) + # Corresponds to the JSON property `note` + # @return [String] + attr_accessor :note + + # The unique id for the note. (readonly) + # Corresponds to the JSON property `noteId` + # @return [String] + attr_accessor :note_id + + # The proposalId that a note is attached to. (readonly) + # Corresponds to the JSON property `proposalId` + # @return [String] + attr_accessor :proposal_id + + # If the note is associated with a proposal revision number, then store that + # here. (readonly, except on create) + # Corresponds to the JSON property `proposalRevisionNumber` + # @return [String] + attr_accessor :proposal_revision_number + + # The timestamp (ms since epoch) that this note was created. (readonly) + # 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) + @creator_role = args[:creator_role] if args.key?(:creator_role) + @deal_id = args[:deal_id] if args.key?(:deal_id) + @kind = args[:kind] if args.key?(:kind) + @note = args[:note] if args.key?(:note) + @note_id = args[:note_id] if args.key?(:note_id) + @proposal_id = args[:proposal_id] if args.key?(:proposal_id) + @proposal_revision_number = args[:proposal_revision_number] if args.key?(:proposal_revision_number) + @timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms) + end + end + + # The configuration data for an Ad Exchange performance report list. + class PerformanceReport + include Google::Apis::Core::Hashable + + # The number of bid responses with an ad. + # Corresponds to the JSON property `bidRate` + # @return [Float] + attr_accessor :bid_rate + + # The number of bid requests sent to your bidder. + # Corresponds to the JSON property `bidRequestRate` + # @return [Float] + attr_accessor :bid_request_rate + + # Rate of various prefiltering statuses per match. Please refer to the callout- + # status-codes.txt file for different statuses. + # Corresponds to the JSON property `calloutStatusRate` + # @return [Array] + attr_accessor :callout_status_rate + + # Average QPS for cookie matcher operations. + # Corresponds to the JSON property `cookieMatcherStatusRate` + # @return [Array] + attr_accessor :cookie_matcher_status_rate + + # Rate of ads with a given status. Please refer to the creative-status-codes.txt + # file for different statuses. + # Corresponds to the JSON property `creativeStatusRate` + # @return [Array] + attr_accessor :creative_status_rate + + # The number of bid responses that were filtered due to a policy violation or + # other errors. + # Corresponds to the JSON property `filteredBidRate` + # @return [Float] + attr_accessor :filtered_bid_rate + + # Average QPS for hosted match operations. + # Corresponds to the JSON property `hostedMatchStatusRate` + # @return [Array] + attr_accessor :hosted_match_status_rate + + # The number of potential queries based on your pretargeting settings. + # Corresponds to the JSON property `inventoryMatchRate` + # @return [Float] + attr_accessor :inventory_match_rate + + # Resource type. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The 50th percentile round trip latency(ms) as perceived from Google servers + # for the duration period covered by the report. + # Corresponds to the JSON property `latency50thPercentile` + # @return [Float] + attr_accessor :latency_50th_percentile + + # The 85th percentile round trip latency(ms) as perceived from Google servers + # for the duration period covered by the report. + # Corresponds to the JSON property `latency85thPercentile` + # @return [Float] + attr_accessor :latency_85th_percentile + + # The 95th percentile round trip latency(ms) as perceived from Google servers + # for the duration period covered by the report. + # Corresponds to the JSON property `latency95thPercentile` + # @return [Float] + attr_accessor :latency_95th_percentile + + # Rate of various quota account statuses per quota check. + # Corresponds to the JSON property `noQuotaInRegion` + # @return [Float] + attr_accessor :no_quota_in_region + + # Rate of various quota account statuses per quota check. + # Corresponds to the JSON property `outOfQuota` + # @return [Float] + attr_accessor :out_of_quota + + # Average QPS for pixel match requests from clients. + # Corresponds to the JSON property `pixelMatchRequests` + # @return [Float] + attr_accessor :pixel_match_requests + + # Average QPS for pixel match responses from clients. + # Corresponds to the JSON property `pixelMatchResponses` + # @return [Float] + attr_accessor :pixel_match_responses + + # The configured quota limits for this account. + # Corresponds to the JSON property `quotaConfiguredLimit` + # @return [Float] + attr_accessor :quota_configured_limit + + # The throttled quota limits for this account. + # Corresponds to the JSON property `quotaThrottledLimit` + # @return [Float] + attr_accessor :quota_throttled_limit + + # The trading location of this data. + # Corresponds to the JSON property `region` + # @return [String] + attr_accessor :region + + # The number of properly formed bid responses received by our servers within the + # deadline. + # Corresponds to the JSON property `successfulRequestRate` + # @return [Float] + attr_accessor :successful_request_rate + + # The unix timestamp of the starting time of this performance data. + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + # The number of bid responses that were unsuccessful due to timeouts, incorrect + # formatting, etc. + # Corresponds to the JSON property `unsuccessfulRequestRate` + # @return [Float] + attr_accessor :unsuccessful_request_rate + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bid_rate = args[:bid_rate] if args.key?(:bid_rate) + @bid_request_rate = args[:bid_request_rate] if args.key?(:bid_request_rate) + @callout_status_rate = args[:callout_status_rate] if args.key?(:callout_status_rate) + @cookie_matcher_status_rate = args[:cookie_matcher_status_rate] if args.key?(:cookie_matcher_status_rate) + @creative_status_rate = args[:creative_status_rate] if args.key?(:creative_status_rate) + @filtered_bid_rate = args[:filtered_bid_rate] if args.key?(:filtered_bid_rate) + @hosted_match_status_rate = args[:hosted_match_status_rate] if args.key?(:hosted_match_status_rate) + @inventory_match_rate = args[:inventory_match_rate] if args.key?(:inventory_match_rate) + @kind = args[:kind] if args.key?(:kind) + @latency_50th_percentile = args[:latency_50th_percentile] if args.key?(:latency_50th_percentile) + @latency_85th_percentile = args[:latency_85th_percentile] if args.key?(:latency_85th_percentile) + @latency_95th_percentile = args[:latency_95th_percentile] if args.key?(:latency_95th_percentile) + @no_quota_in_region = args[:no_quota_in_region] if args.key?(:no_quota_in_region) + @out_of_quota = args[:out_of_quota] if args.key?(:out_of_quota) + @pixel_match_requests = args[:pixel_match_requests] if args.key?(:pixel_match_requests) + @pixel_match_responses = args[:pixel_match_responses] if args.key?(:pixel_match_responses) + @quota_configured_limit = args[:quota_configured_limit] if args.key?(:quota_configured_limit) + @quota_throttled_limit = args[:quota_throttled_limit] if args.key?(:quota_throttled_limit) + @region = args[:region] if args.key?(:region) + @successful_request_rate = args[:successful_request_rate] if args.key?(:successful_request_rate) + @timestamp = args[:timestamp] if args.key?(:timestamp) + @unsuccessful_request_rate = args[:unsuccessful_request_rate] if args.key?(:unsuccessful_request_rate) + end + end + + # The configuration data for an Ad Exchange performance report list. https:// + # sites.google.com/a/google.com/adx-integration/Home/engineering/binary-releases/ + # rtb-api-release https://cs.corp.google.com/#piper///depot/google3/contentads/ + # adx/tools/rtb_api/adxrtb.py + class PerformanceReportList + include Google::Apis::Core::Hashable + + # Resource type. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # A list of performance reports relevant for the account. + # Corresponds to the JSON property `performanceReport` + # @return [Array] + attr_accessor :performance_report + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @kind = args[:kind] if args.key?(:kind) + @performance_report = args[:performance_report] if args.key?(:performance_report) + end + end + + # + class PretargetingConfig + include Google::Apis::Core::Hashable + + # The id for billing purposes, provided for reference. Leave this field blank + # for insert requests; the id will be generated automatically. + # Corresponds to the JSON property `billingId` + # @return [String] + attr_accessor :billing_id + + # The config id; generated automatically. Leave this field blank for insert + # requests. + # Corresponds to the JSON property `configId` + # @return [String] + attr_accessor :config_id + + # The name of the config. Must be unique. Required for all requests. + # Corresponds to the JSON property `configName` + # @return [String] + attr_accessor :config_name + + # List must contain exactly one of PRETARGETING_CREATIVE_TYPE_HTML or + # PRETARGETING_CREATIVE_TYPE_VIDEO. + # Corresponds to the JSON property `creativeType` + # @return [Array] + attr_accessor :creative_type + + # Requests which allow one of these (width, height) pairs will match. All pairs + # must be supported ad dimensions. + # Corresponds to the JSON property `dimensions` + # @return [Array] + attr_accessor :dimensions + + # Requests with any of these content labels will not match. Values are from + # content-labels.txt in the downloadable files section. + # Corresponds to the JSON property `excludedContentLabels` + # @return [Array] + attr_accessor :excluded_content_labels + + # Requests containing any of these geo criteria ids will not match. + # Corresponds to the JSON property `excludedGeoCriteriaIds` + # @return [Array] + attr_accessor :excluded_geo_criteria_ids + + # Requests containing any of these placements will not match. + # Corresponds to the JSON property `excludedPlacements` + # @return [Array] + attr_accessor :excluded_placements + + # Requests containing any of these users list ids will not match. + # Corresponds to the JSON property `excludedUserLists` + # @return [Array] + attr_accessor :excluded_user_lists + + # Requests containing any of these vertical ids will not match. Values are from + # the publisher-verticals.txt file in the downloadable files section. + # Corresponds to the JSON property `excludedVerticals` + # @return [Array] + attr_accessor :excluded_verticals + + # Requests containing any of these geo criteria ids will match. + # Corresponds to the JSON property `geoCriteriaIds` + # @return [Array] + attr_accessor :geo_criteria_ids + + # Whether this config is active. Required for all requests. + # Corresponds to the JSON property `isActive` + # @return [Boolean] + attr_accessor :is_active + alias_method :is_active?, :is_active + + # The kind of the resource, i.e. "adexchangebuyer#pretargetingConfig". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Request containing any of these language codes will match. + # Corresponds to the JSON property `languages` + # @return [Array] + attr_accessor :languages + + # Requests containing any of these mobile carrier ids will match. Values are + # from mobile-carriers.csv in the downloadable files section. + # Corresponds to the JSON property `mobileCarriers` + # @return [Array] + attr_accessor :mobile_carriers + + # Requests containing any of these mobile device ids will match. Values are from + # mobile-devices.csv in the downloadable files section. + # Corresponds to the JSON property `mobileDevices` + # @return [Array] + attr_accessor :mobile_devices + + # Requests containing any of these mobile operating system version ids will + # match. Values are from mobile-os.csv in the downloadable files section. + # Corresponds to the JSON property `mobileOperatingSystemVersions` + # @return [Array] + attr_accessor :mobile_operating_system_versions + + # Requests containing any of these placements will match. + # Corresponds to the JSON property `placements` + # @return [Array] + attr_accessor :placements + + # Requests matching any of these platforms will match. Possible values are + # PRETARGETING_PLATFORM_MOBILE, PRETARGETING_PLATFORM_DESKTOP, and + # PRETARGETING_PLATFORM_TABLET. + # Corresponds to the JSON property `platforms` + # @return [Array] + attr_accessor :platforms + + # Creative attributes should be declared here if all creatives corresponding to + # this pretargeting configuration have that creative attribute. Values are from + # pretargetable-creative-attributes.txt in the downloadable files section. + # Corresponds to the JSON property `supportedCreativeAttributes` + # @return [Array] + attr_accessor :supported_creative_attributes + + # Requests containing any of these user list ids will match. + # Corresponds to the JSON property `userLists` + # @return [Array] + attr_accessor :user_lists + + # Requests that allow any of these vendor ids will match. Values are from + # vendors.txt in the downloadable files section. + # Corresponds to the JSON property `vendorTypes` + # @return [Array] + attr_accessor :vendor_types + + # Requests containing any of these vertical ids will match. + # Corresponds to the JSON property `verticals` + # @return [Array] + attr_accessor :verticals + + # Video requests satisfying any of these player size constraints will match. + # Corresponds to the JSON property `videoPlayerSizes` + # @return [Array] + attr_accessor :video_player_sizes + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @billing_id = args[:billing_id] if args.key?(:billing_id) + @config_id = args[:config_id] if args.key?(:config_id) + @config_name = args[:config_name] if args.key?(:config_name) + @creative_type = args[:creative_type] if args.key?(:creative_type) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @excluded_content_labels = args[:excluded_content_labels] if args.key?(:excluded_content_labels) + @excluded_geo_criteria_ids = args[:excluded_geo_criteria_ids] if args.key?(:excluded_geo_criteria_ids) + @excluded_placements = args[:excluded_placements] if args.key?(:excluded_placements) + @excluded_user_lists = args[:excluded_user_lists] if args.key?(:excluded_user_lists) + @excluded_verticals = args[:excluded_verticals] if args.key?(:excluded_verticals) + @geo_criteria_ids = args[:geo_criteria_ids] if args.key?(:geo_criteria_ids) + @is_active = args[:is_active] if args.key?(:is_active) + @kind = args[:kind] if args.key?(:kind) + @languages = args[:languages] if args.key?(:languages) + @mobile_carriers = args[:mobile_carriers] if args.key?(:mobile_carriers) + @mobile_devices = args[:mobile_devices] if args.key?(:mobile_devices) + @mobile_operating_system_versions = args[:mobile_operating_system_versions] if args.key?(:mobile_operating_system_versions) + @placements = args[:placements] if args.key?(:placements) + @platforms = args[:platforms] if args.key?(:platforms) + @supported_creative_attributes = args[:supported_creative_attributes] if args.key?(:supported_creative_attributes) + @user_lists = args[:user_lists] if args.key?(:user_lists) + @vendor_types = args[:vendor_types] if args.key?(:vendor_types) + @verticals = args[:verticals] if args.key?(:verticals) + @video_player_sizes = args[:video_player_sizes] if args.key?(:video_player_sizes) + end + + # + class Dimension + include Google::Apis::Core::Hashable + + # Height in pixels. + # Corresponds to the JSON property `height` + # @return [String] + attr_accessor :height + + # Width in pixels. + # Corresponds to the JSON property `width` + # @return [String] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @height = args[:height] if args.key?(:height) + @width = args[:width] if args.key?(:width) + end + end + + # + class ExcludedPlacement + include Google::Apis::Core::Hashable + + # The value of the placement. Interpretation depends on the placement type, e.g. + # URL for a site placement, channel name for a channel placement, app id for a + # mobile app placement. + # Corresponds to the JSON property `token` + # @return [String] + attr_accessor :token + + # The type of the placement. + # 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) + @token = args[:token] if args.key?(:token) + @type = args[:type] if args.key?(:type) + end + end + + # + class Placement + include Google::Apis::Core::Hashable + + # The value of the placement. Interpretation depends on the placement type, e.g. + # URL for a site placement, channel name for a channel placement, app id for a + # mobile app placement. + # Corresponds to the JSON property `token` + # @return [String] + attr_accessor :token + + # The type of the placement. + # 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) + @token = args[:token] if args.key?(:token) + @type = args[:type] if args.key?(:type) + end + end + + # + class VideoPlayerSize + include Google::Apis::Core::Hashable + + # The type of aspect ratio. Leave this field blank to match all aspect ratios. + # Corresponds to the JSON property `aspectRatio` + # @return [String] + attr_accessor :aspect_ratio + + # The minimum player height in pixels. Leave this field blank to match any + # player height. + # Corresponds to the JSON property `minHeight` + # @return [String] + attr_accessor :min_height + + # The minimum player width in pixels. Leave this field blank to match any player + # width. + # Corresponds to the JSON property `minWidth` + # @return [String] + attr_accessor :min_width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @aspect_ratio = args[:aspect_ratio] if args.key?(:aspect_ratio) + @min_height = args[:min_height] if args.key?(:min_height) + @min_width = args[:min_width] if args.key?(:min_width) + end + end + end + + # + class PretargetingConfigList + include Google::Apis::Core::Hashable + + # A list of pretargeting configs + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # Resource type. + # 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) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + end + end + + # + class Price + include Google::Apis::Core::Hashable + + # The price value in micros. + # Corresponds to the JSON property `amountMicros` + # @return [Float] + attr_accessor :amount_micros + + # The currency code for the price. + # Corresponds to the JSON property `currencyCode` + # @return [String] + attr_accessor :currency_code + + # The pricing type for the deal/product. + # Corresponds to the JSON property `pricingType` + # @return [String] + attr_accessor :pricing_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @amount_micros = args[:amount_micros] if args.key?(:amount_micros) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @pricing_type = args[:pricing_type] if args.key?(:pricing_type) + end + end + + # Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an + # product can become [0,1] deals. To check if there is a PricePerBuyer for a + # particular buyer or buyer/advertiser pair, we look for the most specific + # matching rule - we first look for a rule matching the buyer and advertiser, + # next a rule with the buyer but an empty advertiser list, and otherwise look + # for a matching rule where no buyer is set. + class PricePerBuyer + include Google::Apis::Core::Hashable + + # The buyer who will pay this price. If unset, all buyers can pay this price (if + # the advertisers match, and there's no more specific rule matching the buyer). + # Corresponds to the JSON property `buyer` + # @return [Google::Apis::AdexchangebuyerV1_4::Buyer] + attr_accessor :buyer + + # The specified price + # Corresponds to the JSON property `price` + # @return [Google::Apis::AdexchangebuyerV1_4::Price] + attr_accessor :price + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @buyer = args[:buyer] if args.key?(:buyer) + @price = args[:price] if args.key?(:price) + end + end + + # + class PrivateData + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `referenceId` + # @return [String] + attr_accessor :reference_id + + # + # Corresponds to the JSON property `referencePayload` + # @return [String] + attr_accessor :reference_payload + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @reference_id = args[:reference_id] if args.key?(:reference_id) + @reference_payload = args[:reference_payload] if args.key?(:reference_payload) + end + end + + # A product is segment of inventory that a seller wishes to sell. It is + # associated with certain terms and targeting information which helps buyer know + # more about the inventory. Each field in a product can have one of the + # following setting: + # (readonly) - It is an error to try and set this field. (buyer-readonly) - Only + # the seller can set this field. (seller-readonly) - Only the buyer can set this + # field. (updatable) - The field is updatable at all times by either buyer or + # the seller. + class Product + include Google::Apis::Core::Hashable + + # Creation time in ms. since epoch (readonly) + # Corresponds to the JSON property `creationTimeMs` + # @return [String] + attr_accessor :creation_time_ms + + # Optional contact information for the creator of this product. (buyer-readonly) + # Corresponds to the JSON property `creatorContacts` + # @return [Array] + attr_accessor :creator_contacts + + # The proposed end time for the deal (ms since epoch) (buyer-readonly) + # Corresponds to the JSON property `flightEndTimeMs` + # @return [String] + attr_accessor :flight_end_time_ms + + # Inventory availability dates. (times are in ms since epoch) The granularity is + # generally in the order of seconds. (buyer-readonly) + # Corresponds to the JSON property `flightStartTimeMs` + # @return [String] + attr_accessor :flight_start_time_ms + + # If the creator has already signed off on the product, then the buyer can + # finalize the deal by accepting the product as is. When copying to a proposal, + # if any of the terms are changed, then auto_finalize is automatically set to + # false. + # Corresponds to the JSON property `hasCreatorSignedOff` + # @return [Boolean] + attr_accessor :has_creator_signed_off + alias_method :has_creator_signed_off?, :has_creator_signed_off + + # What exchange will provide this inventory (readonly, except on create). + # Corresponds to the JSON property `inventorySource` + # @return [String] + attr_accessor :inventory_source + + # Identifies what kind of resource this is. Value: the fixed string " + # adexchangebuyer#product". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # Optional List of labels for the product (optional, buyer-readonly). + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + # Time of last update in ms. since epoch (readonly) + # Corresponds to the JSON property `lastUpdateTimeMs` + # @return [String] + attr_accessor :last_update_time_ms + + # The name for this product as set by the seller. (buyer-readonly) + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The unique id for the product (readonly) + # Corresponds to the JSON property `productId` + # @return [String] + attr_accessor :product_id + + # The revision number of the product. (readonly) + # Corresponds to the JSON property `revisionNumber` + # @return [String] + attr_accessor :revision_number + + # Information about the seller that created this product (readonly, except on + # create) + # Corresponds to the JSON property `seller` + # @return [Google::Apis::AdexchangebuyerV1_4::Seller] + attr_accessor :seller + + # Targeting that is shared between the buyer and the seller. Each targeting + # criteria has a specified key and for each key there is a list of inclusion + # value or exclusion values. (buyer-readonly) + # Corresponds to the JSON property `sharedTargetings` + # @return [Array] + attr_accessor :shared_targetings + + # The state of the product. (buyer-readonly) + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # The syndication product associated with the deal. (readonly, except on create) + # Corresponds to the JSON property `syndicationProduct` + # @return [String] + attr_accessor :syndication_product + + # The negotiable terms of the deal (buyer-readonly) + # Corresponds to the JSON property `terms` + # @return [Google::Apis::AdexchangebuyerV1_4::DealTerms] + attr_accessor :terms + + # + # Corresponds to the JSON property `webPropertyCode` + # @return [String] + attr_accessor :web_property_code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_time_ms = args[:creation_time_ms] if args.key?(:creation_time_ms) + @creator_contacts = args[:creator_contacts] if args.key?(:creator_contacts) + @flight_end_time_ms = args[:flight_end_time_ms] if args.key?(:flight_end_time_ms) + @flight_start_time_ms = args[:flight_start_time_ms] if args.key?(:flight_start_time_ms) + @has_creator_signed_off = args[:has_creator_signed_off] if args.key?(:has_creator_signed_off) + @inventory_source = args[:inventory_source] if args.key?(:inventory_source) + @kind = args[:kind] if args.key?(:kind) + @labels = args[:labels] if args.key?(:labels) + @last_update_time_ms = args[:last_update_time_ms] if args.key?(:last_update_time_ms) + @name = args[:name] if args.key?(:name) + @product_id = args[:product_id] if args.key?(:product_id) + @revision_number = args[:revision_number] if args.key?(:revision_number) + @seller = args[:seller] if args.key?(:seller) + @shared_targetings = args[:shared_targetings] if args.key?(:shared_targetings) + @state = args[:state] if args.key?(:state) + @syndication_product = args[:syndication_product] if args.key?(:syndication_product) + @terms = args[:terms] if args.key?(:terms) + @web_property_code = args[:web_property_code] if args.key?(:web_property_code) + end + end + + # Represents a proposal in the marketplace. A proposal is the unit of + # negotiation between a seller and a buyer and contains deals which are served. + # Each field in a proposal can have one of the following setting: + # (readonly) - It is an error to try and set this field. (buyer-readonly) - Only + # the seller can set this field. (seller-readonly) - Only the buyer can set this + # field. (updatable) - The field is updatable at all times by either buyer or + # the seller. + class Proposal + include Google::Apis::Core::Hashable + + # Reference to the buyer that will get billed for this proposal. (readonly) + # Corresponds to the JSON property `billedBuyer` + # @return [Google::Apis::AdexchangebuyerV1_4::Buyer] + attr_accessor :billed_buyer + + # Reference to the buyer on the proposal. (readonly, except on create) + # Corresponds to the JSON property `buyer` + # @return [Google::Apis::AdexchangebuyerV1_4::Buyer] + attr_accessor :buyer + + # Optional contact information fort the buyer. (seller-readonly) + # Corresponds to the JSON property `buyerContacts` + # @return [Array] + attr_accessor :buyer_contacts + + # Private data for buyer. (hidden from seller). + # Corresponds to the JSON property `buyerPrivateData` + # @return [Google::Apis::AdexchangebuyerV1_4::PrivateData] + attr_accessor :buyer_private_data + + # When an proposal is in an accepted state, indicates whether the buyer has + # signed off Once both sides have signed off on a deal, the proposal can be + # finalized by the seller. (seller-readonly) + # Corresponds to the JSON property `hasBuyerSignedOff` + # @return [Boolean] + attr_accessor :has_buyer_signed_off + alias_method :has_buyer_signed_off?, :has_buyer_signed_off + + # When an proposal is in an accepted state, indicates whether the buyer has + # signed off Once both sides have signed off on a deal, the proposal can be + # finalized by the seller. (buyer-readonly) + # Corresponds to the JSON property `hasSellerSignedOff` + # @return [Boolean] + attr_accessor :has_seller_signed_off + alias_method :has_seller_signed_off?, :has_seller_signed_off + + # What exchange will provide this inventory (readonly, except on create). + # Corresponds to the JSON property `inventorySource` + # @return [String] + attr_accessor :inventory_source + + # True if the proposal is being renegotiated (readonly). + # Corresponds to the JSON property `isRenegotiating` + # @return [Boolean] + attr_accessor :is_renegotiating + alias_method :is_renegotiating?, :is_renegotiating + + # True, if the buyside inventory setup is complete for this proposal. (readonly) + # Corresponds to the JSON property `isSetupComplete` + # @return [Boolean] + attr_accessor :is_setup_complete + alias_method :is_setup_complete?, :is_setup_complete + + # Identifies what kind of resource this is. Value: the fixed string " + # adexchangebuyer#proposal". + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # List of labels associated with the proposal. (readonly) + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + # The role of the last user that either updated the proposal or left a comment. ( + # readonly) + # Corresponds to the JSON property `lastUpdaterOrCommentorRole` + # @return [String] + attr_accessor :last_updater_or_commentor_role + + # + # Corresponds to the JSON property `lastUpdaterRole` + # @return [String] + attr_accessor :last_updater_role + + # The name for the proposal (updatable) + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Indicates whether the buyer/seller created the proposal.(readonly) + # Corresponds to the JSON property `originatorRole` + # @return [String] + attr_accessor :originator_role + + # The unique id of the proposal. (readonly). + # Corresponds to the JSON property `proposalId` + # @return [String] + attr_accessor :proposal_id + + # The current state of the proposal. (readonly) + # Corresponds to the JSON property `proposalState` + # @return [String] + attr_accessor :proposal_state + + # The revision number for the proposal (readonly). + # Corresponds to the JSON property `revisionNumber` + # @return [String] + attr_accessor :revision_number + + # The time (ms since epoch) when the proposal was last revised (readonly). + # Corresponds to the JSON property `revisionTimeMs` + # @return [String] + attr_accessor :revision_time_ms + + # Reference to the seller on the proposal. (readonly, except on create) + # Corresponds to the JSON property `seller` + # @return [Google::Apis::AdexchangebuyerV1_4::Seller] + attr_accessor :seller + + # Optional contact information for the seller (buyer-readonly). + # Corresponds to the JSON property `sellerContacts` + # @return [Array] + attr_accessor :seller_contacts + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @billed_buyer = args[:billed_buyer] if args.key?(:billed_buyer) + @buyer = args[:buyer] if args.key?(:buyer) + @buyer_contacts = args[:buyer_contacts] if args.key?(:buyer_contacts) + @buyer_private_data = args[:buyer_private_data] if args.key?(:buyer_private_data) + @has_buyer_signed_off = args[:has_buyer_signed_off] if args.key?(:has_buyer_signed_off) + @has_seller_signed_off = args[:has_seller_signed_off] if args.key?(:has_seller_signed_off) + @inventory_source = args[:inventory_source] if args.key?(:inventory_source) + @is_renegotiating = args[:is_renegotiating] if args.key?(:is_renegotiating) + @is_setup_complete = args[:is_setup_complete] if args.key?(:is_setup_complete) + @kind = args[:kind] if args.key?(:kind) + @labels = args[:labels] if args.key?(:labels) + @last_updater_or_commentor_role = args[:last_updater_or_commentor_role] if args.key?(:last_updater_or_commentor_role) + @last_updater_role = args[:last_updater_role] if args.key?(:last_updater_role) + @name = args[:name] if args.key?(:name) + @originator_role = args[:originator_role] if args.key?(:originator_role) + @proposal_id = args[:proposal_id] if args.key?(:proposal_id) + @proposal_state = args[:proposal_state] if args.key?(:proposal_state) + @revision_number = args[:revision_number] if args.key?(:revision_number) + @revision_time_ms = args[:revision_time_ms] if args.key?(:revision_time_ms) + @seller = args[:seller] if args.key?(:seller) + @seller_contacts = args[:seller_contacts] if args.key?(:seller_contacts) + end + end + + # + class Seller + include Google::Apis::Core::Hashable + + # The unique id for the seller. The seller fills in this field. The seller + # account id is then available to buyer in the product. + # Corresponds to the JSON property `accountId` + # @return [String] + attr_accessor :account_id + + # Optional sub-account id for the seller. + # Corresponds to the JSON property `subAccountId` + # @return [String] + attr_accessor :sub_account_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @account_id = args[:account_id] if args.key?(:account_id) + @sub_account_id = args[:sub_account_id] if args.key?(:sub_account_id) + end + end + + # + class SharedTargeting + include Google::Apis::Core::Hashable + + # The list of values to exclude from targeting. + # Corresponds to the JSON property `exclusions` + # @return [Array] + attr_accessor :exclusions + + # The list of value to include as part of the targeting. + # Corresponds to the JSON property `inclusions` + # @return [Array] + attr_accessor :inclusions + + # The key representing the shared targeting criterion. + # 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) + @exclusions = args[:exclusions] if args.key?(:exclusions) + @inclusions = args[:inclusions] if args.key?(:inclusions) + @key = args[:key] if args.key?(:key) + end + end + + # + class TargetingValue + include Google::Apis::Core::Hashable + + # The creative size value to exclude/include. + # Corresponds to the JSON property `creativeSizeValue` + # @return [Google::Apis::AdexchangebuyerV1_4::TargetingValueCreativeSize] + attr_accessor :creative_size_value + + # The daypart targeting to include / exclude. Filled in when the key is + # GOOG_DAYPART_TARGETING. + # Corresponds to the JSON property `dayPartTargetingValue` + # @return [Google::Apis::AdexchangebuyerV1_4::TargetingValueDayPartTargeting] + attr_accessor :day_part_targeting_value + + # The long value to exclude/include. + # Corresponds to the JSON property `longValue` + # @return [String] + attr_accessor :long_value + + # The string value to exclude/include. + # Corresponds to the JSON property `stringValue` + # @return [String] + attr_accessor :string_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creative_size_value = args[:creative_size_value] if args.key?(:creative_size_value) + @day_part_targeting_value = args[:day_part_targeting_value] if args.key?(:day_part_targeting_value) + @long_value = args[:long_value] if args.key?(:long_value) + @string_value = args[:string_value] if args.key?(:string_value) + end + end + + # + class TargetingValueCreativeSize + include Google::Apis::Core::Hashable + + # For video size type, the list of companion sizes. + # Corresponds to the JSON property `companionSizes` + # @return [Array] + attr_accessor :companion_sizes + + # The Creative size type. + # Corresponds to the JSON property `creativeSizeType` + # @return [String] + attr_accessor :creative_size_type + + # For regular or video creative size type, specifies the size of the creative. + # Corresponds to the JSON property `size` + # @return [Google::Apis::AdexchangebuyerV1_4::TargetingValueSize] + attr_accessor :size + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @companion_sizes = args[:companion_sizes] if args.key?(:companion_sizes) + @creative_size_type = args[:creative_size_type] if args.key?(:creative_size_type) + @size = args[:size] if args.key?(:size) + end + end + + # + class TargetingValueDayPartTargeting + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `dayParts` + # @return [Array] + attr_accessor :day_parts + + # + # Corresponds to the JSON property `timeZoneType` + # @return [String] + attr_accessor :time_zone_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day_parts = args[:day_parts] if args.key?(:day_parts) + @time_zone_type = args[:time_zone_type] if args.key?(:time_zone_type) + end + end + + # + class TargetingValueDayPartTargetingDayPart + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `dayOfWeek` + # @return [String] + attr_accessor :day_of_week + + # + # Corresponds to the JSON property `endHour` + # @return [Fixnum] + attr_accessor :end_hour + + # + # Corresponds to the JSON property `endMinute` + # @return [Fixnum] + attr_accessor :end_minute + + # + # Corresponds to the JSON property `startHour` + # @return [Fixnum] + attr_accessor :start_hour + + # + # Corresponds to the JSON property `startMinute` + # @return [Fixnum] + attr_accessor :start_minute + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @day_of_week = args[:day_of_week] if args.key?(:day_of_week) + @end_hour = args[:end_hour] if args.key?(:end_hour) + @end_minute = args[:end_minute] if args.key?(:end_minute) + @start_hour = args[:start_hour] if args.key?(:start_hour) + @start_minute = args[:start_minute] if args.key?(:start_minute) + end + end + + # + class TargetingValueSize + include Google::Apis::Core::Hashable + + # The height of the creative. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # The width of the creative. + # 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] if args.key?(:height) + @width = args[:width] if args.key?(:width) + end + end + end + end +end diff --git a/generated/google/apis/adexchangebuyer_v1_4/representations.rb b/generated/google/apis/adexchangebuyer_v1_4/representations.rb new file mode 100644 index 000000000..a0106d167 --- /dev/null +++ b/generated/google/apis/adexchangebuyer_v1_4/representations.rb @@ -0,0 +1,1033 @@ +# 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 AdexchangebuyerV1_4 + + class Account + class Representation < Google::Apis::Core::JsonRepresentation; end + + class BidderLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + + class AccountsList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AddOrderDealsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AddOrderDealsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AddOrderNotesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AddOrderNotesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class BillingInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class BillingInfoList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Budget + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Buyer + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ContactInformation + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CreateOrdersRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CreateOrdersResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Creative + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Correction + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class FilteringReasons + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Reason + 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 + + class ServingRestriction + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Context + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DisapprovalReason + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + end + + class CreativesList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DealTerms + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DealTermsGuaranteedFixedPriceTerms + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DealTermsNonGuaranteedAuctionTerms + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DealTermsNonGuaranteedFixedPriceTerms + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DeleteOrderDealsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DeleteOrderDealsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DeliveryControl + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DeliveryControlFrequencyCap + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class EditAllOrderDealsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class EditAllOrderDealsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GetOffersResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GetOrderDealsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GetOrderNotesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class GetOrdersResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class MarketplaceDeal + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class MarketplaceDealParty + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class MarketplaceLabel + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class MarketplaceNote + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class PerformanceReport + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class PerformanceReportList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class PretargetingConfig + class Representation < Google::Apis::Core::JsonRepresentation; end + + class Dimension + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ExcludedPlacement + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Placement + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class VideoPlayerSize + class Representation < Google::Apis::Core::JsonRepresentation; end + end + end + + class PretargetingConfigList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Price + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class PricePerBuyer + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class PrivateData + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Product + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Proposal + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Seller + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SharedTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TargetingValue + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TargetingValueCreativeSize + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TargetingValueDayPartTargeting + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TargetingValueDayPartTargetingDayPart + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TargetingValueSize + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Account + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bidder_location, as: 'bidderLocation', class: Google::Apis::AdexchangebuyerV1_4::Account::BidderLocation, decorator: Google::Apis::AdexchangebuyerV1_4::Account::BidderLocation::Representation + + property :cookie_matching_nid, as: 'cookieMatchingNid' + property :cookie_matching_url, as: 'cookieMatchingUrl' + property :id, as: 'id' + property :kind, as: 'kind' + property :maximum_active_creatives, as: 'maximumActiveCreatives' + property :maximum_total_qps, as: 'maximumTotalQps' + property :number_active_creatives, as: 'numberActiveCreatives' + end + + class BidderLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :maximum_qps, as: 'maximumQps' + property :region, as: 'region' + property :url, as: 'url' + end + end + end + + class AccountsList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::AdexchangebuyerV1_4::Account, decorator: Google::Apis::AdexchangebuyerV1_4::Account::Representation + + property :kind, as: 'kind' + end + end + + class AddOrderDealsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :deals, as: 'deals', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal::Representation + + property :proposal_revision_number, as: 'proposalRevisionNumber' + property :update_action, as: 'updateAction' + end + end + + class AddOrderDealsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :deals, as: 'deals', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal::Representation + + property :proposal_revision_number, as: 'proposalRevisionNumber' + end + end + + class AddOrderNotesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :notes, as: 'notes', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceNote, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceNote::Representation + + end + end + + class AddOrderNotesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :notes, as: 'notes', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceNote, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceNote::Representation + + end + end + + class BillingInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, as: 'accountId' + property :account_name, as: 'accountName' + collection :billing_id, as: 'billingId' + property :kind, as: 'kind' + end + end + + class BillingInfoList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::AdexchangebuyerV1_4::BillingInfo, decorator: Google::Apis::AdexchangebuyerV1_4::BillingInfo::Representation + + property :kind, as: 'kind' + end + end + + class Budget + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, as: 'accountId' + property :billing_id, as: 'billingId' + property :budget_amount, as: 'budgetAmount' + property :currency_code, as: 'currencyCode' + property :id, as: 'id' + property :kind, as: 'kind' + end + end + + class Buyer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, as: 'accountId' + end + end + + class ContactInformation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :email, as: 'email' + property :name, as: 'name' + end + end + + class CreateOrdersRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :proposals, as: 'proposals', class: Google::Apis::AdexchangebuyerV1_4::Proposal, decorator: Google::Apis::AdexchangebuyerV1_4::Proposal::Representation + + property :web_property_code, as: 'webPropertyCode' + end + end + + class CreateOrdersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :proposals, as: 'proposals', class: Google::Apis::AdexchangebuyerV1_4::Proposal, decorator: Google::Apis::AdexchangebuyerV1_4::Proposal::Representation + + end + end + + class Creative + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :html_snippet, as: 'HTMLSnippet' + property :account_id, as: 'accountId' + 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' + collection :corrections, as: 'corrections', class: Google::Apis::AdexchangebuyerV1_4::Creative::Correction, decorator: Google::Apis::AdexchangebuyerV1_4::Creative::Correction::Representation + + property :deals_status, as: 'dealsStatus' + property :filtering_reasons, as: 'filteringReasons', class: Google::Apis::AdexchangebuyerV1_4::Creative::FilteringReasons, decorator: Google::Apis::AdexchangebuyerV1_4::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_4::Creative::NativeAd, decorator: Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::Representation + + property :open_auction_status, as: 'openAuctionStatus' + collection :product_categories, as: 'productCategories' + collection :restricted_categories, as: 'restrictedCategories' + collection :sensitive_categories, as: 'sensitiveCategories' + collection :serving_restrictions, as: 'servingRestrictions', class: Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction, decorator: Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction::Representation + + collection :vendor_type, as: 'vendorType' + property :version, as: 'version' + property :video_url, as: 'videoURL' + property :width, as: 'width' + end + + class Correction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :details, as: 'details' + property :reason, as: 'reason' + end + end + + class FilteringReasons + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :date, as: 'date' + collection :reasons, as: 'reasons', class: Google::Apis::AdexchangebuyerV1_4::Creative::FilteringReasons::Reason, decorator: Google::Apis::AdexchangebuyerV1_4::Creative::FilteringReasons::Reason::Representation + + end + + class Reason + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :filtering_count, as: 'filteringCount' + property :filtering_status, as: 'filteringStatus' + 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_4::Creative::NativeAd::AppIcon, decorator: Google::Apis::AdexchangebuyerV1_4::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_4::Creative::NativeAd::Image, decorator: Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::Image::Representation + + collection :impression_tracking_url, as: 'impressionTrackingUrl' + property :logo, as: 'logo', class: Google::Apis::AdexchangebuyerV1_4::Creative::NativeAd::Logo, decorator: Google::Apis::AdexchangebuyerV1_4::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 + + class ServingRestriction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :contexts, as: 'contexts', class: Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction::Context, decorator: Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction::Context::Representation + + collection :disapproval_reasons, as: 'disapprovalReasons', class: Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction::DisapprovalReason, decorator: Google::Apis::AdexchangebuyerV1_4::Creative::ServingRestriction::DisapprovalReason::Representation + + property :reason, as: 'reason' + end + + class Context + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :auction_type, as: 'auctionType' + property :context_type, as: 'contextType' + collection :geo_criteria_id, as: 'geoCriteriaId' + collection :platform, as: 'platform' + end + end + + class DisapprovalReason + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :details, as: 'details' + property :reason, as: 'reason' + end + end + end + end + + class CreativesList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::AdexchangebuyerV1_4::Creative, decorator: Google::Apis::AdexchangebuyerV1_4::Creative::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + end + end + + class DealTerms + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :branding_type, as: 'brandingType' + property :description, as: 'description' + property :estimated_gross_spend, as: 'estimatedGrossSpend', class: Google::Apis::AdexchangebuyerV1_4::Price, decorator: Google::Apis::AdexchangebuyerV1_4::Price::Representation + + property :estimated_impressions_per_day, as: 'estimatedImpressionsPerDay' + property :guaranteed_fixed_price_terms, as: 'guaranteedFixedPriceTerms', class: Google::Apis::AdexchangebuyerV1_4::DealTermsGuaranteedFixedPriceTerms, decorator: Google::Apis::AdexchangebuyerV1_4::DealTermsGuaranteedFixedPriceTerms::Representation + + property :non_guaranteed_auction_terms, as: 'nonGuaranteedAuctionTerms', class: Google::Apis::AdexchangebuyerV1_4::DealTermsNonGuaranteedAuctionTerms, decorator: Google::Apis::AdexchangebuyerV1_4::DealTermsNonGuaranteedAuctionTerms::Representation + + property :non_guaranteed_fixed_price_terms, as: 'nonGuaranteedFixedPriceTerms', class: Google::Apis::AdexchangebuyerV1_4::DealTermsNonGuaranteedFixedPriceTerms, decorator: Google::Apis::AdexchangebuyerV1_4::DealTermsNonGuaranteedFixedPriceTerms::Representation + + end + end + + class DealTermsGuaranteedFixedPriceTerms + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :fixed_prices, as: 'fixedPrices', class: Google::Apis::AdexchangebuyerV1_4::PricePerBuyer, decorator: Google::Apis::AdexchangebuyerV1_4::PricePerBuyer::Representation + + property :guaranteed_impressions, as: 'guaranteedImpressions' + property :guaranteed_looks, as: 'guaranteedLooks' + end + end + + class DealTermsNonGuaranteedAuctionTerms + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :private_auction_id, as: 'privateAuctionId' + collection :reserve_price_per_buyers, as: 'reservePricePerBuyers', class: Google::Apis::AdexchangebuyerV1_4::PricePerBuyer, decorator: Google::Apis::AdexchangebuyerV1_4::PricePerBuyer::Representation + + end + end + + class DealTermsNonGuaranteedFixedPriceTerms + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :fixed_prices, as: 'fixedPrices', class: Google::Apis::AdexchangebuyerV1_4::PricePerBuyer, decorator: Google::Apis::AdexchangebuyerV1_4::PricePerBuyer::Representation + + end + end + + class DeleteOrderDealsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :deal_ids, as: 'dealIds' + property :proposal_revision_number, as: 'proposalRevisionNumber' + property :update_action, as: 'updateAction' + end + end + + class DeleteOrderDealsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :deals, as: 'deals', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal::Representation + + property :proposal_revision_number, as: 'proposalRevisionNumber' + end + end + + class DeliveryControl + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creative_blocking_level, as: 'creativeBlockingLevel' + property :delivery_rate_type, as: 'deliveryRateType' + collection :frequency_caps, as: 'frequencyCaps', class: Google::Apis::AdexchangebuyerV1_4::DeliveryControlFrequencyCap, decorator: Google::Apis::AdexchangebuyerV1_4::DeliveryControlFrequencyCap::Representation + + end + end + + class DeliveryControlFrequencyCap + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :max_impressions, as: 'maxImpressions' + property :num_time_units, as: 'numTimeUnits' + property :time_unit_type, as: 'timeUnitType' + end + end + + class EditAllOrderDealsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :deals, as: 'deals', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal::Representation + + property :proposal, as: 'proposal', class: Google::Apis::AdexchangebuyerV1_4::Proposal, decorator: Google::Apis::AdexchangebuyerV1_4::Proposal::Representation + + property :proposal_revision_number, as: 'proposalRevisionNumber' + property :update_action, as: 'updateAction' + end + end + + class EditAllOrderDealsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :deals, as: 'deals', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal::Representation + + end + end + + class GetOffersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :products, as: 'products', class: Google::Apis::AdexchangebuyerV1_4::Product, decorator: Google::Apis::AdexchangebuyerV1_4::Product::Representation + + end + end + + class GetOrderDealsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :deals, as: 'deals', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceDeal::Representation + + end + end + + class GetOrderNotesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :notes, as: 'notes', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceNote, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceNote::Representation + + end + end + + class GetOrdersResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :proposals, as: 'proposals', class: Google::Apis::AdexchangebuyerV1_4::Proposal, decorator: Google::Apis::AdexchangebuyerV1_4::Proposal::Representation + + end + end + + class MarketplaceDeal + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :buyer_private_data, as: 'buyerPrivateData', class: Google::Apis::AdexchangebuyerV1_4::PrivateData, decorator: Google::Apis::AdexchangebuyerV1_4::PrivateData::Representation + + property :creation_time_ms, as: 'creationTimeMs' + property :creative_pre_approval_policy, as: 'creativePreApprovalPolicy' + property :deal_id, as: 'dealId' + property :delivery_control, as: 'deliveryControl', class: Google::Apis::AdexchangebuyerV1_4::DeliveryControl, decorator: Google::Apis::AdexchangebuyerV1_4::DeliveryControl::Representation + + property :external_deal_id, as: 'externalDealId' + property :flight_end_time_ms, as: 'flightEndTimeMs' + property :flight_start_time_ms, as: 'flightStartTimeMs' + property :inventory_description, as: 'inventoryDescription' + property :kind, as: 'kind' + property :last_update_time_ms, as: 'lastUpdateTimeMs' + property :name, as: 'name' + property :product_id, as: 'productId' + property :product_revision_number, as: 'productRevisionNumber' + property :proposal_id, as: 'proposalId' + collection :seller_contacts, as: 'sellerContacts', class: Google::Apis::AdexchangebuyerV1_4::ContactInformation, decorator: Google::Apis::AdexchangebuyerV1_4::ContactInformation::Representation + + collection :shared_targetings, as: 'sharedTargetings', class: Google::Apis::AdexchangebuyerV1_4::SharedTargeting, decorator: Google::Apis::AdexchangebuyerV1_4::SharedTargeting::Representation + + property :syndication_product, as: 'syndicationProduct' + property :terms, as: 'terms', class: Google::Apis::AdexchangebuyerV1_4::DealTerms, decorator: Google::Apis::AdexchangebuyerV1_4::DealTerms::Representation + + property :web_property_code, as: 'webPropertyCode' + end + end + + class MarketplaceDealParty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :buyer, as: 'buyer', class: Google::Apis::AdexchangebuyerV1_4::Buyer, decorator: Google::Apis::AdexchangebuyerV1_4::Buyer::Representation + + property :seller, as: 'seller', class: Google::Apis::AdexchangebuyerV1_4::Seller, decorator: Google::Apis::AdexchangebuyerV1_4::Seller::Representation + + end + end + + class MarketplaceLabel + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, as: 'accountId' + property :create_time_ms, as: 'createTimeMs' + property :deprecated_marketplace_deal_party, as: 'deprecatedMarketplaceDealParty', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceDealParty, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceDealParty::Representation + + property :label, as: 'label' + end + end + + class MarketplaceNote + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creator_role, as: 'creatorRole' + property :deal_id, as: 'dealId' + property :kind, as: 'kind' + property :note, as: 'note' + property :note_id, as: 'noteId' + property :proposal_id, as: 'proposalId' + property :proposal_revision_number, as: 'proposalRevisionNumber' + property :timestamp_ms, as: 'timestampMs' + end + end + + class PerformanceReport + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bid_rate, as: 'bidRate' + property :bid_request_rate, as: 'bidRequestRate' + collection :callout_status_rate, as: 'calloutStatusRate' + collection :cookie_matcher_status_rate, as: 'cookieMatcherStatusRate' + collection :creative_status_rate, as: 'creativeStatusRate' + property :filtered_bid_rate, as: 'filteredBidRate' + collection :hosted_match_status_rate, as: 'hostedMatchStatusRate' + property :inventory_match_rate, as: 'inventoryMatchRate' + property :kind, as: 'kind' + property :latency_50th_percentile, as: 'latency50thPercentile' + property :latency_85th_percentile, as: 'latency85thPercentile' + property :latency_95th_percentile, as: 'latency95thPercentile' + property :no_quota_in_region, as: 'noQuotaInRegion' + property :out_of_quota, as: 'outOfQuota' + property :pixel_match_requests, as: 'pixelMatchRequests' + property :pixel_match_responses, as: 'pixelMatchResponses' + property :quota_configured_limit, as: 'quotaConfiguredLimit' + property :quota_throttled_limit, as: 'quotaThrottledLimit' + property :region, as: 'region' + property :successful_request_rate, as: 'successfulRequestRate' + property :timestamp, as: 'timestamp' + property :unsuccessful_request_rate, as: 'unsuccessfulRequestRate' + end + end + + class PerformanceReportList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :kind, as: 'kind' + collection :performance_report, as: 'performanceReport', class: Google::Apis::AdexchangebuyerV1_4::PerformanceReport, decorator: Google::Apis::AdexchangebuyerV1_4::PerformanceReport::Representation + + end + end + + class PretargetingConfig + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :billing_id, as: 'billingId' + property :config_id, as: 'configId' + property :config_name, as: 'configName' + collection :creative_type, as: 'creativeType' + collection :dimensions, as: 'dimensions', class: Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Dimension, decorator: Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Dimension::Representation + + collection :excluded_content_labels, as: 'excludedContentLabels' + collection :excluded_geo_criteria_ids, as: 'excludedGeoCriteriaIds' + collection :excluded_placements, as: 'excludedPlacements', class: Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::ExcludedPlacement, decorator: Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::ExcludedPlacement::Representation + + collection :excluded_user_lists, as: 'excludedUserLists' + collection :excluded_verticals, as: 'excludedVerticals' + collection :geo_criteria_ids, as: 'geoCriteriaIds' + property :is_active, as: 'isActive' + property :kind, as: 'kind' + collection :languages, as: 'languages' + collection :mobile_carriers, as: 'mobileCarriers' + collection :mobile_devices, as: 'mobileDevices' + collection :mobile_operating_system_versions, as: 'mobileOperatingSystemVersions' + collection :placements, as: 'placements', class: Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Placement, decorator: Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Placement::Representation + + collection :platforms, as: 'platforms' + collection :supported_creative_attributes, as: 'supportedCreativeAttributes' + collection :user_lists, as: 'userLists' + collection :vendor_types, as: 'vendorTypes' + collection :verticals, as: 'verticals' + collection :video_player_sizes, as: 'videoPlayerSizes', class: Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::VideoPlayerSize, decorator: Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::VideoPlayerSize::Representation + + end + + class Dimension + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :height, as: 'height' + property :width, as: 'width' + end + end + + class ExcludedPlacement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :token, as: 'token' + property :type, as: 'type' + end + end + + class Placement + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :token, as: 'token' + property :type, as: 'type' + end + end + + class VideoPlayerSize + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :aspect_ratio, as: 'aspectRatio' + property :min_height, as: 'minHeight' + property :min_width, as: 'minWidth' + end + end + end + + class PretargetingConfigList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :items, as: 'items', class: Google::Apis::AdexchangebuyerV1_4::PretargetingConfig, decorator: Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation + + property :kind, as: 'kind' + end + end + + class Price + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :amount_micros, as: 'amountMicros' + property :currency_code, as: 'currencyCode' + property :pricing_type, as: 'pricingType' + end + end + + class PricePerBuyer + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :buyer, as: 'buyer', class: Google::Apis::AdexchangebuyerV1_4::Buyer, decorator: Google::Apis::AdexchangebuyerV1_4::Buyer::Representation + + property :price, as: 'price', class: Google::Apis::AdexchangebuyerV1_4::Price, decorator: Google::Apis::AdexchangebuyerV1_4::Price::Representation + + end + end + + class PrivateData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :reference_id, as: 'referenceId' + property :reference_payload, :base64 => true, as: 'referencePayload' + end + end + + class Product + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_time_ms, as: 'creationTimeMs' + collection :creator_contacts, as: 'creatorContacts', class: Google::Apis::AdexchangebuyerV1_4::ContactInformation, decorator: Google::Apis::AdexchangebuyerV1_4::ContactInformation::Representation + + property :flight_end_time_ms, as: 'flightEndTimeMs' + property :flight_start_time_ms, as: 'flightStartTimeMs' + property :has_creator_signed_off, as: 'hasCreatorSignedOff' + property :inventory_source, as: 'inventorySource' + property :kind, as: 'kind' + collection :labels, as: 'labels', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceLabel, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceLabel::Representation + + property :last_update_time_ms, as: 'lastUpdateTimeMs' + property :name, as: 'name' + property :product_id, as: 'productId' + property :revision_number, as: 'revisionNumber' + property :seller, as: 'seller', class: Google::Apis::AdexchangebuyerV1_4::Seller, decorator: Google::Apis::AdexchangebuyerV1_4::Seller::Representation + + collection :shared_targetings, as: 'sharedTargetings', class: Google::Apis::AdexchangebuyerV1_4::SharedTargeting, decorator: Google::Apis::AdexchangebuyerV1_4::SharedTargeting::Representation + + property :state, as: 'state' + property :syndication_product, as: 'syndicationProduct' + property :terms, as: 'terms', class: Google::Apis::AdexchangebuyerV1_4::DealTerms, decorator: Google::Apis::AdexchangebuyerV1_4::DealTerms::Representation + + property :web_property_code, as: 'webPropertyCode' + end + end + + class Proposal + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :billed_buyer, as: 'billedBuyer', class: Google::Apis::AdexchangebuyerV1_4::Buyer, decorator: Google::Apis::AdexchangebuyerV1_4::Buyer::Representation + + property :buyer, as: 'buyer', class: Google::Apis::AdexchangebuyerV1_4::Buyer, decorator: Google::Apis::AdexchangebuyerV1_4::Buyer::Representation + + collection :buyer_contacts, as: 'buyerContacts', class: Google::Apis::AdexchangebuyerV1_4::ContactInformation, decorator: Google::Apis::AdexchangebuyerV1_4::ContactInformation::Representation + + property :buyer_private_data, as: 'buyerPrivateData', class: Google::Apis::AdexchangebuyerV1_4::PrivateData, decorator: Google::Apis::AdexchangebuyerV1_4::PrivateData::Representation + + property :has_buyer_signed_off, as: 'hasBuyerSignedOff' + property :has_seller_signed_off, as: 'hasSellerSignedOff' + property :inventory_source, as: 'inventorySource' + property :is_renegotiating, as: 'isRenegotiating' + property :is_setup_complete, as: 'isSetupComplete' + property :kind, as: 'kind' + collection :labels, as: 'labels', class: Google::Apis::AdexchangebuyerV1_4::MarketplaceLabel, decorator: Google::Apis::AdexchangebuyerV1_4::MarketplaceLabel::Representation + + property :last_updater_or_commentor_role, as: 'lastUpdaterOrCommentorRole' + property :last_updater_role, as: 'lastUpdaterRole' + property :name, as: 'name' + property :originator_role, as: 'originatorRole' + property :proposal_id, as: 'proposalId' + property :proposal_state, as: 'proposalState' + property :revision_number, as: 'revisionNumber' + property :revision_time_ms, as: 'revisionTimeMs' + property :seller, as: 'seller', class: Google::Apis::AdexchangebuyerV1_4::Seller, decorator: Google::Apis::AdexchangebuyerV1_4::Seller::Representation + + collection :seller_contacts, as: 'sellerContacts', class: Google::Apis::AdexchangebuyerV1_4::ContactInformation, decorator: Google::Apis::AdexchangebuyerV1_4::ContactInformation::Representation + + end + end + + class Seller + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :account_id, as: 'accountId' + property :sub_account_id, as: 'subAccountId' + end + end + + class SharedTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :exclusions, as: 'exclusions', class: Google::Apis::AdexchangebuyerV1_4::TargetingValue, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValue::Representation + + collection :inclusions, as: 'inclusions', class: Google::Apis::AdexchangebuyerV1_4::TargetingValue, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValue::Representation + + property :key, as: 'key' + end + end + + class TargetingValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creative_size_value, as: 'creativeSizeValue', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueCreativeSize, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueCreativeSize::Representation + + property :day_part_targeting_value, as: 'dayPartTargetingValue', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueDayPartTargeting, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueDayPartTargeting::Representation + + property :long_value, as: 'longValue' + property :string_value, as: 'stringValue' + end + end + + class TargetingValueCreativeSize + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :companion_sizes, as: 'companionSizes', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueSize, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueSize::Representation + + property :creative_size_type, as: 'creativeSizeType' + property :size, as: 'size', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueSize, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueSize::Representation + + end + end + + class TargetingValueDayPartTargeting + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :day_parts, as: 'dayParts', class: Google::Apis::AdexchangebuyerV1_4::TargetingValueDayPartTargetingDayPart, decorator: Google::Apis::AdexchangebuyerV1_4::TargetingValueDayPartTargetingDayPart::Representation + + property :time_zone_type, as: 'timeZoneType' + end + end + + class TargetingValueDayPartTargetingDayPart + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :day_of_week, as: 'dayOfWeek' + property :end_hour, as: 'endHour' + property :end_minute, as: 'endMinute' + property :start_hour, as: 'startHour' + property :start_minute, as: 'startMinute' + end + end + + class TargetingValueSize + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :height, as: 'height' + property :width, as: 'width' + end + end + end + end +end diff --git a/generated/google/apis/adexchangebuyer_v1_4/service.rb b/generated/google/apis/adexchangebuyer_v1_4/service.rb new file mode 100644 index 000000000..bde253ffa --- /dev/null +++ b/generated/google/apis/adexchangebuyer_v1_4/service.rb @@ -0,0 +1,1378 @@ +# 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 AdexchangebuyerV1_4 + # Ad Exchange Buyer API + # + # Accesses your bidding-account information, submits creatives for validation, + # finds available direct deals, and retrieves performance reports. + # + # @example + # require 'google/apis/adexchangebuyer_v1_4' + # + # Adexchangebuyer = Google::Apis::AdexchangebuyerV1_4 # Alias the module + # service = Adexchangebuyer::AdExchangeBuyerService.new + # + # @see https://developers.google.com/ad-exchange/buyer-rest + class AdExchangeBuyerService < 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/', 'adexchangebuyer/v1.4/') + end + + # Gets one account by ID. + # @param [Fixnum] id + # The account 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::AdexchangebuyerV1_4::Account] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::Account] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account(id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'accounts/{id}', options) + command.response_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::Account + 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 the authenticated user's list of accounts. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::AdexchangebuyerV1_4::AccountsList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::AccountsList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_accounts(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'accounts', options) + command.response_representation = Google::Apis::AdexchangebuyerV1_4::AccountsList::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::AccountsList + 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 an existing account. This method supports patch semantics. + # @param [Fixnum] id + # The account id + # @param [Google::Apis::AdexchangebuyerV1_4::Account] account_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::AdexchangebuyerV1_4::Account] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::Account] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'accounts/{id}', options) + command.request_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation + command.request_object = account_object + command.response_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::Account + 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 + + # Updates an existing account. + # @param [Fixnum] id + # The account id + # @param [Google::Apis::AdexchangebuyerV1_4::Account] account_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::AdexchangebuyerV1_4::Account] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::Account] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_account(id, account_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'accounts/{id}', options) + command.request_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation + command.request_object = account_object + command.response_representation = Google::Apis::AdexchangebuyerV1_4::Account::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::Account + 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 + + # Returns the billing information for one account specified by account ID. + # @param [Fixnum] account_id + # The account 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::AdexchangebuyerV1_4::BillingInfo] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::BillingInfo] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_info(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'billinginfo/{accountId}', options) + command.response_representation = Google::Apis::AdexchangebuyerV1_4::BillingInfo::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::BillingInfo + command.params['accountId'] = account_id unless account_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 list of billing information for all accounts of the authenticated + # 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::AdexchangebuyerV1_4::BillingInfoList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::BillingInfoList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_infos(fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'billinginfo', options) + command.response_representation = Google::Apis::AdexchangebuyerV1_4::BillingInfoList::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::BillingInfoList + 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 budget information for the adgroup specified by the accountId and + # billingId. + # @param [String] account_id + # The account id to get the budget information for. + # @param [String] billing_id + # The billing id to get the budget information 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::AdexchangebuyerV1_4::Budget] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::Budget] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_budget(account_id, billing_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'billinginfo/{accountId}/{billingId}', options) + command.response_representation = Google::Apis::AdexchangebuyerV1_4::Budget::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::Budget + command.params['accountId'] = account_id unless account_id.nil? + command.params['billingId'] = billing_id unless billing_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 budget amount for the budget of the adgroup specified by the + # accountId and billingId, with the budget amount in the request. This method + # supports patch semantics. + # @param [String] account_id + # The account id associated with the budget being updated. + # @param [String] billing_id + # The billing id associated with the budget being updated. + # @param [Google::Apis::AdexchangebuyerV1_4::Budget] budget_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::AdexchangebuyerV1_4::Budget] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::Budget] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'billinginfo/{accountId}/{billingId}', options) + command.request_representation = Google::Apis::AdexchangebuyerV1_4::Budget::Representation + command.request_object = budget_object + command.response_representation = Google::Apis::AdexchangebuyerV1_4::Budget::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::Budget + command.params['accountId'] = account_id unless account_id.nil? + command.params['billingId'] = billing_id unless billing_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 budget amount for the budget of the adgroup specified by the + # accountId and billingId, with the budget amount in the request. + # @param [String] account_id + # The account id associated with the budget being updated. + # @param [String] billing_id + # The billing id associated with the budget being updated. + # @param [Google::Apis::AdexchangebuyerV1_4::Budget] budget_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::AdexchangebuyerV1_4::Budget] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::Budget] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_budget(account_id, billing_id, budget_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'billinginfo/{accountId}/{billingId}', options) + command.request_representation = Google::Apis::AdexchangebuyerV1_4::Budget::Representation + command.request_object = budget_object + command.response_representation = Google::Apis::AdexchangebuyerV1_4::Budget::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::Budget + command.params['accountId'] = account_id unless account_id.nil? + command.params['billingId'] = billing_id unless billing_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 + + # Add a deal id association for the creative. + # @param [Fixnum] account_id + # The id for the account that will serve this creative. + # @param [String] buyer_creative_id + # The buyer-specific id for this creative. + # @param [String] deal_id + # The id of the deal id to associate with this creative. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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 add_creative_deal(account_id, buyer_creative_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'creatives/{accountId}/{buyerCreativeId}/addDeal/{dealId}', options) + command.params['accountId'] = account_id unless account_id.nil? + command.params['buyerCreativeId'] = buyer_creative_id unless buyer_creative_id.nil? + command.params['dealId'] = deal_id unless deal_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 the status for a single creative. A creative will be available 30-40 + # minutes after submission. + # @param [Fixnum] account_id + # The id for the account that will serve this creative. + # @param [String] buyer_creative_id + # The buyer-specific id for this creative. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::AdexchangebuyerV1_4::Creative] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::Creative] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_creative(account_id, buyer_creative_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'creatives/{accountId}/{buyerCreativeId}', options) + command.response_representation = Google::Apis::AdexchangebuyerV1_4::Creative::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::Creative + command.params['accountId'] = account_id unless account_id.nil? + command.params['buyerCreativeId'] = buyer_creative_id unless buyer_creative_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 + + # Submit a new creative. + # @param [Google::Apis::AdexchangebuyerV1_4::Creative] creative_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::AdexchangebuyerV1_4::Creative] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::Creative] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_creative(creative_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'creatives', options) + command.request_representation = Google::Apis::AdexchangebuyerV1_4::Creative::Representation + command.request_object = creative_object + command.response_representation = Google::Apis::AdexchangebuyerV1_4::Creative::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::Creative + 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 the authenticated user's active creatives. A creative will + # be available 30-40 minutes after submission. + # @param [Array, Fixnum] account_id + # When specified, only creatives for the given account ids are returned. + # @param [Array, String] buyer_creative_id + # When specified, only creatives for the given buyer creative ids are returned. + # @param [String] deals_status_filter + # When specified, only creatives having the given deals status are returned. + # @param [Fixnum] max_results + # Maximum number of entries returned on one result page. If not set, the default + # is 100. Optional. + # @param [String] open_auction_status_filter + # When specified, only creatives having the given open auction status are + # returned. + # @param [String] page_token + # A continuation token, used to page through ad clients. To retrieve the next + # page, set this parameter to the value of "nextPageToken" from the previous + # response. 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. + # 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::AdexchangebuyerV1_4::CreativesList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::CreativesList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_creatives(account_id: nil, buyer_creative_id: nil, deals_status_filter: nil, max_results: nil, open_auction_status_filter: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'creatives', options) + command.response_representation = Google::Apis::AdexchangebuyerV1_4::CreativesList::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::CreativesList + command.query['accountId'] = account_id unless account_id.nil? + command.query['buyerCreativeId'] = buyer_creative_id unless buyer_creative_id.nil? + command.query['dealsStatusFilter'] = deals_status_filter unless deals_status_filter.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['openAuctionStatusFilter'] = open_auction_status_filter unless open_auction_status_filter.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 + + # Remove a deal id associated with the creative. + # @param [Fixnum] account_id + # The id for the account that will serve this creative. + # @param [String] buyer_creative_id + # The buyer-specific id for this creative. + # @param [String] deal_id + # The id of the deal id to disassociate with this creative. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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_creative_deal(account_id, buyer_creative_id, deal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'creatives/{accountId}/{buyerCreativeId}/removeDeal/{dealId}', options) + command.params['accountId'] = account_id unless account_id.nil? + command.params['buyerCreativeId'] = buyer_creative_id unless buyer_creative_id.nil? + command.params['dealId'] = deal_id unless deal_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 the specified deals from the proposal + # @param [String] proposal_id + # The proposalId to delete deals from. + # @param [Google::Apis::AdexchangebuyerV1_4::DeleteOrderDealsRequest] delete_order_deals_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::AdexchangebuyerV1_4::DeleteOrderDealsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::DeleteOrderDealsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_marketplacedeal_order_deals(proposal_id, delete_order_deals_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'proposals/{proposalId}/deals/delete', options) + command.request_representation = Google::Apis::AdexchangebuyerV1_4::DeleteOrderDealsRequest::Representation + command.request_object = delete_order_deals_request_object + command.response_representation = Google::Apis::AdexchangebuyerV1_4::DeleteOrderDealsResponse::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::DeleteOrderDealsResponse + command.params['proposalId'] = proposal_id unless proposal_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 + + # Add new deals for the specified proposal + # @param [String] proposal_id + # proposalId for which deals need to be added. + # @param [Google::Apis::AdexchangebuyerV1_4::AddOrderDealsRequest] add_order_deals_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::AdexchangebuyerV1_4::AddOrderDealsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::AddOrderDealsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_marketplacedeal(proposal_id, add_order_deals_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'proposals/{proposalId}/deals/insert', options) + command.request_representation = Google::Apis::AdexchangebuyerV1_4::AddOrderDealsRequest::Representation + command.request_object = add_order_deals_request_object + command.response_representation = Google::Apis::AdexchangebuyerV1_4::AddOrderDealsResponse::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::AddOrderDealsResponse + command.params['proposalId'] = proposal_id unless proposal_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 + + # List all the deals for a given proposal + # @param [String] proposal_id + # The proposalId to get deals 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::AdexchangebuyerV1_4::GetOrderDealsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::GetOrderDealsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_marketplacedeals(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'proposals/{proposalId}/deals', options) + command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetOrderDealsResponse::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::GetOrderDealsResponse + command.params['proposalId'] = proposal_id unless proposal_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 + + # Replaces all the deals in the proposal with the passed in deals + # @param [String] proposal_id + # The proposalId to edit deals on. + # @param [Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsRequest] edit_all_order_deals_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::AdexchangebuyerV1_4::EditAllOrderDealsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_marketplacedeal(proposal_id, edit_all_order_deals_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'proposals/{proposalId}/deals/update', options) + command.request_representation = Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsRequest::Representation + command.request_object = edit_all_order_deals_request_object + command.response_representation = Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsResponse::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::EditAllOrderDealsResponse + command.params['proposalId'] = proposal_id unless proposal_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 + + # Add notes to the proposal + # @param [String] proposal_id + # The proposalId to add notes for. + # @param [Google::Apis::AdexchangebuyerV1_4::AddOrderNotesRequest] add_order_notes_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::AdexchangebuyerV1_4::AddOrderNotesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::AddOrderNotesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_marketplacenote(proposal_id, add_order_notes_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'proposals/{proposalId}/notes/insert', options) + command.request_representation = Google::Apis::AdexchangebuyerV1_4::AddOrderNotesRequest::Representation + command.request_object = add_order_notes_request_object + command.response_representation = Google::Apis::AdexchangebuyerV1_4::AddOrderNotesResponse::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::AddOrderNotesResponse + command.params['proposalId'] = proposal_id unless proposal_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 all the notes associated with a proposal + # @param [String] proposal_id + # The proposalId to get notes 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::AdexchangebuyerV1_4::GetOrderNotesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::GetOrderNotesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_marketplacenotes(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'proposals/{proposalId}/notes', options) + command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetOrderNotesResponse::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::GetOrderNotesResponse + command.params['proposalId'] = proposal_id unless proposal_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 the authenticated user's list of performance metrics. + # @param [String] account_id + # The account id to get the reports. + # @param [String] end_date_time + # The end time of the report in ISO 8601 timestamp format using UTC. + # @param [String] start_date_time + # The start time of the report in ISO 8601 timestamp format using UTC. + # @param [Fixnum] max_results + # Maximum number of entries returned on one result page. If not set, the default + # is 100. Optional. + # @param [String] page_token + # A continuation token, used to page through performance reports. To retrieve + # the next page, set this parameter to the value of "nextPageToken" from the + # previous response. 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. + # 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::AdexchangebuyerV1_4::PerformanceReportList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::PerformanceReportList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_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) + command = make_simple_command(:get, 'performancereport', options) + command.response_representation = Google::Apis::AdexchangebuyerV1_4::PerformanceReportList::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::PerformanceReportList + command.query['accountId'] = account_id unless account_id.nil? + command.query['endDateTime'] = end_date_time unless end_date_time.nil? + command.query['maxResults'] = max_results unless max_results.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['startDateTime'] = start_date_time unless start_date_time.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 an existing pretargeting config. + # @param [String] account_id + # The account id to delete the pretargeting config for. + # @param [String] config_id + # The specific id of the configuration 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_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + 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? + 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 specific pretargeting configuration + # @param [String] account_id + # The account id to get the pretargeting config for. + # @param [String] config_id + # The specific id of the configuration 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::AdexchangebuyerV1_4::PretargetingConfig] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_pretargeting_config(account_id, config_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'pretargetingconfigs/{accountId}/{configId}', options) + command.response_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig + 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? + 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 new pretargeting configuration. + # @param [String] account_id + # The account id to insert the pretargeting config for. + # @param [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] pretargeting_config_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::AdexchangebuyerV1_4::PretargetingConfig] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_pretargeting_config(account_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'pretargetingconfigs/{accountId}', options) + command.request_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation + command.request_object = pretargeting_config_object + command.response_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig + command.params['accountId'] = account_id unless account_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 list of the authenticated user's pretargeting configurations. + # @param [String] account_id + # The account id to get the pretargeting configs 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::AdexchangebuyerV1_4::PretargetingConfigList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::PretargetingConfigList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_pretargeting_configs(account_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'pretargetingconfigs/{accountId}', options) + command.response_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfigList::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::PretargetingConfigList + command.params['accountId'] = account_id unless account_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 an existing pretargeting config. This method supports patch semantics. + # @param [String] account_id + # The account id to update the pretargeting config for. + # @param [String] config_id + # The specific id of the configuration to update. + # @param [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] pretargeting_config_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::AdexchangebuyerV1_4::PretargetingConfig] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'pretargetingconfigs/{accountId}/{configId}', options) + command.request_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation + command.request_object = pretargeting_config_object + command.response_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig + 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? + 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 an existing pretargeting config. + # @param [String] account_id + # The account id to update the pretargeting config for. + # @param [String] config_id + # The specific id of the configuration to update. + # @param [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] pretargeting_config_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::AdexchangebuyerV1_4::PretargetingConfig] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::PretargetingConfig] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_pretargeting_config(account_id, config_id, pretargeting_config_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'pretargetingconfigs/{accountId}/{configId}', options) + command.request_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation + command.request_object = pretargeting_config_object + command.response_representation = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::PretargetingConfig + 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? + 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 the requested product by id. + # @param [String] product_id + # The id for the product to get the head revision 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::AdexchangebuyerV1_4::Product] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::Product] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_product(product_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'products/{productId}', options) + command.response_representation = Google::Apis::AdexchangebuyerV1_4::Product::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::Product + command.params['productId'] = product_id unless product_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 the requested product. + # @param [String] pql_query + # The pql query used to query for products. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::AdexchangebuyerV1_4::GetOffersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::GetOffersResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def search_products(pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'products/search', options) + command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetOffersResponse::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::GetOffersResponse + command.query['pqlQuery'] = pql_query unless pql_query.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 proposal given its id + # @param [String] proposal_id + # Id of the proposal 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::AdexchangebuyerV1_4::Proposal] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::Proposal] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_proposal(proposal_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'proposals/{proposalId}', options) + command.response_representation = Google::Apis::AdexchangebuyerV1_4::Proposal::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::Proposal + command.params['proposalId'] = proposal_id unless proposal_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 + + # Create the given list of proposals + # @param [Google::Apis::AdexchangebuyerV1_4::CreateOrdersRequest] create_orders_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::AdexchangebuyerV1_4::CreateOrdersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::CreateOrdersResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_proposal(create_orders_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'proposals/insert', options) + command.request_representation = Google::Apis::AdexchangebuyerV1_4::CreateOrdersRequest::Representation + command.request_object = create_orders_request_object + command.response_representation = Google::Apis::AdexchangebuyerV1_4::CreateOrdersResponse::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::CreateOrdersResponse + 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 + + # Update the given proposal. This method supports patch semantics. + # @param [String] proposal_id + # The proposal id to update. + # @param [String] revision_number + # The last known revision number to update. If the head revision in the + # marketplace database has since changed, an error will be thrown. The caller + # should then fetch the latest proposal at head revision and retry the update at + # that revision. + # @param [String] update_action + # The proposed action to take on the proposal. + # @param [Google::Apis::AdexchangebuyerV1_4::Proposal] proposal_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::AdexchangebuyerV1_4::Proposal] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::Proposal] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_proposal(proposal_id, revision_number, update_action, proposal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:patch, 'proposals/{proposalId}/{revisionNumber}/{updateAction}', options) + command.request_representation = Google::Apis::AdexchangebuyerV1_4::Proposal::Representation + command.request_object = proposal_object + command.response_representation = Google::Apis::AdexchangebuyerV1_4::Proposal::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::Proposal + command.params['proposalId'] = proposal_id unless proposal_id.nil? + command.params['revisionNumber'] = revision_number unless revision_number.nil? + command.params['updateAction'] = update_action unless update_action.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 + + # Search for proposals using pql query + # @param [String] pql_query + # Query string to retrieve specific proposals. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::AdexchangebuyerV1_4::GetOrdersResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::GetOrdersResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def search_proposals(pql_query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, 'proposals/search', options) + command.response_representation = Google::Apis::AdexchangebuyerV1_4::GetOrdersResponse::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::GetOrdersResponse + command.query['pqlQuery'] = pql_query unless pql_query.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 + + # Update the given proposal + # @param [String] proposal_id + # The proposal id to update. + # @param [String] revision_number + # The last known revision number to update. If the head revision in the + # marketplace database has since changed, an error will be thrown. The caller + # should then fetch the latest proposal at head revision and retry the update at + # that revision. + # @param [String] update_action + # The proposed action to take on the proposal. + # @param [Google::Apis::AdexchangebuyerV1_4::Proposal] proposal_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::AdexchangebuyerV1_4::Proposal] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AdexchangebuyerV1_4::Proposal] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_proposal(proposal_id, revision_number, update_action, proposal_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:put, 'proposals/{proposalId}/{revisionNumber}/{updateAction}', options) + command.request_representation = Google::Apis::AdexchangebuyerV1_4::Proposal::Representation + command.request_object = proposal_object + command.response_representation = Google::Apis::AdexchangebuyerV1_4::Proposal::Representation + command.response_class = Google::Apis::AdexchangebuyerV1_4::Proposal + command.params['proposalId'] = proposal_id unless proposal_id.nil? + command.params['revisionNumber'] = revision_number unless revision_number.nil? + command.params['updateAction'] = update_action unless update_action.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/adexchangeseller_v2_0/classes.rb b/generated/google/apis/adexchangeseller_v2_0/classes.rb index 3c6f838dd..6249fa9d0 100644 --- a/generated/google/apis/adexchangeseller_v2_0/classes.rb +++ b/generated/google/apis/adexchangeseller_v2_0/classes.rb @@ -47,9 +47,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -84,10 +84,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -129,11 +129,11 @@ module Google # Update properties of this object def update!(**args) - @arc_opt_in = args[:arc_opt_in] unless args[:arc_opt_in].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @product_code = args[:product_code] unless args[:product_code].nil? - @supports_reporting = args[:supports_reporting] unless args[:supports_reporting].nil? + @arc_opt_in = args[:arc_opt_in] if args.key?(:arc_opt_in) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @product_code = args[:product_code] if args.key?(:product_code) + @supports_reporting = args[:supports_reporting] if args.key?(:supports_reporting) end end @@ -168,10 +168,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -213,11 +213,11 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @message = args[:message] unless args[:message].nil? - @severity = args[:severity] unless args[:severity].nil? - @type = args[:type] unless args[:type].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @message = args[:message] if args.key?(:message) + @severity = args[:severity] if args.key?(:severity) + @type = args[:type] if args.key?(:type) end end @@ -241,8 +241,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -282,11 +282,11 @@ module Google # Update properties of this object def update!(**args) - @code = args[:code] unless args[:code].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @targeting_info = args[:targeting_info] unless args[:targeting_info].nil? + @code = args[:code] if args.key?(:code) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @targeting_info = args[:targeting_info] if args.key?(:targeting_info) end # The targeting information of this custom channel, if activated. @@ -323,10 +323,10 @@ module Google # Update properties of this object def update!(**args) - @ads_appear_on = args[:ads_appear_on] unless args[:ads_appear_on].nil? - @description = args[:description] unless args[:description].nil? - @location = args[:location] unless args[:location].nil? - @site_language = args[:site_language] unless args[:site_language].nil? + @ads_appear_on = args[:ads_appear_on] if args.key?(:ads_appear_on) + @description = args[:description] if args.key?(:description) + @location = args[:location] if args.key?(:location) + @site_language = args[:site_language] if args.key?(:site_language) end end end @@ -362,10 +362,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -389,8 +389,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -450,14 +450,14 @@ module Google # Update properties of this object def update!(**args) - @advertiser_name = args[:advertiser_name] unless args[:advertiser_name].nil? - @buyer_network_name = args[:buyer_network_name] unless args[:buyer_network_name].nil? - @currency_code = args[:currency_code] unless args[:currency_code].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? - @kind = args[:kind] unless args[:kind].nil? - @start_time = args[:start_time] unless args[:start_time].nil? + @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name) + @buyer_network_name = args[:buyer_network_name] if args.key?(:buyer_network_name) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @end_time = args[:end_time] if args.key?(:end_time) + @fixed_cpm = args[:fixed_cpm] if args.key?(:fixed_cpm) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @start_time = args[:start_time] if args.key?(:start_time) end end @@ -481,8 +481,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -539,13 +539,13 @@ module Google # Update properties of this object def update!(**args) - @averages = args[:averages] unless args[:averages].nil? - @headers = args[:headers] unless args[:headers].nil? - @kind = args[:kind] unless args[:kind].nil? - @rows = args[:rows] unless args[:rows].nil? - @total_matched_rows = args[:total_matched_rows] unless args[:total_matched_rows].nil? - @totals = args[:totals] unless args[:totals].nil? - @warnings = args[:warnings] unless args[:warnings].nil? + @averages = args[:averages] if args.key?(:averages) + @headers = args[:headers] if args.key?(:headers) + @kind = args[:kind] if args.key?(:kind) + @rows = args[:rows] if args.key?(:rows) + @total_matched_rows = args[:total_matched_rows] if args.key?(:total_matched_rows) + @totals = args[:totals] if args.key?(:totals) + @warnings = args[:warnings] if args.key?(:warnings) end # @@ -575,9 +575,9 @@ module Google # Update properties of this object def update!(**args) - @currency = args[:currency] unless args[:currency].nil? - @name = args[:name] unless args[:name].nil? - @type = args[:type] unless args[:type].nil? + @currency = args[:currency] if args.key?(:currency) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) end end end @@ -638,13 +638,13 @@ module Google # Update properties of this object def update!(**args) - @compatible_dimensions = args[:compatible_dimensions] unless args[:compatible_dimensions].nil? - @compatible_metrics = args[:compatible_metrics] unless args[:compatible_metrics].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @required_dimensions = args[:required_dimensions] unless args[:required_dimensions].nil? - @required_metrics = args[:required_metrics] unless args[:required_metrics].nil? - @supported_products = args[:supported_products] unless args[:supported_products].nil? + @compatible_dimensions = args[:compatible_dimensions] if args.key?(:compatible_dimensions) + @compatible_metrics = args[:compatible_metrics] if args.key?(:compatible_metrics) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @required_dimensions = args[:required_dimensions] if args.key?(:required_dimensions) + @required_metrics = args[:required_metrics] if args.key?(:required_metrics) + @supported_products = args[:supported_products] if args.key?(:supported_products) end end @@ -673,9 +673,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -710,10 +710,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -744,9 +744,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @url_pattern = args[:url_pattern] unless args[:url_pattern].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @url_pattern = args[:url_pattern] if args.key?(:url_pattern) end end @@ -781,10 +781,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end end diff --git a/generated/google/apis/admin_datatransfer_v1/classes.rb b/generated/google/apis/admin_datatransfer_v1/classes.rb index efb3013de..c9468ebba 100644 --- a/generated/google/apis/admin_datatransfer_v1/classes.rb +++ b/generated/google/apis/admin_datatransfer_v1/classes.rb @@ -59,11 +59,11 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @transfer_params = args[:transfer_params] if args.key?(:transfer_params) end end @@ -93,9 +93,9 @@ module Google # 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? + @application_id = args[:application_id] if args.key?(:application_id) + @application_transfer_params = args[:application_transfer_params] if args.key?(:application_transfer_params) + @application_transfer_status = args[:application_transfer_status] if args.key?(:application_transfer_status) end end @@ -119,8 +119,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end @@ -155,10 +155,10 @@ module Google # 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? + @applications = args[:applications] if args.key?(:applications) + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -215,14 +215,14 @@ module Google # 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? + @application_data_transfers = args[:application_data_transfers] if args.key?(:application_data_transfers) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @new_owner_user_id = args[:new_owner_user_id] if args.key?(:new_owner_user_id) + @old_owner_user_id = args[:old_owner_user_id] if args.key?(:old_owner_user_id) + @overall_transfer_status_code = args[:overall_transfer_status_code] if args.key?(:overall_transfer_status_code) + @request_time = args[:request_time] if args.key?(:request_time) end end @@ -256,10 +256,10 @@ module Google # 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? + @data_transfers = args[:data_transfers] if args.key?(:data_transfers) + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end end diff --git a/generated/google/apis/admin_directory_v1/classes.rb b/generated/google/apis/admin_directory_v1/classes.rb index d79e3e3b5..5070f0169 100644 --- a/generated/google/apis/admin_directory_v1/classes.rb +++ b/generated/google/apis/admin_directory_v1/classes.rb @@ -57,11 +57,11 @@ module Google # Update properties of this object def update!(**args) - @alias = args[:alias] unless args[:alias].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @primary_email = args[:primary_email] unless args[:primary_email].nil? + @alias = args[:alias] if args.key?(:alias) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @primary_email = args[:primary_email] if args.key?(:primary_email) end end @@ -90,9 +90,9 @@ module Google # Update properties of this object def update!(**args) - @aliases = args[:aliases] unless args[:aliases].nil? - @etag = args[:etag] unless args[:etag].nil? - @kind = args[:kind] unless args[:kind].nil? + @aliases = args[:aliases] if args.key?(:aliases) + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) end end @@ -142,13 +142,13 @@ module Google # Update properties of this object def update!(**args) - @code_id = args[:code_id] unless args[:code_id].nil? - @creation_time = args[:creation_time] unless args[:creation_time].nil? - @etag = args[:etag] unless args[:etag].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_time_used = args[:last_time_used] unless args[:last_time_used].nil? - @name = args[:name] unless args[:name].nil? - @user_key = args[:user_key] unless args[:user_key].nil? + @code_id = args[:code_id] if args.key?(:code_id) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @last_time_used = args[:last_time_used] if args.key?(:last_time_used) + @name = args[:name] if args.key?(:name) + @user_key = args[:user_key] if args.key?(:user_key) end end @@ -177,9 +177,9 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -231,13 +231,13 @@ module Google # Update properties of this object def update!(**args) - @etags = args[:etags] unless args[:etags].nil? - @kind = args[:kind] unless args[:kind].nil? - @resource_description = args[:resource_description] unless args[:resource_description].nil? - @resource_email = args[:resource_email] unless args[:resource_email].nil? - @resource_id = args[:resource_id] unless args[:resource_id].nil? - @resource_name = args[:resource_name] unless args[:resource_name].nil? - @resource_type = args[:resource_type] unless args[:resource_type].nil? + @etags = args[:etags] if args.key?(:etags) + @kind = args[:kind] if args.key?(:kind) + @resource_description = args[:resource_description] if args.key?(:resource_description) + @resource_email = args[:resource_email] if args.key?(:resource_email) + @resource_id = args[:resource_id] if args.key?(:resource_id) + @resource_name = args[:resource_name] if args.key?(:resource_name) + @resource_type = args[:resource_type] if args.key?(:resource_type) end end @@ -273,10 +273,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -345,16 +345,16 @@ module Google # Update properties of this object def update!(**args) - @address = args[:address] unless args[:address].nil? - @expiration = args[:expiration] unless args[:expiration].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @params = args[:params] unless args[:params].nil? - @payload = args[:payload] unless args[:payload].nil? - @resource_id = args[:resource_id] unless args[:resource_id].nil? - @resource_uri = args[:resource_uri] unless args[:resource_uri].nil? - @token = args[:token] unless args[:token].nil? - @type = args[:type] unless args[:type].nil? + @address = args[:address] if args.key?(:address) + @expiration = args[:expiration] if args.key?(:expiration) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @params = args[:params] if args.key?(:params) + @payload = args[:payload] if args.key?(:payload) + @resource_id = args[:resource_id] if args.key?(:resource_id) + @resource_uri = args[:resource_uri] if args.key?(:resource_uri) + @token = args[:token] if args.key?(:token) + @type = args[:type] if args.key?(:type) end end @@ -496,31 +496,31 @@ module Google # Update properties of this object def update!(**args) - @active_time_ranges = args[:active_time_ranges] unless args[:active_time_ranges].nil? - @annotated_asset_id = args[:annotated_asset_id] unless args[:annotated_asset_id].nil? - @annotated_location = args[:annotated_location] unless args[:annotated_location].nil? - @annotated_user = args[:annotated_user] unless args[:annotated_user].nil? - @boot_mode = args[:boot_mode] unless args[:boot_mode].nil? - @device_id = args[:device_id] unless args[:device_id].nil? - @etag = args[:etag] unless args[:etag].nil? - @ethernet_mac_address = args[:ethernet_mac_address] unless args[:ethernet_mac_address].nil? - @firmware_version = args[:firmware_version] unless args[:firmware_version].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_enrollment_time = args[:last_enrollment_time] unless args[:last_enrollment_time].nil? - @last_sync = args[:last_sync] unless args[:last_sync].nil? - @mac_address = args[:mac_address] unless args[:mac_address].nil? - @meid = args[:meid] unless args[:meid].nil? - @model = args[:model] unless args[:model].nil? - @notes = args[:notes] unless args[:notes].nil? - @order_number = args[:order_number] unless args[:order_number].nil? - @org_unit_path = args[:org_unit_path] unless args[:org_unit_path].nil? - @os_version = args[:os_version] unless args[:os_version].nil? - @platform_version = args[:platform_version] unless args[:platform_version].nil? - @recent_users = args[:recent_users] unless args[:recent_users].nil? - @serial_number = args[:serial_number] unless args[:serial_number].nil? - @status = args[:status] unless args[:status].nil? - @support_end_date = args[:support_end_date] unless args[:support_end_date].nil? - @will_auto_renew = args[:will_auto_renew] unless args[:will_auto_renew].nil? + @active_time_ranges = args[:active_time_ranges] if args.key?(:active_time_ranges) + @annotated_asset_id = args[:annotated_asset_id] if args.key?(:annotated_asset_id) + @annotated_location = args[:annotated_location] if args.key?(:annotated_location) + @annotated_user = args[:annotated_user] if args.key?(:annotated_user) + @boot_mode = args[:boot_mode] if args.key?(:boot_mode) + @device_id = args[:device_id] if args.key?(:device_id) + @etag = args[:etag] if args.key?(:etag) + @ethernet_mac_address = args[:ethernet_mac_address] if args.key?(:ethernet_mac_address) + @firmware_version = args[:firmware_version] if args.key?(:firmware_version) + @kind = args[:kind] if args.key?(:kind) + @last_enrollment_time = args[:last_enrollment_time] if args.key?(:last_enrollment_time) + @last_sync = args[:last_sync] if args.key?(:last_sync) + @mac_address = args[:mac_address] if args.key?(:mac_address) + @meid = args[:meid] if args.key?(:meid) + @model = args[:model] if args.key?(:model) + @notes = args[:notes] if args.key?(:notes) + @order_number = args[:order_number] if args.key?(:order_number) + @org_unit_path = args[:org_unit_path] if args.key?(:org_unit_path) + @os_version = args[:os_version] if args.key?(:os_version) + @platform_version = args[:platform_version] if args.key?(:platform_version) + @recent_users = args[:recent_users] if args.key?(:recent_users) + @serial_number = args[:serial_number] if args.key?(:serial_number) + @status = args[:status] if args.key?(:status) + @support_end_date = args[:support_end_date] if args.key?(:support_end_date) + @will_auto_renew = args[:will_auto_renew] if args.key?(:will_auto_renew) end # @@ -543,8 +543,8 @@ module Google # Update properties of this object def update!(**args) - @active_time = args[:active_time] unless args[:active_time].nil? - @date = args[:date] unless args[:date].nil? + @active_time = args[:active_time] if args.key?(:active_time) + @date = args[:date] if args.key?(:date) end end @@ -568,8 +568,8 @@ module Google # Update properties of this object def update!(**args) - @email = args[:email] unless args[:email].nil? - @type = args[:type] unless args[:type].nil? + @email = args[:email] if args.key?(:email) + @type = args[:type] if args.key?(:type) end end end @@ -604,10 +604,10 @@ module Google # Update properties of this object def update!(**args) - @chromeosdevices = args[:chromeosdevices] unless args[:chromeosdevices].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? + @chromeosdevices = args[:chromeosdevices] if args.key?(:chromeosdevices) + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -668,15 +668,15 @@ module Google # 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? + @alternate_email = args[:alternate_email] if args.key?(:alternate_email) + @customer_creation_time = args[:customer_creation_time] if args.key?(:customer_creation_time) + @customer_domain = args[:customer_domain] if args.key?(:customer_domain) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @language = args[:language] if args.key?(:language) + @phone_number = args[:phone_number] if args.key?(:phone_number) + @postal_address = args[:postal_address] if args.key?(:postal_address) end end @@ -741,15 +741,15 @@ module Google # 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? + @address_line1 = args[:address_line1] if args.key?(:address_line1) + @address_line2 = args[:address_line2] if args.key?(:address_line2) + @address_line3 = args[:address_line3] if args.key?(:address_line3) + @contact_name = args[:contact_name] if args.key?(:contact_name) + @country_code = args[:country_code] if args.key?(:country_code) + @locality = args[:locality] if args.key?(:locality) + @organization_name = args[:organization_name] if args.key?(:organization_name) + @postal_code = args[:postal_code] if args.key?(:postal_code) + @region = args[:region] if args.key?(:region) end end @@ -795,12 +795,12 @@ module Google # 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? + @creation_time = args[:creation_time] if args.key?(:creation_time) + @domain_alias_name = args[:domain_alias_name] if args.key?(:domain_alias_name) + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @parent_domain_name = args[:parent_domain_name] if args.key?(:parent_domain_name) + @verified = args[:verified] if args.key?(:verified) end end @@ -829,9 +829,9 @@ module Google # 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? + @domain_aliases = args[:domain_aliases] if args.key?(:domain_aliases) + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) end end @@ -882,13 +882,13 @@ module Google # 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? + @creation_time = args[:creation_time] if args.key?(:creation_time) + @domain_aliases = args[:domain_aliases] if args.key?(:domain_aliases) + @domain_name = args[:domain_name] if args.key?(:domain_name) + @etag = args[:etag] if args.key?(:etag) + @is_primary = args[:is_primary] if args.key?(:is_primary) + @kind = args[:kind] if args.key?(:kind) + @verified = args[:verified] if args.key?(:verified) end end @@ -917,9 +917,9 @@ module Google # 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? + @domains = args[:domains] if args.key?(:domains) + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) end end @@ -984,16 +984,16 @@ module Google # Update properties of this object def update!(**args) - @admin_created = args[:admin_created] unless args[:admin_created].nil? - @aliases = args[:aliases] unless args[:aliases].nil? - @description = args[:description] unless args[:description].nil? - @direct_members_count = args[:direct_members_count] unless args[:direct_members_count].nil? - @email = args[:email] unless args[:email].nil? - @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? - @non_editable_aliases = args[:non_editable_aliases] unless args[:non_editable_aliases].nil? + @admin_created = args[:admin_created] if args.key?(:admin_created) + @aliases = args[:aliases] if args.key?(:aliases) + @description = args[:description] if args.key?(:description) + @direct_members_count = args[:direct_members_count] if args.key?(:direct_members_count) + @email = args[:email] if args.key?(:email) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @non_editable_aliases = args[:non_editable_aliases] if args.key?(:non_editable_aliases) end end @@ -1027,10 +1027,10 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @groups = args[:groups] unless args[:groups].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @etag = args[:etag] if args.key?(:etag) + @groups = args[:groups] if args.key?(:groups) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1075,12 +1075,12 @@ module Google # Update properties of this object def update!(**args) - @email = args[:email] unless args[:email].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @role = args[:role] unless args[:role].nil? - @type = args[:type] unless args[:type].nil? + @email = args[:email] if args.key?(:email) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @role = args[:role] if args.key?(:role) + @type = args[:type] if args.key?(:type) end end @@ -1114,10 +1114,10 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @kind = args[:kind] unless args[:kind].nil? - @members = args[:members] unless args[:members].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @members = args[:members] if args.key?(:members) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1294,37 +1294,37 @@ module Google # Update properties of this object def update!(**args) - @adb_status = args[:adb_status] unless args[:adb_status].nil? - @applications = args[:applications] unless args[:applications].nil? - @baseband_version = args[:baseband_version] unless args[:baseband_version].nil? - @build_number = args[:build_number] unless args[:build_number].nil? - @default_language = args[:default_language] unless args[:default_language].nil? - @developer_options_status = args[:developer_options_status] unless args[:developer_options_status].nil? - @device_compromised_status = args[:device_compromised_status] unless args[:device_compromised_status].nil? - @device_id = args[:device_id] unless args[:device_id].nil? - @email = args[:email] unless args[:email].nil? - @etag = args[:etag] unless args[:etag].nil? - @first_sync = args[:first_sync] unless args[:first_sync].nil? - @hardware_id = args[:hardware_id] unless args[:hardware_id].nil? - @imei = args[:imei] unless args[:imei].nil? - @kernel_version = args[:kernel_version] unless args[:kernel_version].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_sync = args[:last_sync] unless args[:last_sync].nil? - @managed_account_is_on_owner_profile = args[:managed_account_is_on_owner_profile] unless args[:managed_account_is_on_owner_profile].nil? - @meid = args[:meid] unless args[:meid].nil? - @model = args[:model] unless args[:model].nil? - @name = args[:name] unless args[:name].nil? - @network_operator = args[:network_operator] unless args[:network_operator].nil? - @os = args[:os] unless args[:os].nil? - @other_accounts_info = args[:other_accounts_info] unless args[:other_accounts_info].nil? - @resource_id = args[:resource_id] unless args[:resource_id].nil? - @serial_number = args[:serial_number] unless args[:serial_number].nil? - @status = args[:status] unless args[:status].nil? - @supports_work_profile = args[:supports_work_profile] unless args[:supports_work_profile].nil? - @type = args[:type] unless args[:type].nil? - @unknown_sources_status = args[:unknown_sources_status] unless args[:unknown_sources_status].nil? - @user_agent = args[:user_agent] unless args[:user_agent].nil? - @wifi_mac_address = args[:wifi_mac_address] unless args[:wifi_mac_address].nil? + @adb_status = args[:adb_status] if args.key?(:adb_status) + @applications = args[:applications] if args.key?(:applications) + @baseband_version = args[:baseband_version] if args.key?(:baseband_version) + @build_number = args[:build_number] if args.key?(:build_number) + @default_language = args[:default_language] if args.key?(:default_language) + @developer_options_status = args[:developer_options_status] if args.key?(:developer_options_status) + @device_compromised_status = args[:device_compromised_status] if args.key?(:device_compromised_status) + @device_id = args[:device_id] if args.key?(:device_id) + @email = args[:email] if args.key?(:email) + @etag = args[:etag] if args.key?(:etag) + @first_sync = args[:first_sync] if args.key?(:first_sync) + @hardware_id = args[:hardware_id] if args.key?(:hardware_id) + @imei = args[:imei] if args.key?(:imei) + @kernel_version = args[:kernel_version] if args.key?(:kernel_version) + @kind = args[:kind] if args.key?(:kind) + @last_sync = args[:last_sync] if args.key?(:last_sync) + @managed_account_is_on_owner_profile = args[:managed_account_is_on_owner_profile] if args.key?(:managed_account_is_on_owner_profile) + @meid = args[:meid] if args.key?(:meid) + @model = args[:model] if args.key?(:model) + @name = args[:name] if args.key?(:name) + @network_operator = args[:network_operator] if args.key?(:network_operator) + @os = args[:os] if args.key?(:os) + @other_accounts_info = args[:other_accounts_info] if args.key?(:other_accounts_info) + @resource_id = args[:resource_id] if args.key?(:resource_id) + @serial_number = args[:serial_number] if args.key?(:serial_number) + @status = args[:status] if args.key?(:status) + @supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile) + @type = args[:type] if args.key?(:type) + @unknown_sources_status = args[:unknown_sources_status] if args.key?(:unknown_sources_status) + @user_agent = args[:user_agent] if args.key?(:user_agent) + @wifi_mac_address = args[:wifi_mac_address] if args.key?(:wifi_mac_address) end # @@ -1362,11 +1362,11 @@ module Google # Update properties of this object def update!(**args) - @display_name = args[:display_name] unless args[:display_name].nil? - @package_name = args[:package_name] unless args[:package_name].nil? - @permission = args[:permission] unless args[:permission].nil? - @version_code = args[:version_code] unless args[:version_code].nil? - @version_name = args[:version_name] unless args[:version_name].nil? + @display_name = args[:display_name] if args.key?(:display_name) + @package_name = args[:package_name] if args.key?(:package_name) + @permission = args[:permission] if args.key?(:permission) + @version_code = args[:version_code] if args.key?(:version_code) + @version_name = args[:version_name] if args.key?(:version_name) end end end @@ -1387,7 +1387,7 @@ module Google # Update properties of this object def update!(**args) - @action = args[:action] unless args[:action].nil? + @action = args[:action] if args.key?(:action) end end @@ -1421,10 +1421,10 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @kind = args[:kind] unless args[:kind].nil? - @mobiledevices = args[:mobiledevices] unless args[:mobiledevices].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @mobiledevices = args[:mobiledevices] if args.key?(:mobiledevices) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1479,14 +1479,14 @@ module Google # Update properties of this object def update!(**args) - @body = args[:body] unless args[:body].nil? - @etag = args[:etag] unless args[:etag].nil? - @from_address = args[:from_address] unless args[:from_address].nil? - @is_unread = args[:is_unread] unless args[:is_unread].nil? - @kind = args[:kind] unless args[:kind].nil? - @notification_id = args[:notification_id] unless args[:notification_id].nil? - @send_time = args[:send_time] unless args[:send_time].nil? - @subject = args[:subject] unless args[:subject].nil? + @body = args[:body] if args.key?(:body) + @etag = args[:etag] if args.key?(:etag) + @from_address = args[:from_address] if args.key?(:from_address) + @is_unread = args[:is_unread] if args.key?(:is_unread) + @kind = args[:kind] if args.key?(:kind) + @notification_id = args[:notification_id] if args.key?(:notification_id) + @send_time = args[:send_time] if args.key?(:send_time) + @subject = args[:subject] if args.key?(:subject) end end @@ -1525,11 +1525,11 @@ module Google # 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? - @unread_notifications_count = args[:unread_notifications_count] unless args[:unread_notifications_count].nil? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @unread_notifications_count = args[:unread_notifications_count] if args.key?(:unread_notifications_count) end end @@ -1589,15 +1589,15 @@ module Google # Update properties of this object def update!(**args) - @block_inheritance = args[:block_inheritance] unless args[:block_inheritance].nil? - @description = args[:description] unless args[:description].nil? - @etag = args[:etag] unless args[:etag].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @org_unit_id = args[:org_unit_id] unless args[:org_unit_id].nil? - @org_unit_path = args[:org_unit_path] unless args[:org_unit_path].nil? - @parent_org_unit_id = args[:parent_org_unit_id] unless args[:parent_org_unit_id].nil? - @parent_org_unit_path = args[:parent_org_unit_path] unless args[:parent_org_unit_path].nil? + @block_inheritance = args[:block_inheritance] if args.key?(:block_inheritance) + @description = args[:description] if args.key?(:description) + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id) + @org_unit_path = args[:org_unit_path] if args.key?(:org_unit_path) + @parent_org_unit_id = args[:parent_org_unit_id] if args.key?(:parent_org_unit_id) + @parent_org_unit_path = args[:parent_org_unit_path] if args.key?(:parent_org_unit_path) end end @@ -1626,9 +1626,9 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @kind = args[:kind] unless args[:kind].nil? - @organization_units = args[:organization_units] unless args[:organization_units].nil? + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @organization_units = args[:organization_units] if args.key?(:organization_units) end end @@ -1680,13 +1680,13 @@ module Google # 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? + @child_privileges = args[:child_privileges] if args.key?(:child_privileges) + @etag = args[:etag] if args.key?(:etag) + @is_ou_scopable = args[:is_ou_scopable] if args.key?(:is_ou_scopable) + @kind = args[:kind] if args.key?(:kind) + @privilege_name = args[:privilege_name] if args.key?(:privilege_name) + @service_id = args[:service_id] if args.key?(:service_id) + @service_name = args[:service_name] if args.key?(:service_name) end end @@ -1715,9 +1715,9 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -1773,14 +1773,14 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @is_super_admin_role = args[:is_super_admin_role] if args.key?(:is_super_admin_role) + @is_system_role = args[:is_system_role] if args.key?(:is_system_role) + @kind = args[:kind] if args.key?(:kind) + @role_description = args[:role_description] if args.key?(:role_description) + @role_id = args[:role_id] if args.key?(:role_id) + @role_name = args[:role_name] if args.key?(:role_name) + @role_privileges = args[:role_privileges] if args.key?(:role_privileges) end # @@ -1803,8 +1803,8 @@ module Google # 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? + @privilege_name = args[:privilege_name] if args.key?(:privilege_name) + @service_id = args[:service_id] if args.key?(:service_id) end end end @@ -1857,13 +1857,13 @@ module Google # 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? + @assigned_to = args[:assigned_to] if args.key?(:assigned_to) + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id) + @role_assignment_id = args[:role_assignment_id] if args.key?(:role_assignment_id) + @role_id = args[:role_id] if args.key?(:role_id) + @scope_type = args[:scope_type] if args.key?(:scope_type) end end @@ -1897,10 +1897,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1934,10 +1934,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1976,11 +1976,11 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @fields = args[:fields] unless args[:fields].nil? - @kind = args[:kind] unless args[:kind].nil? - @schema_id = args[:schema_id] unless args[:schema_id].nil? - @schema_name = args[:schema_name] unless args[:schema_name].nil? + @etag = args[:etag] if args.key?(:etag) + @fields = args[:fields] if args.key?(:fields) + @kind = args[:kind] if args.key?(:kind) + @schema_id = args[:schema_id] if args.key?(:schema_id) + @schema_name = args[:schema_name] if args.key?(:schema_name) end end @@ -2044,15 +2044,15 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @field_id = args[:field_id] unless args[:field_id].nil? - @field_name = args[:field_name] unless args[:field_name].nil? - @field_type = args[:field_type] unless args[:field_type].nil? - @indexed = args[:indexed] unless args[:indexed].nil? - @kind = args[:kind] unless args[:kind].nil? - @multi_valued = args[:multi_valued] unless args[:multi_valued].nil? - @numeric_indexing_spec = args[:numeric_indexing_spec] unless args[:numeric_indexing_spec].nil? - @read_access_type = args[:read_access_type] unless args[:read_access_type].nil? + @etag = args[:etag] if args.key?(:etag) + @field_id = args[:field_id] if args.key?(:field_id) + @field_name = args[:field_name] if args.key?(:field_name) + @field_type = args[:field_type] if args.key?(:field_type) + @indexed = args[:indexed] if args.key?(:indexed) + @kind = args[:kind] if args.key?(:kind) + @multi_valued = args[:multi_valued] if args.key?(:multi_valued) + @numeric_indexing_spec = args[:numeric_indexing_spec] if args.key?(:numeric_indexing_spec) + @read_access_type = args[:read_access_type] if args.key?(:read_access_type) end # Indexing spec for a numeric field. By default, only exact match queries will @@ -2081,8 +2081,8 @@ module Google # Update properties of this object def update!(**args) - @max_value = args[:max_value] unless args[:max_value].nil? - @min_value = args[:min_value] unless args[:min_value].nil? + @max_value = args[:max_value] if args.key?(:max_value) + @min_value = args[:min_value] if args.key?(:min_value) end end end @@ -2112,9 +2112,9 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @kind = args[:kind] unless args[:kind].nil? - @schemas = args[:schemas] unless args[:schemas].nil? + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @schemas = args[:schemas] if args.key?(:schemas) end end @@ -2172,14 +2172,14 @@ module Google # Update properties of this object def update!(**args) - @anonymous = args[:anonymous] unless args[:anonymous].nil? - @client_id = args[:client_id] unless args[:client_id].nil? - @display_text = args[:display_text] unless args[:display_text].nil? - @etag = args[:etag] unless args[:etag].nil? - @kind = args[:kind] unless args[:kind].nil? - @native_app = args[:native_app] unless args[:native_app].nil? - @scopes = args[:scopes] unless args[:scopes].nil? - @user_key = args[:user_key] unless args[:user_key].nil? + @anonymous = args[:anonymous] if args.key?(:anonymous) + @client_id = args[:client_id] if args.key?(:client_id) + @display_text = args[:display_text] if args.key?(:display_text) + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @native_app = args[:native_app] if args.key?(:native_app) + @scopes = args[:scopes] if args.key?(:scopes) + @user_key = args[:user_key] if args.key?(:user_key) end end @@ -2208,9 +2208,9 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -2407,41 +2407,41 @@ module Google # Update properties of this object def update!(**args) - @addresses = args[:addresses] unless args[:addresses].nil? - @agreed_to_terms = args[:agreed_to_terms] unless args[:agreed_to_terms].nil? - @aliases = args[:aliases] unless args[:aliases].nil? - @change_password_at_next_login = args[:change_password_at_next_login] unless args[:change_password_at_next_login].nil? - @creation_time = args[:creation_time] unless args[:creation_time].nil? - @custom_schemas = args[:custom_schemas] unless args[:custom_schemas].nil? - @customer_id = args[:customer_id] unless args[:customer_id].nil? - @deletion_time = args[:deletion_time] unless args[:deletion_time].nil? - @emails = args[:emails] unless args[:emails].nil? - @etag = args[:etag] unless args[:etag].nil? - @external_ids = args[:external_ids] unless args[:external_ids].nil? - @hash_function = args[:hash_function] unless args[:hash_function].nil? - @id = args[:id] unless args[:id].nil? - @ims = args[:ims] unless args[:ims].nil? - @include_in_global_address_list = args[:include_in_global_address_list] unless args[:include_in_global_address_list].nil? - @ip_whitelisted = args[:ip_whitelisted] unless args[:ip_whitelisted].nil? - @is_admin = args[:is_admin] unless args[:is_admin].nil? - @is_delegated_admin = args[:is_delegated_admin] unless args[:is_delegated_admin].nil? - @is_mailbox_setup = args[:is_mailbox_setup] unless args[:is_mailbox_setup].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_login_time = args[:last_login_time] unless args[:last_login_time].nil? - @name = args[:name] unless args[:name].nil? - @non_editable_aliases = args[:non_editable_aliases] unless args[:non_editable_aliases].nil? - @notes = args[:notes] unless args[:notes].nil? - @org_unit_path = args[:org_unit_path] unless args[:org_unit_path].nil? - @organizations = args[:organizations] unless args[:organizations].nil? - @password = args[:password] unless args[:password].nil? - @phones = args[:phones] unless args[:phones].nil? - @primary_email = args[:primary_email] unless args[:primary_email].nil? - @relations = args[:relations] unless args[:relations].nil? - @suspended = args[:suspended] unless args[:suspended].nil? - @suspension_reason = args[:suspension_reason] unless args[:suspension_reason].nil? - @thumbnail_photo_etag = args[:thumbnail_photo_etag] unless args[:thumbnail_photo_etag].nil? - @thumbnail_photo_url = args[:thumbnail_photo_url] unless args[:thumbnail_photo_url].nil? - @websites = args[:websites] unless args[:websites].nil? + @addresses = args[:addresses] if args.key?(:addresses) + @agreed_to_terms = args[:agreed_to_terms] if args.key?(:agreed_to_terms) + @aliases = args[:aliases] if args.key?(:aliases) + @change_password_at_next_login = args[:change_password_at_next_login] if args.key?(:change_password_at_next_login) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @custom_schemas = args[:custom_schemas] if args.key?(:custom_schemas) + @customer_id = args[:customer_id] if args.key?(:customer_id) + @deletion_time = args[:deletion_time] if args.key?(:deletion_time) + @emails = args[:emails] if args.key?(:emails) + @etag = args[:etag] if args.key?(:etag) + @external_ids = args[:external_ids] if args.key?(:external_ids) + @hash_function = args[:hash_function] if args.key?(:hash_function) + @id = args[:id] if args.key?(:id) + @ims = args[:ims] if args.key?(:ims) + @include_in_global_address_list = args[:include_in_global_address_list] if args.key?(:include_in_global_address_list) + @ip_whitelisted = args[:ip_whitelisted] if args.key?(:ip_whitelisted) + @is_admin = args[:is_admin] if args.key?(:is_admin) + @is_delegated_admin = args[:is_delegated_admin] if args.key?(:is_delegated_admin) + @is_mailbox_setup = args[:is_mailbox_setup] if args.key?(:is_mailbox_setup) + @kind = args[:kind] if args.key?(:kind) + @last_login_time = args[:last_login_time] if args.key?(:last_login_time) + @name = args[:name] if args.key?(:name) + @non_editable_aliases = args[:non_editable_aliases] if args.key?(:non_editable_aliases) + @notes = args[:notes] if args.key?(:notes) + @org_unit_path = args[:org_unit_path] if args.key?(:org_unit_path) + @organizations = args[:organizations] if args.key?(:organizations) + @password = args[:password] if args.key?(:password) + @phones = args[:phones] if args.key?(:phones) + @primary_email = args[:primary_email] if args.key?(:primary_email) + @relations = args[:relations] if args.key?(:relations) + @suspended = args[:suspended] if args.key?(:suspended) + @suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason) + @thumbnail_photo_etag = args[:thumbnail_photo_etag] if args.key?(:thumbnail_photo_etag) + @thumbnail_photo_url = args[:thumbnail_photo_url] if args.key?(:thumbnail_photo_url) + @websites = args[:websites] if args.key?(:websites) end end @@ -2466,8 +2466,8 @@ module Google # Update properties of this object def update!(**args) - @content_type = args[:content_type] unless args[:content_type].nil? - @value = args[:value] unless args[:value].nil? + @content_type = args[:content_type] if args.key?(:content_type) + @value = args[:value] if args.key?(:value) end end @@ -2553,19 +2553,19 @@ module Google # Update properties of this object def update!(**args) - @country = args[:country] unless args[:country].nil? - @country_code = args[:country_code] unless args[:country_code].nil? - @custom_type = args[:custom_type] unless args[:custom_type].nil? - @extended_address = args[:extended_address] unless args[:extended_address].nil? - @formatted = args[:formatted] unless args[:formatted].nil? - @locality = args[:locality] unless args[:locality].nil? - @po_box = args[:po_box] unless args[:po_box].nil? - @postal_code = args[:postal_code] unless args[:postal_code].nil? - @primary = args[:primary] unless args[:primary].nil? - @region = args[:region] unless args[:region].nil? - @source_is_structured = args[:source_is_structured] unless args[:source_is_structured].nil? - @street_address = args[:street_address] unless args[:street_address].nil? - @type = args[:type] unless args[:type].nil? + @country = args[:country] if args.key?(:country) + @country_code = args[:country_code] if args.key?(:country_code) + @custom_type = args[:custom_type] if args.key?(:custom_type) + @extended_address = args[:extended_address] if args.key?(:extended_address) + @formatted = args[:formatted] if args.key?(:formatted) + @locality = args[:locality] if args.key?(:locality) + @po_box = args[:po_box] if args.key?(:po_box) + @postal_code = args[:postal_code] if args.key?(:postal_code) + @primary = args[:primary] if args.key?(:primary) + @region = args[:region] if args.key?(:region) + @source_is_structured = args[:source_is_structured] if args.key?(:source_is_structured) + @street_address = args[:street_address] if args.key?(:street_address) + @type = args[:type] if args.key?(:type) end end @@ -2603,10 +2603,10 @@ module Google # Update properties of this object def update!(**args) - @address = args[:address] unless args[:address].nil? - @custom_type = args[:custom_type] unless args[:custom_type].nil? - @primary = args[:primary] unless args[:primary].nil? - @type = args[:type] unless args[:type].nil? + @address = args[:address] if args.key?(:address) + @custom_type = args[:custom_type] if args.key?(:custom_type) + @primary = args[:primary] if args.key?(:primary) + @type = args[:type] if args.key?(:type) end end @@ -2635,9 +2635,9 @@ module Google # Update properties of this object def update!(**args) - @custom_type = args[:custom_type] unless args[:custom_type].nil? - @type = args[:type] unless args[:type].nil? - @value = args[:value] unless args[:value].nil? + @custom_type = args[:custom_type] if args.key?(:custom_type) + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) end end @@ -2687,12 +2687,12 @@ module Google # Update properties of this object def update!(**args) - @custom_protocol = args[:custom_protocol] unless args[:custom_protocol].nil? - @custom_type = args[:custom_type] unless args[:custom_type].nil? - @im = args[:im] unless args[:im].nil? - @primary = args[:primary] unless args[:primary].nil? - @protocol = args[:protocol] unless args[:protocol].nil? - @type = args[:type] unless args[:type].nil? + @custom_protocol = args[:custom_protocol] if args.key?(:custom_protocol) + @custom_type = args[:custom_type] if args.key?(:custom_type) + @im = args[:im] if args.key?(:im) + @primary = args[:primary] if args.key?(:primary) + @protocol = args[:protocol] if args.key?(:protocol) + @type = args[:type] if args.key?(:type) end end @@ -2713,7 +2713,7 @@ module Google # Update properties of this object def update!(**args) - @status = args[:status] unless args[:status].nil? + @status = args[:status] if args.key?(:status) end end @@ -2742,9 +2742,9 @@ module Google # Update properties of this object def update!(**args) - @family_name = args[:family_name] unless args[:family_name].nil? - @full_name = args[:full_name] unless args[:full_name].nil? - @given_name = args[:given_name] unless args[:given_name].nil? + @family_name = args[:family_name] if args.key?(:family_name) + @full_name = args[:full_name] if args.key?(:full_name) + @given_name = args[:given_name] if args.key?(:given_name) end end @@ -2817,17 +2817,17 @@ module Google # Update properties of this object def update!(**args) - @cost_center = args[:cost_center] unless args[:cost_center].nil? - @custom_type = args[:custom_type] unless args[:custom_type].nil? - @department = args[:department] unless args[:department].nil? - @description = args[:description] unless args[:description].nil? - @domain = args[:domain] unless args[:domain].nil? - @location = args[:location] unless args[:location].nil? - @name = args[:name] unless args[:name].nil? - @primary = args[:primary] unless args[:primary].nil? - @symbol = args[:symbol] unless args[:symbol].nil? - @title = args[:title] unless args[:title].nil? - @type = args[:type] unless args[:type].nil? + @cost_center = args[:cost_center] if args.key?(:cost_center) + @custom_type = args[:custom_type] if args.key?(:custom_type) + @department = args[:department] if args.key?(:department) + @description = args[:description] if args.key?(:description) + @domain = args[:domain] if args.key?(:domain) + @location = args[:location] if args.key?(:location) + @name = args[:name] if args.key?(:name) + @primary = args[:primary] if args.key?(:primary) + @symbol = args[:symbol] if args.key?(:symbol) + @title = args[:title] if args.key?(:title) + @type = args[:type] if args.key?(:type) end end @@ -2865,10 +2865,10 @@ module Google # Update properties of this object def update!(**args) - @custom_type = args[:custom_type] unless args[:custom_type].nil? - @primary = args[:primary] unless args[:primary].nil? - @type = args[:type] unless args[:type].nil? - @value = args[:value] unless args[:value].nil? + @custom_type = args[:custom_type] if args.key?(:custom_type) + @primary = args[:primary] if args.key?(:primary) + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) end end @@ -2922,14 +2922,14 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @height = args[:height] unless args[:height].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @mime_type = args[:mime_type] unless args[:mime_type].nil? - @photo_data = args[:photo_data] unless args[:photo_data].nil? - @primary_email = args[:primary_email] unless args[:primary_email].nil? - @width = args[:width] unless args[:width].nil? + @etag = args[:etag] if args.key?(:etag) + @height = args[:height] if args.key?(:height) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @photo_data = args[:photo_data] if args.key?(:photo_data) + @primary_email = args[:primary_email] if args.key?(:primary_email) + @width = args[:width] if args.key?(:width) end end @@ -2959,9 +2959,9 @@ module Google # Update properties of this object def update!(**args) - @custom_type = args[:custom_type] unless args[:custom_type].nil? - @type = args[:type] unless args[:type].nil? - @value = args[:value] unless args[:value].nil? + @custom_type = args[:custom_type] if args.key?(:custom_type) + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) end end @@ -2980,7 +2980,7 @@ module Google # Update properties of this object def update!(**args) - @org_unit_path = args[:org_unit_path] unless args[:org_unit_path].nil? + @org_unit_path = args[:org_unit_path] if args.key?(:org_unit_path) end end @@ -3018,10 +3018,10 @@ module Google # Update properties of this object def update!(**args) - @custom_type = args[:custom_type] unless args[:custom_type].nil? - @primary = args[:primary] unless args[:primary].nil? - @type = args[:type] unless args[:type].nil? - @value = args[:value] unless args[:value].nil? + @custom_type = args[:custom_type] if args.key?(:custom_type) + @primary = args[:primary] if args.key?(:primary) + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) end end @@ -3060,11 +3060,11 @@ module Google # Update properties of this object def update!(**args) - @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? - @trigger_event = args[:trigger_event] unless args[:trigger_event].nil? - @users = args[:users] unless args[:users].nil? + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @trigger_event = args[:trigger_event] if args.key?(:trigger_event) + @users = args[:users] if args.key?(:users) end end @@ -3099,10 +3099,10 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @kind = args[:kind] unless args[:kind].nil? - @user_id = args[:user_id] unless args[:user_id].nil? - @verification_code = args[:verification_code] unless args[:verification_code].nil? + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @user_id = args[:user_id] if args.key?(:user_id) + @verification_code = args[:verification_code] if args.key?(:verification_code) end end @@ -3131,9 +3131,9 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end end diff --git a/generated/google/apis/admin_reports_v1/classes.rb b/generated/google/apis/admin_reports_v1/classes.rb index 17fd1d02b..a03f22d0c 100644 --- a/generated/google/apis/admin_reports_v1/classes.rb +++ b/generated/google/apis/admin_reports_v1/classes.rb @@ -52,10 +52,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -104,13 +104,13 @@ module Google # Update properties of this object def update!(**args) - @actor = args[:actor] unless args[:actor].nil? - @etag = args[:etag] unless args[:etag].nil? - @events = args[:events] unless args[:events].nil? - @id = args[:id] unless args[:id].nil? - @ip_address = args[:ip_address] unless args[:ip_address].nil? - @kind = args[:kind] unless args[:kind].nil? - @owner_domain = args[:owner_domain] unless args[:owner_domain].nil? + @actor = args[:actor] if args.key?(:actor) + @etag = args[:etag] if args.key?(:etag) + @events = args[:events] if args.key?(:events) + @id = args[:id] if args.key?(:id) + @ip_address = args[:ip_address] if args.key?(:ip_address) + @kind = args[:kind] if args.key?(:kind) + @owner_domain = args[:owner_domain] if args.key?(:owner_domain) end # User doing the action. @@ -143,10 +143,10 @@ module Google # Update properties of this object def update!(**args) - @caller_type = args[:caller_type] unless args[:caller_type].nil? - @email = args[:email] unless args[:email].nil? - @key = args[:key] unless args[:key].nil? - @profile_id = args[:profile_id] unless args[:profile_id].nil? + @caller_type = args[:caller_type] if args.key?(:caller_type) + @email = args[:email] if args.key?(:email) + @key = args[:key] if args.key?(:key) + @profile_id = args[:profile_id] if args.key?(:profile_id) end end @@ -175,9 +175,9 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @parameters = args[:parameters] unless args[:parameters].nil? - @type = args[:type] unless args[:type].nil? + @name = args[:name] if args.key?(:name) + @parameters = args[:parameters] if args.key?(:parameters) + @type = args[:type] if args.key?(:type) end # @@ -221,12 +221,12 @@ module Google # Update properties of this object def update!(**args) - @bool_value = args[:bool_value] unless args[:bool_value].nil? - @int_value = args[:int_value] unless args[:int_value].nil? - @multi_int_value = args[:multi_int_value] unless args[:multi_int_value].nil? - @multi_value = args[:multi_value] unless args[:multi_value].nil? - @name = args[:name] unless args[:name].nil? - @value = args[:value] unless args[:value].nil? + @bool_value = args[:bool_value] if args.key?(:bool_value) + @int_value = args[:int_value] if args.key?(:int_value) + @multi_int_value = args[:multi_int_value] if args.key?(:multi_int_value) + @multi_value = args[:multi_value] if args.key?(:multi_value) + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) end end end @@ -261,10 +261,10 @@ module Google # Update properties of this object def update!(**args) - @application_name = args[:application_name] unless args[:application_name].nil? - @customer_id = args[:customer_id] unless args[:customer_id].nil? - @time = args[:time] unless args[:time].nil? - @unique_qualifier = args[:unique_qualifier] unless args[:unique_qualifier].nil? + @application_name = args[:application_name] if args.key?(:application_name) + @customer_id = args[:customer_id] if args.key?(:customer_id) + @time = args[:time] if args.key?(:time) + @unique_qualifier = args[:unique_qualifier] if args.key?(:unique_qualifier) end end end @@ -334,16 +334,16 @@ module Google # Update properties of this object def update!(**args) - @address = args[:address] unless args[:address].nil? - @expiration = args[:expiration] unless args[:expiration].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @params = args[:params] unless args[:params].nil? - @payload = args[:payload] unless args[:payload].nil? - @resource_id = args[:resource_id] unless args[:resource_id].nil? - @resource_uri = args[:resource_uri] unless args[:resource_uri].nil? - @token = args[:token] unless args[:token].nil? - @type = args[:type] unless args[:type].nil? + @address = args[:address] if args.key?(:address) + @expiration = args[:expiration] if args.key?(:expiration) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @params = args[:params] if args.key?(:params) + @payload = args[:payload] if args.key?(:payload) + @resource_id = args[:resource_id] if args.key?(:resource_id) + @resource_uri = args[:resource_uri] if args.key?(:resource_uri) + @token = args[:token] if args.key?(:token) + @type = args[:type] if args.key?(:type) end end @@ -382,11 +382,11 @@ module Google # Update properties of this object def update!(**args) - @date = args[:date] unless args[:date].nil? - @entity = args[:entity] unless args[:entity].nil? - @etag = args[:etag] unless args[:etag].nil? - @kind = args[:kind] unless args[:kind].nil? - @parameters = args[:parameters] unless args[:parameters].nil? + @date = args[:date] if args.key?(:date) + @entity = args[:entity] if args.key?(:entity) + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @parameters = args[:parameters] if args.key?(:parameters) end # Information about the type of the item. @@ -419,10 +419,10 @@ module Google # Update properties of this object def update!(**args) - @customer_id = args[:customer_id] unless args[:customer_id].nil? - @profile_id = args[:profile_id] unless args[:profile_id].nil? - @type = args[:type] unless args[:type].nil? - @user_email = args[:user_email] unless args[:user_email].nil? + @customer_id = args[:customer_id] if args.key?(:customer_id) + @profile_id = args[:profile_id] if args.key?(:profile_id) + @type = args[:type] if args.key?(:type) + @user_email = args[:user_email] if args.key?(:user_email) end end @@ -467,12 +467,12 @@ module Google # Update properties of this object def update!(**args) - @bool_value = args[:bool_value] unless args[:bool_value].nil? - @datetime_value = args[:datetime_value] unless args[:datetime_value].nil? - @int_value = args[:int_value] unless args[:int_value].nil? - @msg_value = args[:msg_value] unless args[:msg_value].nil? - @name = args[:name] unless args[:name].nil? - @string_value = args[:string_value] unless args[:string_value].nil? + @bool_value = args[:bool_value] if args.key?(:bool_value) + @datetime_value = args[:datetime_value] if args.key?(:datetime_value) + @int_value = args[:int_value] if args.key?(:int_value) + @msg_value = args[:msg_value] if args.key?(:msg_value) + @name = args[:name] if args.key?(:name) + @string_value = args[:string_value] if args.key?(:string_value) end end end @@ -512,11 +512,11 @@ module Google # Update properties of this object def update!(**args) - @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? - @usage_reports = args[:usage_reports] unless args[:usage_reports].nil? - @warnings = args[:warnings] unless args[:warnings].nil? + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @usage_reports = args[:usage_reports] if args.key?(:usage_reports) + @warnings = args[:warnings] if args.key?(:warnings) end # @@ -544,9 +544,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -571,8 +571,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end diff --git a/generated/google/apis/adsense_v1_4.rb b/generated/google/apis/adsense_v1_4.rb index 8aec063c4..15d5eac2b 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 = '20160112' + REVISION = '20160127' # 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 1ff73d3d0..2976a7e54 100644 --- a/generated/google/apis/adsense_v1_4/classes.rb +++ b/generated/google/apis/adsense_v1_4/classes.rb @@ -68,13 +68,13 @@ 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? - @premium = args[:premium] unless args[:premium].nil? - @sub_accounts = args[:sub_accounts] unless args[:sub_accounts].nil? - @timezone = args[:timezone] unless args[:timezone].nil? + @creation_time = args[:creation_time] if args.key?(:creation_time) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @premium = args[:premium] if args.key?(:premium) + @sub_accounts = args[:sub_accounts] if args.key?(:sub_accounts) + @timezone = args[:timezone] if args.key?(:timezone) end end @@ -109,10 +109,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -160,12 +160,12 @@ module Google # Update properties of this object def update!(**args) - @arc_opt_in = args[:arc_opt_in] unless args[:arc_opt_in].nil? - @arc_review_mode = args[:arc_review_mode] unless args[:arc_review_mode].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @product_code = args[:product_code] unless args[:product_code].nil? - @supports_reporting = args[:supports_reporting] unless args[:supports_reporting].nil? + @arc_opt_in = args[:arc_opt_in] if args.key?(:arc_opt_in) + @arc_review_mode = args[:arc_review_mode] if args.key?(:arc_review_mode) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @product_code = args[:product_code] if args.key?(:product_code) + @supports_reporting = args[:supports_reporting] if args.key?(:supports_reporting) end end @@ -200,10 +200,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -227,8 +227,8 @@ module Google # Update properties of this object def update!(**args) - @ad_code = args[:ad_code] unless args[:ad_code].nil? - @kind = args[:kind] unless args[:kind].nil? + @ad_code = args[:ad_code] if args.key?(:ad_code) + @kind = args[:kind] if args.key?(:kind) end end @@ -264,10 +264,10 @@ module Google # Update properties of this object def update!(**args) - @colors = args[:colors] unless args[:colors].nil? - @corners = args[:corners] unless args[:corners].nil? - @font = args[:font] unless args[:font].nil? - @kind = args[:kind] unless args[:kind].nil? + @colors = args[:colors] if args.key?(:colors) + @corners = args[:corners] if args.key?(:corners) + @font = args[:font] if args.key?(:font) + @kind = args[:kind] if args.key?(:kind) end # The colors which are included in the style. These are represented as six @@ -307,11 +307,11 @@ module Google # Update properties of this object def update!(**args) - @background = args[:background] unless args[:background].nil? - @border = args[:border] unless args[:border].nil? - @text = args[:text] unless args[:text].nil? - @title = args[:title] unless args[:title].nil? - @url = args[:url] unless args[:url].nil? + @background = args[:background] if args.key?(:background) + @border = args[:border] if args.key?(:border) + @text = args[:text] if args.key?(:text) + @title = args[:title] if args.key?(:title) + @url = args[:url] if args.key?(:url) end end @@ -335,8 +335,8 @@ module Google # Update properties of this object def update!(**args) - @family = args[:family] unless args[:family].nil? - @size = args[:size] unless args[:size].nil? + @family = args[:family] if args.key?(:family) + @size = args[:size] if args.key?(:size) end end end @@ -350,7 +350,8 @@ module Google # @return [String] attr_accessor :code - # Settings specific to content ads (AFC) and highend mobile content ads (AFMC). + # Settings specific to content ads (AFC) and highend mobile content ads (AFMC - + # deprecated). # Corresponds to the JSON property `contentAdsSettings` # @return [Google::Apis::AdsenseV1_4::AdUnit::ContentAdsSettings] attr_accessor :content_ads_settings @@ -360,7 +361,7 @@ module Google # @return [Google::Apis::AdsenseV1_4::AdStyle] attr_accessor :custom_style - # Settings specific to feed ads (AFF). + # Settings specific to feed ads (AFF) - deprecated. # Corresponds to the JSON property `feedAdsSettings` # @return [Google::Apis::AdsenseV1_4::AdUnit::FeedAdsSettings] attr_accessor :feed_ads_settings @@ -376,7 +377,7 @@ module Google # @return [String] attr_accessor :kind - # Settings specific to WAP mobile content ads (AFMC). + # Settings specific to WAP mobile content ads (AFMC) - deprecated. # Corresponds to the JSON property `mobileContentAdsSettings` # @return [Google::Apis::AdsenseV1_4::AdUnit::MobileContentAdsSettings] attr_accessor :mobile_content_ads_settings @@ -408,19 +409,20 @@ module Google # Update properties of this object def update!(**args) - @code = args[:code] unless args[:code].nil? - @content_ads_settings = args[:content_ads_settings] unless args[:content_ads_settings].nil? - @custom_style = args[:custom_style] unless args[:custom_style].nil? - @feed_ads_settings = args[:feed_ads_settings] unless args[:feed_ads_settings].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @mobile_content_ads_settings = args[:mobile_content_ads_settings] unless args[:mobile_content_ads_settings].nil? - @name = args[:name] unless args[:name].nil? - @saved_style_id = args[:saved_style_id] unless args[:saved_style_id].nil? - @status = args[:status] unless args[:status].nil? + @code = args[:code] if args.key?(:code) + @content_ads_settings = args[:content_ads_settings] if args.key?(:content_ads_settings) + @custom_style = args[:custom_style] if args.key?(:custom_style) + @feed_ads_settings = args[:feed_ads_settings] if args.key?(:feed_ads_settings) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @mobile_content_ads_settings = args[:mobile_content_ads_settings] if args.key?(:mobile_content_ads_settings) + @name = args[:name] if args.key?(:name) + @saved_style_id = args[:saved_style_id] if args.key?(:saved_style_id) + @status = args[:status] if args.key?(:status) end - # Settings specific to content ads (AFC) and highend mobile content ads (AFMC). + # Settings specific to content ads (AFC) and highend mobile content ads (AFMC - + # deprecated). class ContentAdsSettings include Google::Apis::Core::Hashable @@ -445,9 +447,9 @@ module Google # Update properties of this object def update!(**args) - @backup_option = args[:backup_option] unless args[:backup_option].nil? - @size = args[:size] unless args[:size].nil? - @type = args[:type] unless args[:type].nil? + @backup_option = args[:backup_option] if args.key?(:backup_option) + @size = args[:size] if args.key?(:size) + @type = args[:type] if args.key?(:type) end # The backup option to be used in instances where no ad is available. @@ -475,14 +477,14 @@ module Google # Update properties of this object def update!(**args) - @color = args[:color] unless args[:color].nil? - @type = args[:type] unless args[:type].nil? - @url = args[:url] unless args[:url].nil? + @color = args[:color] if args.key?(:color) + @type = args[:type] if args.key?(:type) + @url = args[:url] if args.key?(:url) end end end - # Settings specific to feed ads (AFF). + # Settings specific to feed ads (AFF) - deprecated. class FeedAdsSettings include Google::Apis::Core::Hashable @@ -512,14 +514,14 @@ module Google # Update properties of this object def update!(**args) - @ad_position = args[:ad_position] unless args[:ad_position].nil? - @frequency = args[:frequency] unless args[:frequency].nil? - @minimum_word_count = args[:minimum_word_count] unless args[:minimum_word_count].nil? - @type = args[:type] unless args[:type].nil? + @ad_position = args[:ad_position] if args.key?(:ad_position) + @frequency = args[:frequency] if args.key?(:frequency) + @minimum_word_count = args[:minimum_word_count] if args.key?(:minimum_word_count) + @type = args[:type] if args.key?(:type) end end - # Settings specific to WAP mobile content ads (AFMC). + # Settings specific to WAP mobile content ads (AFMC) - deprecated. class MobileContentAdsSettings include Google::Apis::Core::Hashable @@ -549,10 +551,10 @@ module Google # Update properties of this object def update!(**args) - @markup_language = args[:markup_language] unless args[:markup_language].nil? - @scripting_language = args[:scripting_language] unless args[:scripting_language].nil? - @size = args[:size] unless args[:size].nil? - @type = args[:type] unless args[:type].nil? + @markup_language = args[:markup_language] if args.key?(:markup_language) + @scripting_language = args[:scripting_language] if args.key?(:scripting_language) + @size = args[:size] if args.key?(:size) + @type = args[:type] if args.key?(:type) end end end @@ -588,10 +590,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -658,15 +660,15 @@ module Google # Update properties of this object def update!(**args) - @averages = args[:averages] unless args[:averages].nil? - @end_date = args[:end_date] unless args[:end_date].nil? - @headers = args[:headers] unless args[:headers].nil? - @kind = args[:kind] unless args[:kind].nil? - @rows = args[:rows] unless args[:rows].nil? - @start_date = args[:start_date] unless args[:start_date].nil? - @total_matched_rows = args[:total_matched_rows] unless args[:total_matched_rows].nil? - @totals = args[:totals] unless args[:totals].nil? - @warnings = args[:warnings] unless args[:warnings].nil? + @averages = args[:averages] if args.key?(:averages) + @end_date = args[:end_date] if args.key?(:end_date) + @headers = args[:headers] if args.key?(:headers) + @kind = args[:kind] if args.key?(:kind) + @rows = args[:rows] if args.key?(:rows) + @start_date = args[:start_date] if args.key?(:start_date) + @total_matched_rows = args[:total_matched_rows] if args.key?(:total_matched_rows) + @totals = args[:totals] if args.key?(:totals) + @warnings = args[:warnings] if args.key?(:warnings) end # @@ -696,9 +698,9 @@ module Google # Update properties of this object def update!(**args) - @currency = args[:currency] unless args[:currency].nil? - @name = args[:name] unless args[:name].nil? - @type = args[:type] unless args[:type].nil? + @currency = args[:currency] if args.key?(:currency) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) end end end @@ -747,12 +749,12 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @is_dismissible = args[:is_dismissible] unless args[:is_dismissible].nil? - @kind = args[:kind] unless args[:kind].nil? - @message = args[:message] unless args[:message].nil? - @severity = args[:severity] unless args[:severity].nil? - @type = args[:type] unless args[:type].nil? + @id = args[:id] if args.key?(:id) + @is_dismissible = args[:is_dismissible] if args.key?(:is_dismissible) + @kind = args[:kind] if args.key?(:kind) + @message = args[:message] if args.key?(:message) + @severity = args[:severity] if args.key?(:severity) + @type = args[:type] if args.key?(:type) end end @@ -776,8 +778,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -817,11 +819,11 @@ module Google # Update properties of this object def update!(**args) - @code = args[:code] unless args[:code].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @targeting_info = args[:targeting_info] unless args[:targeting_info].nil? + @code = args[:code] if args.key?(:code) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @targeting_info = args[:targeting_info] if args.key?(:targeting_info) end # The targeting information of this custom channel, if activated. @@ -839,10 +841,10 @@ module Google attr_accessor :description # The locations in which ads appear. (Only valid for content and mobile content - # ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, - # MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, - # BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: - # TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS. + # ads (deprecated)). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, + # TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, + # BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile + # content ads (deprecated) are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS. # Corresponds to the JSON property `location` # @return [String] attr_accessor :location @@ -858,10 +860,10 @@ module Google # Update properties of this object def update!(**args) - @ads_appear_on = args[:ads_appear_on] unless args[:ads_appear_on].nil? - @description = args[:description] unless args[:description].nil? - @location = args[:location] unless args[:location].nil? - @site_language = args[:site_language] unless args[:site_language].nil? + @ads_appear_on = args[:ads_appear_on] if args.key?(:ads_appear_on) + @description = args[:description] if args.key?(:description) + @location = args[:location] if args.key?(:location) + @site_language = args[:site_language] if args.key?(:site_language) end end end @@ -897,10 +899,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -924,8 +926,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -965,11 +967,11 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @payment_amount = args[:payment_amount] unless args[:payment_amount].nil? - @payment_amount_currency_code = args[:payment_amount_currency_code] unless args[:payment_amount_currency_code].nil? - @payment_date = args[:payment_date] unless args[:payment_date].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @payment_amount = args[:payment_amount] if args.key?(:payment_amount) + @payment_amount_currency_code = args[:payment_amount_currency_code] if args.key?(:payment_amount_currency_code) + @payment_date = args[:payment_date] if args.key?(:payment_date) end end @@ -994,8 +996,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -1055,13 +1057,13 @@ module Google # Update properties of this object def update!(**args) - @compatible_dimensions = args[:compatible_dimensions] unless args[:compatible_dimensions].nil? - @compatible_metrics = args[:compatible_metrics] unless args[:compatible_metrics].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @required_dimensions = args[:required_dimensions] unless args[:required_dimensions].nil? - @required_metrics = args[:required_metrics] unless args[:required_metrics].nil? - @supported_products = args[:supported_products] unless args[:supported_products].nil? + @compatible_dimensions = args[:compatible_dimensions] if args.key?(:compatible_dimensions) + @compatible_metrics = args[:compatible_metrics] if args.key?(:compatible_metrics) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @required_dimensions = args[:required_dimensions] if args.key?(:required_dimensions) + @required_metrics = args[:required_metrics] if args.key?(:required_metrics) + @supported_products = args[:supported_products] if args.key?(:supported_products) end end @@ -1096,10 +1098,10 @@ module Google # Update properties of this object def update!(**args) - @ad_style = args[:ad_style] unless args[:ad_style].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @ad_style = args[:ad_style] if args.key?(:ad_style) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -1134,10 +1136,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1166,9 +1168,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -1203,10 +1205,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1237,9 +1239,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @url_pattern = args[:url_pattern] unless args[:url_pattern].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @url_pattern = args[:url_pattern] if args.key?(:url_pattern) end end @@ -1274,10 +1276,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end end diff --git a/generated/google/apis/adsensehost_v4_1.rb b/generated/google/apis/adsensehost_v4_1.rb index 1683f5b0a..3fe2e3cdb 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 = '20160112' + REVISION = '20160127' # 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/classes.rb b/generated/google/apis/adsensehost_v4_1/classes.rb index 73a1aaeea..a3205a287 100644 --- a/generated/google/apis/adsensehost_v4_1/classes.rb +++ b/generated/google/apis/adsensehost_v4_1/classes.rb @@ -52,10 +52,10 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @status = args[:status] unless args[:status].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @status = args[:status] if args.key?(:status) end end @@ -84,9 +84,9 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -128,11 +128,11 @@ module Google # Update properties of this object def update!(**args) - @arc_opt_in = args[:arc_opt_in] unless args[:arc_opt_in].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @product_code = args[:product_code] unless args[:product_code].nil? - @supports_reporting = args[:supports_reporting] unless args[:supports_reporting].nil? + @arc_opt_in = args[:arc_opt_in] if args.key?(:arc_opt_in) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @product_code = args[:product_code] if args.key?(:product_code) + @supports_reporting = args[:supports_reporting] if args.key?(:supports_reporting) end end @@ -167,10 +167,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -194,8 +194,8 @@ module Google # Update properties of this object def update!(**args) - @ad_code = args[:ad_code] unless args[:ad_code].nil? - @kind = args[:kind] unless args[:kind].nil? + @ad_code = args[:ad_code] if args.key?(:ad_code) + @kind = args[:kind] if args.key?(:kind) end end @@ -231,10 +231,10 @@ module Google # Update properties of this object def update!(**args) - @colors = args[:colors] unless args[:colors].nil? - @corners = args[:corners] unless args[:corners].nil? - @font = args[:font] unless args[:font].nil? - @kind = args[:kind] unless args[:kind].nil? + @colors = args[:colors] if args.key?(:colors) + @corners = args[:corners] if args.key?(:corners) + @font = args[:font] if args.key?(:font) + @kind = args[:kind] if args.key?(:kind) end # The colors included in the style. These are represented as six hexadecimal @@ -273,11 +273,11 @@ module Google # Update properties of this object def update!(**args) - @background = args[:background] unless args[:background].nil? - @border = args[:border] unless args[:border].nil? - @text = args[:text] unless args[:text].nil? - @title = args[:title] unless args[:title].nil? - @url = args[:url] unless args[:url].nil? + @background = args[:background] if args.key?(:background) + @border = args[:border] if args.key?(:border) + @text = args[:text] if args.key?(:text) + @title = args[:title] if args.key?(:title) + @url = args[:url] if args.key?(:url) end end @@ -303,8 +303,8 @@ module Google # Update properties of this object def update!(**args) - @family = args[:family] unless args[:family].nil? - @size = args[:size] unless args[:size].nil? + @family = args[:family] if args.key?(:family) + @size = args[:size] if args.key?(:size) end end end @@ -318,7 +318,8 @@ module Google # @return [String] attr_accessor :code - # Settings specific to content ads (AFC) and highend mobile content ads (AFMC). + # Settings specific to content ads (AFC) and highend mobile content ads (AFMC - + # deprecated). # Corresponds to the JSON property `contentAdsSettings` # @return [Google::Apis::AdsensehostV4_1::AdUnit::ContentAdsSettings] attr_accessor :content_ads_settings @@ -339,7 +340,7 @@ module Google # @return [String] attr_accessor :kind - # Settings specific to WAP mobile content ads (AFMC). + # Settings specific to WAP mobile content ads (AFMC - deprecated). # Corresponds to the JSON property `mobileContentAdsSettings` # @return [Google::Apis::AdsensehostV4_1::AdUnit::MobileContentAdsSettings] attr_accessor :mobile_content_ads_settings @@ -366,17 +367,18 @@ module Google # Update properties of this object def update!(**args) - @code = args[:code] unless args[:code].nil? - @content_ads_settings = args[:content_ads_settings] unless args[:content_ads_settings].nil? - @custom_style = args[:custom_style] unless args[:custom_style].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @mobile_content_ads_settings = args[:mobile_content_ads_settings] unless args[:mobile_content_ads_settings].nil? - @name = args[:name] unless args[:name].nil? - @status = args[:status] unless args[:status].nil? + @code = args[:code] if args.key?(:code) + @content_ads_settings = args[:content_ads_settings] if args.key?(:content_ads_settings) + @custom_style = args[:custom_style] if args.key?(:custom_style) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @mobile_content_ads_settings = args[:mobile_content_ads_settings] if args.key?(:mobile_content_ads_settings) + @name = args[:name] if args.key?(:name) + @status = args[:status] if args.key?(:status) end - # Settings specific to content ads (AFC) and highend mobile content ads (AFMC). + # Settings specific to content ads (AFC) and highend mobile content ads (AFMC - + # deprecated). class ContentAdsSettings include Google::Apis::Core::Hashable @@ -401,9 +403,9 @@ module Google # Update properties of this object def update!(**args) - @backup_option = args[:backup_option] unless args[:backup_option].nil? - @size = args[:size] unless args[:size].nil? - @type = args[:type] unless args[:type].nil? + @backup_option = args[:backup_option] if args.key?(:backup_option) + @size = args[:size] if args.key?(:size) + @type = args[:type] if args.key?(:type) end # The backup option to be used in instances where no ad is available. @@ -433,14 +435,14 @@ module Google # Update properties of this object def update!(**args) - @color = args[:color] unless args[:color].nil? - @type = args[:type] unless args[:type].nil? - @url = args[:url] unless args[:url].nil? + @color = args[:color] if args.key?(:color) + @type = args[:type] if args.key?(:type) + @url = args[:url] if args.key?(:url) end end end - # Settings specific to WAP mobile content ads (AFMC). + # Settings specific to WAP mobile content ads (AFMC - deprecated). class MobileContentAdsSettings include Google::Apis::Core::Hashable @@ -470,10 +472,10 @@ module Google # Update properties of this object def update!(**args) - @markup_language = args[:markup_language] unless args[:markup_language].nil? - @scripting_language = args[:scripting_language] unless args[:scripting_language].nil? - @size = args[:size] unless args[:size].nil? - @type = args[:type] unless args[:type].nil? + @markup_language = args[:markup_language] if args.key?(:markup_language) + @scripting_language = args[:scripting_language] if args.key?(:scripting_language) + @size = args[:size] if args.key?(:size) + @type = args[:type] if args.key?(:type) end end end @@ -509,10 +511,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -536,7 +538,8 @@ module Google # @return [String] attr_accessor :kind - # The products to associate with the user. Options: AFC, AFF, AFS, AFMC + # The products to associate with the user. Options: AFC, AFG, AFV, AFS ( + # deprecated), AFMC (deprecated) # Corresponds to the JSON property `productCodes` # @return [Array] attr_accessor :product_codes @@ -575,15 +578,15 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @product_codes = args[:product_codes] unless args[:product_codes].nil? - @redirect_url = args[:redirect_url] unless args[:redirect_url].nil? - @status = args[:status] unless args[:status].nil? - @user_locale = args[:user_locale] unless args[:user_locale].nil? - @website_locale = args[:website_locale] unless args[:website_locale].nil? - @website_url = args[:website_url] unless args[:website_url].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @product_codes = args[:product_codes] if args.key?(:product_codes) + @redirect_url = args[:redirect_url] if args.key?(:redirect_url) + @status = args[:status] if args.key?(:status) + @user_locale = args[:user_locale] if args.key?(:user_locale) + @website_locale = args[:website_locale] if args.key?(:website_locale) + @website_url = args[:website_url] if args.key?(:website_url) end end @@ -618,10 +621,10 @@ module Google # Update properties of this object def update!(**args) - @code = args[:code] unless args[:code].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @code = args[:code] if args.key?(:code) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -656,10 +659,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -716,13 +719,13 @@ module Google # Update properties of this object def update!(**args) - @averages = args[:averages] unless args[:averages].nil? - @headers = args[:headers] unless args[:headers].nil? - @kind = args[:kind] unless args[:kind].nil? - @rows = args[:rows] unless args[:rows].nil? - @total_matched_rows = args[:total_matched_rows] unless args[:total_matched_rows].nil? - @totals = args[:totals] unless args[:totals].nil? - @warnings = args[:warnings] unless args[:warnings].nil? + @averages = args[:averages] if args.key?(:averages) + @headers = args[:headers] if args.key?(:headers) + @kind = args[:kind] if args.key?(:kind) + @rows = args[:rows] if args.key?(:rows) + @total_matched_rows = args[:total_matched_rows] if args.key?(:total_matched_rows) + @totals = args[:totals] if args.key?(:totals) + @warnings = args[:warnings] if args.key?(:warnings) end # @@ -752,9 +755,9 @@ module Google # Update properties of this object def update!(**args) - @currency = args[:currency] unless args[:currency].nil? - @name = args[:name] unless args[:name].nil? - @type = args[:type] unless args[:type].nil? + @currency = args[:currency] if args.key?(:currency) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) end end end @@ -786,9 +789,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @url_pattern = args[:url_pattern] unless args[:url_pattern].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @url_pattern = args[:url_pattern] if args.key?(:url_pattern) end end @@ -823,10 +826,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end end diff --git a/generated/google/apis/analytics_v3/classes.rb b/generated/google/apis/analytics_v3/classes.rb index 70e77ce0b..ebe7aafc8 100644 --- a/generated/google/apis/analytics_v3/classes.rb +++ b/generated/google/apis/analytics_v3/classes.rb @@ -73,14 +73,14 @@ module Google # Update properties of this object def update!(**args) - @child_link = args[:child_link] unless args[:child_link].nil? - @created = args[:created] unless args[:created].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @permissions = args[:permissions] unless args[:permissions].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @updated = args[:updated] unless args[:updated].nil? + @child_link = args[:child_link] if args.key?(:child_link) + @created = args[:created] if args.key?(:created) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @permissions = args[:permissions] if args.key?(:permissions) + @self_link = args[:self_link] if args.key?(:self_link) + @updated = args[:updated] if args.key?(:updated) end # Child link for an account entry. Points to the list of web properties for this @@ -104,8 +104,8 @@ module Google # Update properties of this object def update!(**args) - @href = args[:href] unless args[:href].nil? - @type = args[:type] unless args[:type].nil? + @href = args[:href] if args.key?(:href) + @type = args[:type] if args.key?(:type) end end @@ -125,7 +125,7 @@ module Google # Update properties of this object def update!(**args) - @effective = args[:effective] unless args[:effective].nil? + @effective = args[:effective] if args.key?(:effective) end end end @@ -160,10 +160,10 @@ module Google # Update properties of this object def update!(**args) - @href = args[:href] unless args[:href].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @href = args[:href] if args.key?(:href) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -224,14 +224,14 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @total_results = args[:total_results] unless args[:total_results].nil? - @username = args[:username] unless args[:username].nil? + @items = args[:items] if args.key?(:items) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) + @username = args[:username] if args.key?(:username) end end @@ -266,10 +266,10 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @web_properties = args[:web_properties] unless args[:web_properties].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @web_properties = args[:web_properties] if args.key?(:web_properties) end end @@ -315,12 +315,12 @@ module Google # Update properties of this object def update!(**args) - @account = args[:account] unless args[:account].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @profile = args[:profile] unless args[:profile].nil? - @redirect_uri = args[:redirect_uri] unless args[:redirect_uri].nil? - @webproperty = args[:webproperty] unless args[:webproperty].nil? + @account = args[:account] if args.key?(:account) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @profile = args[:profile] if args.key?(:profile) + @redirect_uri = args[:redirect_uri] if args.key?(:redirect_uri) + @webproperty = args[:webproperty] if args.key?(:webproperty) end end @@ -382,14 +382,14 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @total_results = args[:total_results] unless args[:total_results].nil? - @username = args[:username] unless args[:username].nil? + @items = args[:items] if args.key?(:items) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) + @username = args[:username] if args.key?(:username) end end @@ -420,9 +420,9 @@ module Google # Update properties of this object def update!(**args) - @auto_tagging_enabled = args[:auto_tagging_enabled] unless args[:auto_tagging_enabled].nil? - @customer_id = args[:customer_id] unless args[:customer_id].nil? - @kind = args[:kind] unless args[:kind].nil? + @auto_tagging_enabled = args[:auto_tagging_enabled] if args.key?(:auto_tagging_enabled) + @customer_id = args[:customer_id] if args.key?(:customer_id) + @kind = args[:kind] if args.key?(:kind) end end @@ -441,7 +441,7 @@ module Google # Update properties of this object def update!(**args) - @custom_data_import_uids = args[:custom_data_import_uids] unless args[:custom_data_import_uids].nil? + @custom_data_import_uids = args[:custom_data_import_uids] if args.key?(:custom_data_import_uids) end end @@ -470,9 +470,9 @@ module Google # Update properties of this object def update!(**args) - @attributes = args[:attributes] unless args[:attributes].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? + @attributes = args[:attributes] if args.key?(:attributes) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) end end @@ -512,11 +512,11 @@ module Google # Update properties of this object def update!(**args) - @attribute_names = args[:attribute_names] unless args[:attribute_names].nil? - @etag = args[:etag] unless args[:etag].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @total_results = args[:total_results] unless args[:total_results].nil? + @attribute_names = args[:attribute_names] if args.key?(:attribute_names) + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @total_results = args[:total_results] if args.key?(:total_results) end end @@ -607,21 +607,21 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @child_link = args[:child_link] unless args[:child_link].nil? - @created = args[:created] unless args[:created].nil? - @description = args[:description] unless args[:description].nil? - @id = args[:id] unless args[:id].nil? - @import_behavior = args[:import_behavior] unless args[:import_behavior].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @parent_link = args[:parent_link] unless args[:parent_link].nil? - @profiles_linked = args[:profiles_linked] unless args[:profiles_linked].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @type = args[:type] unless args[:type].nil? - @updated = args[:updated] unless args[:updated].nil? - @upload_type = args[:upload_type] unless args[:upload_type].nil? - @web_property_id = args[:web_property_id] unless args[:web_property_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @child_link = args[:child_link] if args.key?(:child_link) + @created = args[:created] if args.key?(:created) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @import_behavior = args[:import_behavior] if args.key?(:import_behavior) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @parent_link = args[:parent_link] if args.key?(:parent_link) + @profiles_linked = args[:profiles_linked] if args.key?(:profiles_linked) + @self_link = args[:self_link] if args.key?(:self_link) + @type = args[:type] if args.key?(:type) + @updated = args[:updated] if args.key?(:updated) + @upload_type = args[:upload_type] if args.key?(:upload_type) + @web_property_id = args[:web_property_id] if args.key?(:web_property_id) end # @@ -645,8 +645,8 @@ module Google # Update properties of this object def update!(**args) - @href = args[:href] unless args[:href].nil? - @type = args[:type] unless args[:type].nil? + @href = args[:href] if args.key?(:href) + @type = args[:type] if args.key?(:type) end end @@ -671,8 +671,8 @@ module Google # Update properties of this object def update!(**args) - @href = args[:href] unless args[:href].nil? - @type = args[:type] unless args[:type].nil? + @href = args[:href] if args.key?(:href) + @type = args[:type] if args.key?(:type) end end end @@ -734,14 +734,14 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @total_results = args[:total_results] unless args[:total_results].nil? - @username = args[:username] unless args[:username].nil? + @items = args[:items] if args.key?(:items) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) + @username = args[:username] if args.key?(:username) end end @@ -818,18 +818,18 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @active = args[:active] unless args[:active].nil? - @created = args[:created] unless args[:created].nil? - @id = args[:id] unless args[:id].nil? - @index = args[:index] unless args[:index].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @parent_link = args[:parent_link] unless args[:parent_link].nil? - @scope = args[:scope] unless args[:scope].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @updated = args[:updated] unless args[:updated].nil? - @web_property_id = args[:web_property_id] unless args[:web_property_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @active = args[:active] if args.key?(:active) + @created = args[:created] if args.key?(:created) + @id = args[:id] if args.key?(:id) + @index = args[:index] if args.key?(:index) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @parent_link = args[:parent_link] if args.key?(:parent_link) + @scope = args[:scope] if args.key?(:scope) + @self_link = args[:self_link] if args.key?(:self_link) + @updated = args[:updated] if args.key?(:updated) + @web_property_id = args[:web_property_id] if args.key?(:web_property_id) end # Parent link for the custom dimension. Points to the property to which the @@ -853,8 +853,8 @@ module Google # Update properties of this object def update!(**args) - @href = args[:href] unless args[:href].nil? - @type = args[:type] unless args[:type].nil? + @href = args[:href] if args.key?(:href) + @type = args[:type] if args.key?(:type) end end end @@ -916,14 +916,14 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @total_results = args[:total_results] unless args[:total_results].nil? - @username = args[:username] unless args[:username].nil? + @items = args[:items] if args.key?(:items) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) + @username = args[:username] if args.key?(:username) end end @@ -1015,21 +1015,21 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @active = args[:active] unless args[:active].nil? - @created = args[:created] unless args[:created].nil? - @id = args[:id] unless args[:id].nil? - @index = args[:index] unless args[:index].nil? - @kind = args[:kind] unless args[:kind].nil? - @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? - @parent_link = args[:parent_link] unless args[:parent_link].nil? - @scope = args[:scope] unless args[:scope].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @type = args[:type] unless args[:type].nil? - @updated = args[:updated] unless args[:updated].nil? - @web_property_id = args[:web_property_id] unless args[:web_property_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @active = args[:active] if args.key?(:active) + @created = args[:created] if args.key?(:created) + @id = args[:id] if args.key?(:id) + @index = args[:index] if args.key?(:index) + @kind = args[:kind] if args.key?(:kind) + @max_value = args[:max_value] if args.key?(:max_value) + @min_value = args[:min_value] if args.key?(:min_value) + @name = args[:name] if args.key?(:name) + @parent_link = args[:parent_link] if args.key?(:parent_link) + @scope = args[:scope] if args.key?(:scope) + @self_link = args[:self_link] if args.key?(:self_link) + @type = args[:type] if args.key?(:type) + @updated = args[:updated] if args.key?(:updated) + @web_property_id = args[:web_property_id] if args.key?(:web_property_id) end # Parent link for the custom metric. Points to the property to which the custom @@ -1053,8 +1053,8 @@ module Google # Update properties of this object def update!(**args) - @href = args[:href] unless args[:href].nil? - @type = args[:type] unless args[:type].nil? + @href = args[:href] if args.key?(:href) + @type = args[:type] if args.key?(:type) end end end @@ -1116,14 +1116,14 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @total_results = args[:total_results] unless args[:total_results].nil? - @username = args[:username] unless args[:username].nil? + @items = args[:items] if args.key?(:items) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) + @username = args[:username] if args.key?(:username) end end @@ -1173,13 +1173,13 @@ module Google # Update properties of this object def update!(**args) - @ad_words_accounts = args[:ad_words_accounts] unless args[:ad_words_accounts].nil? - @entity = args[:entity] unless args[:entity].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @profile_ids = args[:profile_ids] unless args[:profile_ids].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @ad_words_accounts = args[:ad_words_accounts] if args.key?(:ad_words_accounts) + @entity = args[:entity] if args.key?(:entity) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @profile_ids = args[:profile_ids] if args.key?(:profile_ids) + @self_link = args[:self_link] if args.key?(:self_link) end # Web property being linked. @@ -1197,7 +1197,7 @@ module Google # Update properties of this object def update!(**args) - @web_property_ref = args[:web_property_ref] unless args[:web_property_ref].nil? + @web_property_ref = args[:web_property_ref] if args.key?(:web_property_ref) end end end @@ -1253,13 +1253,13 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @total_results = args[:total_results] unless args[:total_results].nil? + @items = args[:items] if args.key?(:items) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) end end @@ -1305,12 +1305,12 @@ module Google # Update properties of this object def update!(**args) - @entity = args[:entity] unless args[:entity].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @permissions = args[:permissions] unless args[:permissions].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @user_ref = args[:user_ref] unless args[:user_ref].nil? + @entity = args[:entity] if args.key?(:entity) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @permissions = args[:permissions] if args.key?(:permissions) + @self_link = args[:self_link] if args.key?(:self_link) + @user_ref = args[:user_ref] if args.key?(:user_ref) end # Entity for this link. It can be an account, a web property, or a view (profile) @@ -1339,9 +1339,9 @@ module Google # Update properties of this object def update!(**args) - @account_ref = args[:account_ref] unless args[:account_ref].nil? - @profile_ref = args[:profile_ref] unless args[:profile_ref].nil? - @web_property_ref = args[:web_property_ref] unless args[:web_property_ref].nil? + @account_ref = args[:account_ref] if args.key?(:account_ref) + @profile_ref = args[:profile_ref] if args.key?(:profile_ref) + @web_property_ref = args[:web_property_ref] if args.key?(:web_property_ref) end end @@ -1369,8 +1369,8 @@ module Google # Update properties of this object def update!(**args) - @effective = args[:effective] unless args[:effective].nil? - @local = args[:local] unless args[:local].nil? + @effective = args[:effective] if args.key?(:effective) + @local = args[:local] if args.key?(:local) end end end @@ -1426,13 +1426,13 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @total_results = args[:total_results] unless args[:total_results].nil? + @items = args[:items] if args.key?(:items) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) end end @@ -1636,34 +1636,34 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @created = args[:created] unless args[:created].nil? - @description = args[:description] unless args[:description].nil? - @editable_in_ga_ui = args[:editable_in_ga_ui] unless args[:editable_in_ga_ui].nil? - @end_time = args[:end_time] unless args[:end_time].nil? - @equal_weighting = args[:equal_weighting] unless args[:equal_weighting].nil? - @id = args[:id] unless args[:id].nil? - @internal_web_property_id = args[:internal_web_property_id] unless args[:internal_web_property_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @minimum_experiment_length_in_days = args[:minimum_experiment_length_in_days] unless args[:minimum_experiment_length_in_days].nil? - @name = args[:name] unless args[:name].nil? - @objective_metric = args[:objective_metric] unless args[:objective_metric].nil? - @optimization_type = args[:optimization_type] unless args[:optimization_type].nil? - @parent_link = args[:parent_link] unless args[:parent_link].nil? - @profile_id = args[:profile_id] unless args[:profile_id].nil? - @reason_experiment_ended = args[:reason_experiment_ended] unless args[:reason_experiment_ended].nil? - @rewrite_variation_urls_as_original = args[:rewrite_variation_urls_as_original] unless args[:rewrite_variation_urls_as_original].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @serving_framework = args[:serving_framework] unless args[:serving_framework].nil? - @snippet = args[:snippet] unless args[:snippet].nil? - @start_time = args[:start_time] unless args[:start_time].nil? - @status = args[:status] unless args[:status].nil? - @traffic_coverage = args[:traffic_coverage] unless args[:traffic_coverage].nil? - @updated = args[:updated] unless args[:updated].nil? - @variations = args[:variations] unless args[:variations].nil? - @web_property_id = args[:web_property_id] unless args[:web_property_id].nil? - @winner_confidence_level = args[:winner_confidence_level] unless args[:winner_confidence_level].nil? - @winner_found = args[:winner_found] unless args[:winner_found].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @created = args[:created] if args.key?(:created) + @description = args[:description] if args.key?(:description) + @editable_in_ga_ui = args[:editable_in_ga_ui] if args.key?(:editable_in_ga_ui) + @end_time = args[:end_time] if args.key?(:end_time) + @equal_weighting = args[:equal_weighting] if args.key?(:equal_weighting) + @id = args[:id] if args.key?(:id) + @internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id) + @kind = args[:kind] if args.key?(:kind) + @minimum_experiment_length_in_days = args[:minimum_experiment_length_in_days] if args.key?(:minimum_experiment_length_in_days) + @name = args[:name] if args.key?(:name) + @objective_metric = args[:objective_metric] if args.key?(:objective_metric) + @optimization_type = args[:optimization_type] if args.key?(:optimization_type) + @parent_link = args[:parent_link] if args.key?(:parent_link) + @profile_id = args[:profile_id] if args.key?(:profile_id) + @reason_experiment_ended = args[:reason_experiment_ended] if args.key?(:reason_experiment_ended) + @rewrite_variation_urls_as_original = args[:rewrite_variation_urls_as_original] if args.key?(:rewrite_variation_urls_as_original) + @self_link = args[:self_link] if args.key?(:self_link) + @serving_framework = args[:serving_framework] if args.key?(:serving_framework) + @snippet = args[:snippet] if args.key?(:snippet) + @start_time = args[:start_time] if args.key?(:start_time) + @status = args[:status] if args.key?(:status) + @traffic_coverage = args[:traffic_coverage] if args.key?(:traffic_coverage) + @updated = args[:updated] if args.key?(:updated) + @variations = args[:variations] if args.key?(:variations) + @web_property_id = args[:web_property_id] if args.key?(:web_property_id) + @winner_confidence_level = args[:winner_confidence_level] if args.key?(:winner_confidence_level) + @winner_found = args[:winner_found] if args.key?(:winner_found) end # Parent link for an experiment. Points to the view (profile) to which this @@ -1688,8 +1688,8 @@ module Google # Update properties of this object def update!(**args) - @href = args[:href] unless args[:href].nil? - @type = args[:type] unless args[:type].nil? + @href = args[:href] if args.key?(:href) + @type = args[:type] if args.key?(:type) end end @@ -1735,11 +1735,11 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @status = args[:status] unless args[:status].nil? - @url = args[:url] unless args[:url].nil? - @weight = args[:weight] unless args[:weight].nil? - @won = args[:won] unless args[:won].nil? + @name = args[:name] if args.key?(:name) + @status = args[:status] if args.key?(:status) + @url = args[:url] if args.key?(:url) + @weight = args[:weight] if args.key?(:weight) + @won = args[:won] if args.key?(:won) end end end @@ -1801,14 +1801,14 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @total_results = args[:total_results] unless args[:total_results].nil? - @username = args[:username] unless args[:username].nil? + @items = args[:items] if args.key?(:items) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) + @username = args[:username] if args.key?(:username) end end @@ -1899,21 +1899,21 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @advanced_details = args[:advanced_details] unless args[:advanced_details].nil? - @created = args[:created] unless args[:created].nil? - @exclude_details = args[:exclude_details] unless args[:exclude_details].nil? - @id = args[:id] unless args[:id].nil? - @include_details = args[:include_details] unless args[:include_details].nil? - @kind = args[:kind] unless args[:kind].nil? - @lowercase_details = args[:lowercase_details] unless args[:lowercase_details].nil? - @name = args[:name] unless args[:name].nil? - @parent_link = args[:parent_link] unless args[:parent_link].nil? - @search_and_replace_details = args[:search_and_replace_details] unless args[:search_and_replace_details].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @type = args[:type] unless args[:type].nil? - @updated = args[:updated] unless args[:updated].nil? - @uppercase_details = args[:uppercase_details] unless args[:uppercase_details].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @advanced_details = args[:advanced_details] if args.key?(:advanced_details) + @created = args[:created] if args.key?(:created) + @exclude_details = args[:exclude_details] if args.key?(:exclude_details) + @id = args[:id] if args.key?(:id) + @include_details = args[:include_details] if args.key?(:include_details) + @kind = args[:kind] if args.key?(:kind) + @lowercase_details = args[:lowercase_details] if args.key?(:lowercase_details) + @name = args[:name] if args.key?(:name) + @parent_link = args[:parent_link] if args.key?(:parent_link) + @search_and_replace_details = args[:search_and_replace_details] if args.key?(:search_and_replace_details) + @self_link = args[:self_link] if args.key?(:self_link) + @type = args[:type] if args.key?(:type) + @updated = args[:updated] if args.key?(:updated) + @uppercase_details = args[:uppercase_details] if args.key?(:uppercase_details) end # Details for the filter of the type ADVANCED. @@ -1996,19 +1996,19 @@ module Google # Update properties of this object def update!(**args) - @case_sensitive = args[:case_sensitive] unless args[:case_sensitive].nil? - @extract_a = args[:extract_a] unless args[:extract_a].nil? - @extract_b = args[:extract_b] unless args[:extract_b].nil? - @field_a = args[:field_a] unless args[:field_a].nil? - @field_a_index = args[:field_a_index] unless args[:field_a_index].nil? - @field_a_required = args[:field_a_required] unless args[:field_a_required].nil? - @field_b = args[:field_b] unless args[:field_b].nil? - @field_b_index = args[:field_b_index] unless args[:field_b_index].nil? - @field_b_required = args[:field_b_required] unless args[:field_b_required].nil? - @output_constructor = args[:output_constructor] unless args[:output_constructor].nil? - @output_to_field = args[:output_to_field] unless args[:output_to_field].nil? - @output_to_field_index = args[:output_to_field_index] unless args[:output_to_field_index].nil? - @override_output_field = args[:override_output_field] unless args[:override_output_field].nil? + @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive) + @extract_a = args[:extract_a] if args.key?(:extract_a) + @extract_b = args[:extract_b] if args.key?(:extract_b) + @field_a = args[:field_a] if args.key?(:field_a) + @field_a_index = args[:field_a_index] if args.key?(:field_a_index) + @field_a_required = args[:field_a_required] if args.key?(:field_a_required) + @field_b = args[:field_b] if args.key?(:field_b) + @field_b_index = args[:field_b_index] if args.key?(:field_b_index) + @field_b_required = args[:field_b_required] if args.key?(:field_b_required) + @output_constructor = args[:output_constructor] if args.key?(:output_constructor) + @output_to_field = args[:output_to_field] if args.key?(:output_to_field) + @output_to_field_index = args[:output_to_field_index] if args.key?(:output_to_field_index) + @override_output_field = args[:override_output_field] if args.key?(:override_output_field) end end @@ -2032,8 +2032,8 @@ module Google # Update properties of this object def update!(**args) - @field = args[:field] unless args[:field].nil? - @field_index = args[:field_index] unless args[:field_index].nil? + @field = args[:field] if args.key?(:field) + @field_index = args[:field_index] if args.key?(:field_index) end end @@ -2058,8 +2058,8 @@ module Google # Update properties of this object def update!(**args) - @href = args[:href] unless args[:href].nil? - @type = args[:type] unless args[:type].nil? + @href = args[:href] if args.key?(:href) + @type = args[:type] if args.key?(:type) end end @@ -2099,11 +2099,11 @@ module Google # Update properties of this object def update!(**args) - @case_sensitive = args[:case_sensitive] unless args[:case_sensitive].nil? - @field = args[:field] unless args[:field].nil? - @field_index = args[:field_index] unless args[:field_index].nil? - @replace_string = args[:replace_string] unless args[:replace_string].nil? - @search_string = args[:search_string] unless args[:search_string].nil? + @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive) + @field = args[:field] if args.key?(:field) + @field_index = args[:field_index] if args.key?(:field_index) + @replace_string = args[:replace_string] if args.key?(:replace_string) + @search_string = args[:search_string] if args.key?(:search_string) end end @@ -2127,8 +2127,8 @@ module Google # Update properties of this object def update!(**args) - @field = args[:field] unless args[:field].nil? - @field_index = args[:field_index] unless args[:field_index].nil? + @field = args[:field] if args.key?(:field) + @field_index = args[:field_index] if args.key?(:field_index) end end end @@ -2264,12 +2264,12 @@ module Google # Update properties of this object def update!(**args) - @case_sensitive = args[:case_sensitive] unless args[:case_sensitive].nil? - @expression_value = args[:expression_value] unless args[:expression_value].nil? - @field = args[:field] unless args[:field].nil? - @field_index = args[:field_index] unless args[:field_index].nil? - @kind = args[:kind] unless args[:kind].nil? - @match_type = args[:match_type] unless args[:match_type].nil? + @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive) + @expression_value = args[:expression_value] if args.key?(:expression_value) + @field = args[:field] if args.key?(:field) + @field_index = args[:field_index] if args.key?(:field_index) + @kind = args[:kind] if args.key?(:kind) + @match_type = args[:match_type] if args.key?(:match_type) end end @@ -2308,11 +2308,11 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @href = args[:href] unless args[:href].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @href = args[:href] if args.key?(:href) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -2372,14 +2372,14 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @total_results = args[:total_results] unless args[:total_results].nil? - @username = args[:username] unless args[:username].nil? + @items = args[:items] if args.key?(:items) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) + @username = args[:username] if args.key?(:username) end end @@ -2482,22 +2482,22 @@ module Google # Update properties of this object def update!(**args) - @column_headers = args[:column_headers] unless args[:column_headers].nil? - @contains_sampled_data = args[:contains_sampled_data] unless args[:contains_sampled_data].nil? - @data_table = args[:data_table] unless args[:data_table].nil? - @id = args[:id] unless args[:id].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @profile_info = args[:profile_info] unless args[:profile_info].nil? - @query = args[:query] unless args[:query].nil? - @rows = args[:rows] unless args[:rows].nil? - @sample_size = args[:sample_size] unless args[:sample_size].nil? - @sample_space = args[:sample_space] unless args[:sample_space].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @total_results = args[:total_results] unless args[:total_results].nil? - @totals_for_all_results = args[:totals_for_all_results] unless args[:totals_for_all_results].nil? + @column_headers = args[:column_headers] if args.key?(:column_headers) + @contains_sampled_data = args[:contains_sampled_data] if args.key?(:contains_sampled_data) + @data_table = args[:data_table] if args.key?(:data_table) + @id = args[:id] if args.key?(:id) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @profile_info = args[:profile_info] if args.key?(:profile_info) + @query = args[:query] if args.key?(:query) + @rows = args[:rows] if args.key?(:rows) + @sample_size = args[:sample_size] if args.key?(:sample_size) + @sample_space = args[:sample_space] if args.key?(:sample_space) + @self_link = args[:self_link] if args.key?(:self_link) + @total_results = args[:total_results] if args.key?(:total_results) + @totals_for_all_results = args[:totals_for_all_results] if args.key?(:totals_for_all_results) end # @@ -2527,9 +2527,9 @@ module Google # Update properties of this object def update!(**args) - @column_type = args[:column_type] unless args[:column_type].nil? - @data_type = args[:data_type] unless args[:data_type].nil? - @name = args[:name] unless args[:name].nil? + @column_type = args[:column_type] if args.key?(:column_type) + @data_type = args[:data_type] if args.key?(:data_type) + @name = args[:name] if args.key?(:name) end end @@ -2553,8 +2553,8 @@ module Google # Update properties of this object def update!(**args) - @cols = args[:cols] unless args[:cols].nil? - @rows = args[:rows] unless args[:rows].nil? + @cols = args[:cols] if args.key?(:cols) + @rows = args[:rows] if args.key?(:rows) end # @@ -2582,9 +2582,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @label = args[:label] unless args[:label].nil? - @type = args[:type] unless args[:type].nil? + @id = args[:id] if args.key?(:id) + @label = args[:label] if args.key?(:label) + @type = args[:type] if args.key?(:type) end end @@ -2603,7 +2603,7 @@ module Google # Update properties of this object def update!(**args) - @c = args[:c] unless args[:c].nil? + @c = args[:c] if args.key?(:c) end # @@ -2621,7 +2621,7 @@ module Google # Update properties of this object def update!(**args) - @v = args[:v] unless args[:v].nil? + @v = args[:v] if args.key?(:v) end end end @@ -2667,12 +2667,12 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @internal_web_property_id = args[:internal_web_property_id] unless args[:internal_web_property_id].nil? - @profile_id = args[:profile_id] unless args[:profile_id].nil? - @profile_name = args[:profile_name] unless args[:profile_name].nil? - @table_id = args[:table_id] unless args[:table_id].nil? - @web_property_id = args[:web_property_id] unless args[:web_property_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id) + @profile_id = args[:profile_id] if args.key?(:profile_id) + @profile_name = args[:profile_name] if args.key?(:profile_name) + @table_id = args[:table_id] if args.key?(:table_id) + @web_property_id = args[:web_property_id] if args.key?(:web_property_id) end end @@ -2741,17 +2741,17 @@ module Google # Update properties of this object def update!(**args) - @dimensions = args[:dimensions] unless args[:dimensions].nil? - @end_date = args[:end_date] unless args[:end_date].nil? - @filters = args[:filters] unless args[:filters].nil? - @ids = args[:ids] unless args[:ids].nil? - @max_results = args[:max_results] unless args[:max_results].nil? - @metrics = args[:metrics] unless args[:metrics].nil? - @sampling_level = args[:sampling_level] unless args[:sampling_level].nil? - @segment = args[:segment] unless args[:segment].nil? - @sort = args[:sort] unless args[:sort].nil? - @start_date = args[:start_date] unless args[:start_date].nil? - @start_index = args[:start_index] unless args[:start_index].nil? + @dimensions = args[:dimensions] if args.key?(:dimensions) + @end_date = args[:end_date] if args.key?(:end_date) + @filters = args[:filters] if args.key?(:filters) + @ids = args[:ids] if args.key?(:ids) + @max_results = args[:max_results] if args.key?(:max_results) + @metrics = args[:metrics] if args.key?(:metrics) + @sampling_level = args[:sampling_level] if args.key?(:sampling_level) + @segment = args[:segment] if args.key?(:segment) + @sort = args[:sort] if args.key?(:sort) + @start_date = args[:start_date] if args.key?(:start_date) + @start_index = args[:start_index] if args.key?(:start_index) end end end @@ -2860,24 +2860,24 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @active = args[:active] unless args[:active].nil? - @created = args[:created] unless args[:created].nil? - @event_details = args[:event_details] unless args[:event_details].nil? - @id = args[:id] unless args[:id].nil? - @internal_web_property_id = args[:internal_web_property_id] unless args[:internal_web_property_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @parent_link = args[:parent_link] unless args[:parent_link].nil? - @profile_id = args[:profile_id] unless args[:profile_id].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @type = args[:type] unless args[:type].nil? - @updated = args[:updated] unless args[:updated].nil? - @url_destination_details = args[:url_destination_details] unless args[:url_destination_details].nil? - @value = args[:value] unless args[:value].nil? - @visit_num_pages_details = args[:visit_num_pages_details] unless args[:visit_num_pages_details].nil? - @visit_time_on_site_details = args[:visit_time_on_site_details] unless args[:visit_time_on_site_details].nil? - @web_property_id = args[:web_property_id] unless args[:web_property_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @active = args[:active] if args.key?(:active) + @created = args[:created] if args.key?(:created) + @event_details = args[:event_details] if args.key?(:event_details) + @id = args[:id] if args.key?(:id) + @internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @parent_link = args[:parent_link] if args.key?(:parent_link) + @profile_id = args[:profile_id] if args.key?(:profile_id) + @self_link = args[:self_link] if args.key?(:self_link) + @type = args[:type] if args.key?(:type) + @updated = args[:updated] if args.key?(:updated) + @url_destination_details = args[:url_destination_details] if args.key?(:url_destination_details) + @value = args[:value] if args.key?(:value) + @visit_num_pages_details = args[:visit_num_pages_details] if args.key?(:visit_num_pages_details) + @visit_time_on_site_details = args[:visit_time_on_site_details] if args.key?(:visit_time_on_site_details) + @web_property_id = args[:web_property_id] if args.key?(:web_property_id) end # Details for the goal of the type EVENT. @@ -2901,8 +2901,8 @@ module Google # Update properties of this object def update!(**args) - @event_conditions = args[:event_conditions] unless args[:event_conditions].nil? - @use_event_value = args[:use_event_value] unless args[:use_event_value].nil? + @event_conditions = args[:event_conditions] if args.key?(:event_conditions) + @use_event_value = args[:use_event_value] if args.key?(:use_event_value) end # @@ -2942,11 +2942,11 @@ module Google # Update properties of this object def update!(**args) - @comparison_type = args[:comparison_type] unless args[:comparison_type].nil? - @comparison_value = args[:comparison_value] unless args[:comparison_value].nil? - @expression = args[:expression] unless args[:expression].nil? - @match_type = args[:match_type] unless args[:match_type].nil? - @type = args[:type] unless args[:type].nil? + @comparison_type = args[:comparison_type] if args.key?(:comparison_type) + @comparison_value = args[:comparison_value] if args.key?(:comparison_value) + @expression = args[:expression] if args.key?(:expression) + @match_type = args[:match_type] if args.key?(:match_type) + @type = args[:type] if args.key?(:type) end end end @@ -2972,8 +2972,8 @@ module Google # Update properties of this object def update!(**args) - @href = args[:href] unless args[:href].nil? - @type = args[:type] unless args[:type].nil? + @href = args[:href] if args.key?(:href) + @type = args[:type] if args.key?(:type) end end @@ -3015,11 +3015,11 @@ module Google # Update properties of this object def update!(**args) - @case_sensitive = args[:case_sensitive] unless args[:case_sensitive].nil? - @first_step_required = args[:first_step_required] unless args[:first_step_required].nil? - @match_type = args[:match_type] unless args[:match_type].nil? - @steps = args[:steps] unless args[:steps].nil? - @url = args[:url] unless args[:url].nil? + @case_sensitive = args[:case_sensitive] if args.key?(:case_sensitive) + @first_step_required = args[:first_step_required] if args.key?(:first_step_required) + @match_type = args[:match_type] if args.key?(:match_type) + @steps = args[:steps] if args.key?(:steps) + @url = args[:url] if args.key?(:url) end # @@ -3047,9 +3047,9 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @number = args[:number] unless args[:number].nil? - @url = args[:url] unless args[:url].nil? + @name = args[:name] if args.key?(:name) + @number = args[:number] if args.key?(:number) + @url = args[:url] if args.key?(:url) end end end @@ -3074,8 +3074,8 @@ module Google # Update properties of this object def update!(**args) - @comparison_type = args[:comparison_type] unless args[:comparison_type].nil? - @comparison_value = args[:comparison_value] unless args[:comparison_value].nil? + @comparison_type = args[:comparison_type] if args.key?(:comparison_type) + @comparison_value = args[:comparison_value] if args.key?(:comparison_value) end end @@ -3099,8 +3099,8 @@ module Google # Update properties of this object def update!(**args) - @comparison_type = args[:comparison_type] unless args[:comparison_type].nil? - @comparison_value = args[:comparison_value] unless args[:comparison_value].nil? + @comparison_type = args[:comparison_type] if args.key?(:comparison_type) + @comparison_value = args[:comparison_value] if args.key?(:comparison_value) end end end @@ -3162,14 +3162,14 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @total_results = args[:total_results] unless args[:total_results].nil? - @username = args[:username] unless args[:username].nil? + @items = args[:items] if args.key?(:items) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) + @username = args[:username] if args.key?(:username) end end @@ -3267,21 +3267,21 @@ module Google # Update properties of this object def update!(**args) - @column_headers = args[:column_headers] unless args[:column_headers].nil? - @contains_sampled_data = args[:contains_sampled_data] unless args[:contains_sampled_data].nil? - @id = args[:id] unless args[:id].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @profile_info = args[:profile_info] unless args[:profile_info].nil? - @query = args[:query] unless args[:query].nil? - @rows = args[:rows] unless args[:rows].nil? - @sample_size = args[:sample_size] unless args[:sample_size].nil? - @sample_space = args[:sample_space] unless args[:sample_space].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @total_results = args[:total_results] unless args[:total_results].nil? - @totals_for_all_results = args[:totals_for_all_results] unless args[:totals_for_all_results].nil? + @column_headers = args[:column_headers] if args.key?(:column_headers) + @contains_sampled_data = args[:contains_sampled_data] if args.key?(:contains_sampled_data) + @id = args[:id] if args.key?(:id) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @profile_info = args[:profile_info] if args.key?(:profile_info) + @query = args[:query] if args.key?(:query) + @rows = args[:rows] if args.key?(:rows) + @sample_size = args[:sample_size] if args.key?(:sample_size) + @sample_space = args[:sample_space] if args.key?(:sample_space) + @self_link = args[:self_link] if args.key?(:self_link) + @total_results = args[:total_results] if args.key?(:total_results) + @totals_for_all_results = args[:totals_for_all_results] if args.key?(:totals_for_all_results) end # @@ -3310,9 +3310,9 @@ module Google # Update properties of this object def update!(**args) - @column_type = args[:column_type] unless args[:column_type].nil? - @data_type = args[:data_type] unless args[:data_type].nil? - @name = args[:name] unless args[:name].nil? + @column_type = args[:column_type] if args.key?(:column_type) + @data_type = args[:data_type] if args.key?(:data_type) + @name = args[:name] if args.key?(:name) end end @@ -3356,12 +3356,12 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @internal_web_property_id = args[:internal_web_property_id] unless args[:internal_web_property_id].nil? - @profile_id = args[:profile_id] unless args[:profile_id].nil? - @profile_name = args[:profile_name] unless args[:profile_name].nil? - @table_id = args[:table_id] unless args[:table_id].nil? - @web_property_id = args[:web_property_id] unless args[:web_property_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id) + @profile_id = args[:profile_id] if args.key?(:profile_id) + @profile_name = args[:profile_name] if args.key?(:profile_name) + @table_id = args[:table_id] if args.key?(:table_id) + @web_property_id = args[:web_property_id] if args.key?(:web_property_id) end end @@ -3430,17 +3430,17 @@ module Google # Update properties of this object def update!(**args) - @dimensions = args[:dimensions] unless args[:dimensions].nil? - @end_date = args[:end_date] unless args[:end_date].nil? - @filters = args[:filters] unless args[:filters].nil? - @ids = args[:ids] unless args[:ids].nil? - @max_results = args[:max_results] unless args[:max_results].nil? - @metrics = args[:metrics] unless args[:metrics].nil? - @sampling_level = args[:sampling_level] unless args[:sampling_level].nil? - @segment = args[:segment] unless args[:segment].nil? - @sort = args[:sort] unless args[:sort].nil? - @start_date = args[:start_date] unless args[:start_date].nil? - @start_index = args[:start_index] unless args[:start_index].nil? + @dimensions = args[:dimensions] if args.key?(:dimensions) + @end_date = args[:end_date] if args.key?(:end_date) + @filters = args[:filters] if args.key?(:filters) + @ids = args[:ids] if args.key?(:ids) + @max_results = args[:max_results] if args.key?(:max_results) + @metrics = args[:metrics] if args.key?(:metrics) + @sampling_level = args[:sampling_level] if args.key?(:sampling_level) + @segment = args[:segment] if args.key?(:segment) + @sort = args[:sort] if args.key?(:sort) + @start_date = args[:start_date] if args.key?(:start_date) + @start_index = args[:start_index] if args.key?(:start_index) end end @@ -3466,8 +3466,8 @@ module Google # Update properties of this object def update!(**args) - @conversion_path_value = args[:conversion_path_value] unless args[:conversion_path_value].nil? - @primitive_value = args[:primitive_value] unless args[:primitive_value].nil? + @conversion_path_value = args[:conversion_path_value] if args.key?(:conversion_path_value) + @primitive_value = args[:primitive_value] if args.key?(:primitive_value) end # @@ -3490,8 +3490,8 @@ module Google # Update properties of this object def update!(**args) - @interaction_type = args[:interaction_type] unless args[:interaction_type].nil? - @node_value = args[:node_value] unless args[:node_value].nil? + @interaction_type = args[:interaction_type] if args.key?(:interaction_type) + @node_value = args[:node_value] if args.key?(:node_value) end end end @@ -3646,31 +3646,31 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @bot_filtering_enabled = args[:bot_filtering_enabled] unless args[:bot_filtering_enabled].nil? - @child_link = args[:child_link] unless args[:child_link].nil? - @created = args[:created] unless args[:created].nil? - @currency = args[:currency] unless args[:currency].nil? - @default_page = args[:default_page] unless args[:default_page].nil? - @e_commerce_tracking = args[:e_commerce_tracking] unless args[:e_commerce_tracking].nil? - @enhanced_e_commerce_tracking = args[:enhanced_e_commerce_tracking] unless args[:enhanced_e_commerce_tracking].nil? - @exclude_query_parameters = args[:exclude_query_parameters] unless args[:exclude_query_parameters].nil? - @id = args[:id] unless args[:id].nil? - @internal_web_property_id = args[:internal_web_property_id] unless args[:internal_web_property_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @parent_link = args[:parent_link] unless args[:parent_link].nil? - @permissions = args[:permissions] unless args[:permissions].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @site_search_category_parameters = args[:site_search_category_parameters] unless args[:site_search_category_parameters].nil? - @site_search_query_parameters = args[:site_search_query_parameters] unless args[:site_search_query_parameters].nil? - @strip_site_search_category_parameters = args[:strip_site_search_category_parameters] unless args[:strip_site_search_category_parameters].nil? - @strip_site_search_query_parameters = args[:strip_site_search_query_parameters] unless args[:strip_site_search_query_parameters].nil? - @timezone = args[:timezone] unless args[:timezone].nil? - @type = args[:type] unless args[:type].nil? - @updated = args[:updated] unless args[:updated].nil? - @web_property_id = args[:web_property_id] unless args[:web_property_id].nil? - @website_url = args[:website_url] unless args[:website_url].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @bot_filtering_enabled = args[:bot_filtering_enabled] if args.key?(:bot_filtering_enabled) + @child_link = args[:child_link] if args.key?(:child_link) + @created = args[:created] if args.key?(:created) + @currency = args[:currency] if args.key?(:currency) + @default_page = args[:default_page] if args.key?(:default_page) + @e_commerce_tracking = args[:e_commerce_tracking] if args.key?(:e_commerce_tracking) + @enhanced_e_commerce_tracking = args[:enhanced_e_commerce_tracking] if args.key?(:enhanced_e_commerce_tracking) + @exclude_query_parameters = args[:exclude_query_parameters] if args.key?(:exclude_query_parameters) + @id = args[:id] if args.key?(:id) + @internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @parent_link = args[:parent_link] if args.key?(:parent_link) + @permissions = args[:permissions] if args.key?(:permissions) + @self_link = args[:self_link] if args.key?(:self_link) + @site_search_category_parameters = args[:site_search_category_parameters] if args.key?(:site_search_category_parameters) + @site_search_query_parameters = args[:site_search_query_parameters] if args.key?(:site_search_query_parameters) + @strip_site_search_category_parameters = args[:strip_site_search_category_parameters] if args.key?(:strip_site_search_category_parameters) + @strip_site_search_query_parameters = args[:strip_site_search_query_parameters] if args.key?(:strip_site_search_query_parameters) + @timezone = args[:timezone] if args.key?(:timezone) + @type = args[:type] if args.key?(:type) + @updated = args[:updated] if args.key?(:updated) + @web_property_id = args[:web_property_id] if args.key?(:web_property_id) + @website_url = args[:website_url] if args.key?(:website_url) end # Child link for this view (profile). Points to the list of goals for this view ( @@ -3694,8 +3694,8 @@ module Google # Update properties of this object def update!(**args) - @href = args[:href] unless args[:href].nil? - @type = args[:type] unless args[:type].nil? + @href = args[:href] if args.key?(:href) + @type = args[:type] if args.key?(:type) end end @@ -3720,8 +3720,8 @@ module Google # Update properties of this object def update!(**args) - @href = args[:href] unless args[:href].nil? - @type = args[:type] unless args[:type].nil? + @href = args[:href] if args.key?(:href) + @type = args[:type] if args.key?(:type) end end @@ -3742,7 +3742,7 @@ module Google # Update properties of this object def update!(**args) - @effective = args[:effective] unless args[:effective].nil? + @effective = args[:effective] if args.key?(:effective) end end end @@ -3797,12 +3797,12 @@ module Google # Update properties of this object def update!(**args) - @filter_ref = args[:filter_ref] unless args[:filter_ref].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @profile_ref = args[:profile_ref] unless args[:profile_ref].nil? - @rank = args[:rank] unless args[:rank].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @filter_ref = args[:filter_ref] if args.key?(:filter_ref) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @profile_ref = args[:profile_ref] if args.key?(:profile_ref) + @rank = args[:rank] if args.key?(:rank) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -3863,14 +3863,14 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @total_results = args[:total_results] unless args[:total_results].nil? - @username = args[:username] unless args[:username].nil? + @items = args[:items] if args.key?(:items) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) + @username = args[:username] if args.key?(:username) end end @@ -3919,13 +3919,13 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @href = args[:href] unless args[:href].nil? - @id = args[:id] unless args[:id].nil? - @internal_web_property_id = args[:internal_web_property_id] unless args[:internal_web_property_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @web_property_id = args[:web_property_id] unless args[:web_property_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @href = args[:href] if args.key?(:href) + @id = args[:id] if args.key?(:id) + @internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @web_property_id = args[:web_property_id] if args.key?(:web_property_id) end end @@ -3960,10 +3960,10 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @type = args[:type] unless args[:type].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) end end @@ -4024,14 +4024,14 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @total_results = args[:total_results] unless args[:total_results].nil? - @username = args[:username] unless args[:username].nil? + @items = args[:items] if args.key?(:items) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) + @username = args[:username] if args.key?(:username) end end @@ -4096,15 +4096,15 @@ module Google # Update properties of this object def update!(**args) - @column_headers = args[:column_headers] unless args[:column_headers].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @profile_info = args[:profile_info] unless args[:profile_info].nil? - @query = args[:query] unless args[:query].nil? - @rows = args[:rows] unless args[:rows].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @total_results = args[:total_results] unless args[:total_results].nil? - @totals_for_all_results = args[:totals_for_all_results] unless args[:totals_for_all_results].nil? + @column_headers = args[:column_headers] if args.key?(:column_headers) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @profile_info = args[:profile_info] if args.key?(:profile_info) + @query = args[:query] if args.key?(:query) + @rows = args[:rows] if args.key?(:rows) + @self_link = args[:self_link] if args.key?(:self_link) + @total_results = args[:total_results] if args.key?(:total_results) + @totals_for_all_results = args[:totals_for_all_results] if args.key?(:totals_for_all_results) end # @@ -4134,9 +4134,9 @@ module Google # Update properties of this object def update!(**args) - @column_type = args[:column_type] unless args[:column_type].nil? - @data_type = args[:data_type] unless args[:data_type].nil? - @name = args[:name] unless args[:name].nil? + @column_type = args[:column_type] if args.key?(:column_type) + @data_type = args[:data_type] if args.key?(:data_type) + @name = args[:name] if args.key?(:name) end end @@ -4180,12 +4180,12 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @internal_web_property_id = args[:internal_web_property_id] unless args[:internal_web_property_id].nil? - @profile_id = args[:profile_id] unless args[:profile_id].nil? - @profile_name = args[:profile_name] unless args[:profile_name].nil? - @table_id = args[:table_id] unless args[:table_id].nil? - @web_property_id = args[:web_property_id] unless args[:web_property_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id) + @profile_id = args[:profile_id] if args.key?(:profile_id) + @profile_name = args[:profile_name] if args.key?(:profile_name) + @table_id = args[:table_id] if args.key?(:table_id) + @web_property_id = args[:web_property_id] if args.key?(:web_property_id) end end @@ -4229,12 +4229,12 @@ module Google # Update properties of this object def update!(**args) - @dimensions = args[:dimensions] unless args[:dimensions].nil? - @filters = args[:filters] unless args[:filters].nil? - @ids = args[:ids] unless args[:ids].nil? - @max_results = args[:max_results] unless args[:max_results].nil? - @metrics = args[:metrics] unless args[:metrics].nil? - @sort = args[:sort] unless args[:sort].nil? + @dimensions = args[:dimensions] if args.key?(:dimensions) + @filters = args[:filters] if args.key?(:filters) + @ids = args[:ids] if args.key?(:ids) + @max_results = args[:max_results] if args.key?(:max_results) + @metrics = args[:metrics] if args.key?(:metrics) + @sort = args[:sort] if args.key?(:sort) end end end @@ -4294,15 +4294,15 @@ module Google # Update properties of this object def update!(**args) - @created = args[:created] unless args[:created].nil? - @definition = args[:definition] unless args[:definition].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @segment_id = args[:segment_id] unless args[:segment_id].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @type = args[:type] unless args[:type].nil? - @updated = args[:updated] unless args[:updated].nil? + @created = args[:created] if args.key?(:created) + @definition = args[:definition] if args.key?(:definition) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @segment_id = args[:segment_id] if args.key?(:segment_id) + @self_link = args[:self_link] if args.key?(:self_link) + @type = args[:type] if args.key?(:type) + @updated = args[:updated] if args.key?(:updated) end end @@ -4362,14 +4362,14 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @total_results = args[:total_results] unless args[:total_results].nil? - @username = args[:username] unless args[:username].nil? + @items = args[:items] if args.key?(:items) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) + @username = args[:username] if args.key?(:username) end end @@ -4480,25 +4480,25 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @cloud_storage_download_details = args[:cloud_storage_download_details] unless args[:cloud_storage_download_details].nil? - @created = args[:created] unless args[:created].nil? - @dimensions = args[:dimensions] unless args[:dimensions].nil? - @download_type = args[:download_type] unless args[:download_type].nil? - @drive_download_details = args[:drive_download_details] unless args[:drive_download_details].nil? - @end_date = args[:end_date] unless args[:end_date].nil? - @filters = args[:filters] unless args[:filters].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @metrics = args[:metrics] unless args[:metrics].nil? - @profile_id = args[:profile_id] unless args[:profile_id].nil? - @segment = args[:segment] unless args[:segment].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @start_date = args[:start_date] unless args[:start_date].nil? - @status = args[:status] unless args[:status].nil? - @title = args[:title] unless args[:title].nil? - @updated = args[:updated] unless args[:updated].nil? - @web_property_id = args[:web_property_id] unless args[:web_property_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @cloud_storage_download_details = args[:cloud_storage_download_details] if args.key?(:cloud_storage_download_details) + @created = args[:created] if args.key?(:created) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @download_type = args[:download_type] if args.key?(:download_type) + @drive_download_details = args[:drive_download_details] if args.key?(:drive_download_details) + @end_date = args[:end_date] if args.key?(:end_date) + @filters = args[:filters] if args.key?(:filters) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @metrics = args[:metrics] if args.key?(:metrics) + @profile_id = args[:profile_id] if args.key?(:profile_id) + @segment = args[:segment] if args.key?(:segment) + @self_link = args[:self_link] if args.key?(:self_link) + @start_date = args[:start_date] if args.key?(:start_date) + @status = args[:status] if args.key?(:status) + @title = args[:title] if args.key?(:title) + @updated = args[:updated] if args.key?(:updated) + @web_property_id = args[:web_property_id] if args.key?(:web_property_id) end # Download details for a file stored in Google Cloud Storage. @@ -4521,8 +4521,8 @@ module Google # Update properties of this object def update!(**args) - @bucket_id = args[:bucket_id] unless args[:bucket_id].nil? - @obj_id = args[:obj_id] unless args[:obj_id].nil? + @bucket_id = args[:bucket_id] if args.key?(:bucket_id) + @obj_id = args[:obj_id] if args.key?(:obj_id) end end @@ -4541,7 +4541,7 @@ module Google # Update properties of this object def update!(**args) - @document_id = args[:document_id] unless args[:document_id].nil? + @document_id = args[:document_id] if args.key?(:document_id) end end end @@ -4604,14 +4604,14 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @total_results = args[:total_results] unless args[:total_results].nil? - @username = args[:username] unless args[:username].nil? + @items = args[:items] if args.key?(:items) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) + @username = args[:username] if args.key?(:username) end end @@ -4655,12 +4655,12 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @custom_data_source_id = args[:custom_data_source_id] unless args[:custom_data_source_id].nil? - @errors = args[:errors] unless args[:errors].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @status = args[:status] unless args[:status].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @custom_data_source_id = args[:custom_data_source_id] if args.key?(:custom_data_source_id) + @errors = args[:errors] if args.key?(:errors) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @status = args[:status] if args.key?(:status) end end @@ -4716,13 +4716,13 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @total_results = args[:total_results] unless args[:total_results].nil? + @items = args[:items] if args.key?(:items) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) end end @@ -4751,9 +4751,9 @@ module Google # Update properties of this object def update!(**args) - @email = args[:email] unless args[:email].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? + @email = args[:email] if args.key?(:email) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) end end @@ -4797,12 +4797,12 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @href = args[:href] unless args[:href].nil? - @id = args[:id] unless args[:id].nil? - @internal_web_property_id = args[:internal_web_property_id] unless args[:internal_web_property_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @href = args[:href] if args.key?(:href) + @id = args[:id] if args.key?(:id) + @internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -4852,13 +4852,13 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @internal_web_property_id = args[:internal_web_property_id] unless args[:internal_web_property_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @level = args[:level] unless args[:level].nil? - @name = args[:name] unless args[:name].nil? - @profiles = args[:profiles] unless args[:profiles].nil? - @website_url = args[:website_url] unless args[:website_url].nil? + @id = args[:id] if args.key?(:id) + @internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id) + @kind = args[:kind] if args.key?(:kind) + @level = args[:level] if args.key?(:level) + @name = args[:name] if args.key?(:name) + @profiles = args[:profiles] if args.key?(:profiles) + @website_url = args[:website_url] if args.key?(:website_url) end end @@ -4919,14 +4919,14 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @previous_link = args[:previous_link] unless args[:previous_link].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @total_results = args[:total_results] unless args[:total_results].nil? - @username = args[:username] unless args[:username].nil? + @items = args[:items] if args.key?(:items) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @previous_link = args[:previous_link] if args.key?(:previous_link) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) + @username = args[:username] if args.key?(:username) end end @@ -5022,22 +5022,22 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @child_link = args[:child_link] unless args[:child_link].nil? - @created = args[:created] unless args[:created].nil? - @default_profile_id = args[:default_profile_id] unless args[:default_profile_id].nil? - @id = args[:id] unless args[:id].nil? - @industry_vertical = args[:industry_vertical] unless args[:industry_vertical].nil? - @internal_web_property_id = args[:internal_web_property_id] unless args[:internal_web_property_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @level = args[:level] unless args[:level].nil? - @name = args[:name] unless args[:name].nil? - @parent_link = args[:parent_link] unless args[:parent_link].nil? - @permissions = args[:permissions] unless args[:permissions].nil? - @profile_count = args[:profile_count] unless args[:profile_count].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @updated = args[:updated] unless args[:updated].nil? - @website_url = args[:website_url] unless args[:website_url].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @child_link = args[:child_link] if args.key?(:child_link) + @created = args[:created] if args.key?(:created) + @default_profile_id = args[:default_profile_id] if args.key?(:default_profile_id) + @id = args[:id] if args.key?(:id) + @industry_vertical = args[:industry_vertical] if args.key?(:industry_vertical) + @internal_web_property_id = args[:internal_web_property_id] if args.key?(:internal_web_property_id) + @kind = args[:kind] if args.key?(:kind) + @level = args[:level] if args.key?(:level) + @name = args[:name] if args.key?(:name) + @parent_link = args[:parent_link] if args.key?(:parent_link) + @permissions = args[:permissions] if args.key?(:permissions) + @profile_count = args[:profile_count] if args.key?(:profile_count) + @self_link = args[:self_link] if args.key?(:self_link) + @updated = args[:updated] if args.key?(:updated) + @website_url = args[:website_url] if args.key?(:website_url) end # Child link for this web property. Points to the list of views (profiles) for @@ -5061,8 +5061,8 @@ module Google # Update properties of this object def update!(**args) - @href = args[:href] unless args[:href].nil? - @type = args[:type] unless args[:type].nil? + @href = args[:href] if args.key?(:href) + @type = args[:type] if args.key?(:type) end end @@ -5087,8 +5087,8 @@ module Google # Update properties of this object def update!(**args) - @href = args[:href] unless args[:href].nil? - @type = args[:type] unless args[:type].nil? + @href = args[:href] if args.key?(:href) + @type = args[:type] if args.key?(:type) end end @@ -5109,7 +5109,7 @@ module Google # Update properties of this object def update!(**args) - @effective = args[:effective] unless args[:effective].nil? + @effective = args[:effective] if args.key?(:effective) end end end diff --git a/generated/google/apis/androidenterprise_v1/classes.rb b/generated/google/apis/androidenterprise_v1/classes.rb index 3b00e5283..7b9fe8984 100644 --- a/generated/google/apis/androidenterprise_v1/classes.rb +++ b/generated/google/apis/androidenterprise_v1/classes.rb @@ -44,8 +44,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @restrictions = args[:restrictions] unless args[:restrictions].nil? + @kind = args[:kind] if args.key?(:kind) + @restrictions = args[:restrictions] if args.key?(:restrictions) end end @@ -98,13 +98,13 @@ module Google # Update properties of this object def update!(**args) - @default_value = args[:default_value] unless args[:default_value].nil? - @description = args[:description] unless args[:description].nil? - @entry = args[:entry] unless args[:entry].nil? - @entry_value = args[:entry_value] unless args[:entry_value].nil? - @key = args[:key] unless args[:key].nil? - @restriction_type = args[:restriction_type] unless args[:restriction_type].nil? - @title = args[:title] unless args[:title].nil? + @default_value = args[:default_value] if args.key?(:default_value) + @description = args[:description] if args.key?(:description) + @entry = args[:entry] if args.key?(:entry) + @entry_value = args[:entry_value] if args.key?(:entry_value) + @key = args[:key] if args.key?(:key) + @restriction_type = args[:restriction_type] if args.key?(:restriction_type) + @title = args[:title] if args.key?(:title) end end @@ -144,11 +144,11 @@ module Google # Update properties of this object def update!(**args) - @type = args[:type] unless args[:type].nil? - @value_bool = args[:value_bool] unless args[:value_bool].nil? - @value_integer = args[:value_integer] unless args[:value_integer].nil? - @value_multiselect = args[:value_multiselect] unless args[:value_multiselect].nil? - @value_string = args[:value_string] unless args[:value_string].nil? + @type = args[:type] if args.key?(:type) + @value_bool = args[:value_bool] if args.key?(:value_bool) + @value_integer = args[:value_integer] if args.key?(:value_integer) + @value_multiselect = args[:value_multiselect] if args.key?(:value_multiselect) + @value_string = args[:value_string] if args.key?(:value_string) end end @@ -174,8 +174,8 @@ module Google # Update properties of this object def update!(**args) - @version_code = args[:version_code] unless args[:version_code].nil? - @version_string = args[:version_string] unless args[:version_string].nil? + @version_code = args[:version_code] if args.key?(:version_code) + @version_string = args[:version_string] if args.key?(:version_string) end end @@ -201,8 +201,8 @@ module Google # Update properties of this object def update!(**args) - @approval_url = args[:approval_url] unless args[:approval_url].nil? - @kind = args[:kind] unless args[:kind].nil? + @approval_url = args[:approval_url] if args.key?(:approval_url) + @kind = args[:kind] if args.key?(:kind) end end @@ -259,11 +259,11 @@ module Google # Update properties of this object def update!(**args) - @collection_id = args[:collection_id] unless args[:collection_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @product_id = args[:product_id] unless args[:product_id].nil? - @visibility = args[:visibility] unless args[:visibility].nil? + @collection_id = args[:collection_id] if args.key?(:collection_id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @product_id = args[:product_id] if args.key?(:product_id) + @visibility = args[:visibility] if args.key?(:visibility) end end @@ -288,8 +288,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @user = args[:user] unless args[:user].nil? + @kind = args[:kind] if args.key?(:kind) + @user = args[:user] if args.key?(:user) end end @@ -315,8 +315,8 @@ module Google # Update properties of this object def update!(**args) - @collection = args[:collection] unless args[:collection].nil? - @kind = args[:kind] unless args[:kind].nil? + @collection = args[:collection] if args.key?(:collection) + @kind = args[:kind] if args.key?(:kind) end end @@ -354,9 +354,9 @@ module Google # Update properties of this object def update!(**args) - @android_id = args[:android_id] unless args[:android_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @management_type = args[:management_type] unless args[:management_type].nil? + @android_id = args[:android_id] if args.key?(:android_id) + @kind = args[:kind] if args.key?(:kind) + @management_type = args[:management_type] if args.key?(:management_type) end end @@ -385,8 +385,8 @@ module Google # Update properties of this object def update!(**args) - @account_state = args[:account_state] unless args[:account_state].nil? - @kind = args[:kind] unless args[:kind].nil? + @account_state = args[:account_state] if args.key?(:account_state) + @kind = args[:kind] if args.key?(:kind) end end @@ -411,8 +411,8 @@ module Google # Update properties of this object def update!(**args) - @device = args[:device] unless args[:device].nil? - @kind = args[:kind] unless args[:kind].nil? + @device = args[:device] if args.key?(:device) + @kind = args[:kind] if args.key?(:kind) end end @@ -470,10 +470,10 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @primary_domain = args[:primary_domain] unless args[:primary_domain].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @primary_domain = args[:primary_domain] if args.key?(:primary_domain) end end @@ -499,8 +499,8 @@ module Google # Update properties of this object def update!(**args) - @account_email = args[:account_email] unless args[:account_email].nil? - @kind = args[:kind] unless args[:kind].nil? + @account_email = args[:account_email] if args.key?(:account_email) + @kind = args[:kind] if args.key?(:kind) end end @@ -525,8 +525,8 @@ module Google # Update properties of this object def update!(**args) - @enterprise = args[:enterprise] unless args[:enterprise].nil? - @kind = args[:kind] unless args[:kind].nil? + @enterprise = args[:enterprise] if args.key?(:enterprise) + @kind = args[:kind] if args.key?(:kind) end end @@ -551,8 +551,8 @@ module Google # 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? + @message_id = args[:message_id] if args.key?(:message_id) + @topic_name = args[:topic_name] if args.key?(:topic_name) end end @@ -607,9 +607,9 @@ module Google # 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? - @reason = args[:reason] unless args[:reason].nil? + @kind = args[:kind] if args.key?(:kind) + @product_id = args[:product_id] if args.key?(:product_id) + @reason = args[:reason] if args.key?(:reason) end end @@ -636,8 +636,8 @@ module Google # Update properties of this object def update!(**args) - @entitlement = args[:entitlement] unless args[:entitlement].nil? - @kind = args[:kind] unless args[:kind].nil? + @entitlement = args[:entitlement] if args.key?(:entitlement) + @kind = args[:kind] if args.key?(:kind) end end @@ -708,12 +708,12 @@ module Google # Update properties of this object def update!(**args) - @acquisition_kind = args[:acquisition_kind] unless args[:acquisition_kind].nil? - @approval = args[:approval] unless args[:approval].nil? - @kind = args[:kind] unless args[:kind].nil? - @num_provisioned = args[:num_provisioned] unless args[:num_provisioned].nil? - @num_purchased = args[:num_purchased] unless args[:num_purchased].nil? - @product_id = args[:product_id] unless args[:product_id].nil? + @acquisition_kind = args[:acquisition_kind] if args.key?(:acquisition_kind) + @approval = args[:approval] if args.key?(:approval) + @kind = args[:kind] if args.key?(:kind) + @num_provisioned = args[:num_provisioned] if args.key?(:num_provisioned) + @num_purchased = args[:num_purchased] if args.key?(:num_purchased) + @product_id = args[:product_id] if args.key?(:product_id) end end @@ -738,8 +738,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @user = args[:user] unless args[:user].nil? + @kind = args[:kind] if args.key?(:kind) + @user = args[:user] if args.key?(:user) end end @@ -764,8 +764,8 @@ module Google # Update properties of this object def update!(**args) - @group_license = args[:group_license] unless args[:group_license].nil? - @kind = args[:kind] unless args[:kind].nil? + @group_license = args[:group_license] if args.key?(:group_license) + @kind = args[:kind] if args.key?(:kind) end end @@ -823,10 +823,10 @@ module Google # Update properties of this object def update!(**args) - @install_state = args[:install_state] unless args[:install_state].nil? - @kind = args[:kind] unless args[:kind].nil? - @product_id = args[:product_id] unless args[:product_id].nil? - @version_code = args[:version_code] unless args[:version_code].nil? + @install_state = args[:install_state] if args.key?(:install_state) + @kind = args[:kind] if args.key?(:kind) + @product_id = args[:product_id] if args.key?(:product_id) + @version_code = args[:version_code] if args.key?(:version_code) end end @@ -852,8 +852,8 @@ module Google # Update properties of this object def update!(**args) - @install = args[:install] unless args[:install].nil? - @kind = args[:kind] unless args[:kind].nil? + @install = args[:install] if args.key?(:install) + @kind = args[:kind] if args.key?(:kind) end end @@ -877,8 +877,8 @@ module Google # Update properties of this object def update!(**args) - @locale = args[:locale] unless args[:locale].nil? - @text = args[:text] unless args[:text].nil? + @locale = args[:locale] if args.key?(:locale) + @text = args[:text] if args.key?(:text) end end @@ -919,10 +919,10 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @permission_id = args[:permission_id] unless args[:permission_id].nil? + @description = args[:description] if args.key?(:description) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @permission_id = args[:permission_id] if args.key?(:permission_id) end end @@ -1008,17 +1008,17 @@ module Google # Update properties of this object def update!(**args) - @app_version = args[:app_version] unless args[:app_version].nil? - @author_name = args[:author_name] unless args[:author_name].nil? - @details_url = args[:details_url] unless args[:details_url].nil? - @distribution_channel = args[:distribution_channel] unless args[:distribution_channel].nil? - @icon_url = args[:icon_url] unless args[:icon_url].nil? - @kind = args[:kind] unless args[:kind].nil? - @product_id = args[:product_id] unless args[:product_id].nil? - @product_pricing = args[:product_pricing] unless args[:product_pricing].nil? - @requires_container_app = args[:requires_container_app] unless args[:requires_container_app].nil? - @title = args[:title] unless args[:title].nil? - @work_details_url = args[:work_details_url] unless args[:work_details_url].nil? + @app_version = args[:app_version] if args.key?(:app_version) + @author_name = args[:author_name] if args.key?(:author_name) + @details_url = args[:details_url] if args.key?(:details_url) + @distribution_channel = args[:distribution_channel] if args.key?(:distribution_channel) + @icon_url = args[:icon_url] if args.key?(:icon_url) + @kind = args[:kind] if args.key?(:kind) + @product_id = args[:product_id] if args.key?(:product_id) + @product_pricing = args[:product_pricing] if args.key?(:product_pricing) + @requires_container_app = args[:requires_container_app] if args.key?(:requires_container_app) + @title = args[:title] if args.key?(:title) + @work_details_url = args[:work_details_url] if args.key?(:work_details_url) end end @@ -1045,8 +1045,8 @@ module Google # Update properties of this object def update!(**args) - @permission_id = args[:permission_id] unless args[:permission_id].nil? - @state = args[:state] unless args[:state].nil? + @permission_id = args[:permission_id] if args.key?(:permission_id) + @state = args[:state] if args.key?(:state) end end @@ -1078,9 +1078,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @permission = args[:permission] unless args[:permission].nil? - @product_id = args[:product_id] unless args[:product_id].nil? + @kind = args[:kind] if args.key?(:kind) + @permission = args[:permission] if args.key?(:permission) + @product_id = args[:product_id] if args.key?(:product_id) end end @@ -1105,8 +1105,8 @@ module Google # 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? + @kind = args[:kind] if args.key?(:kind) + @product_id = args[:product_id] if args.key?(:product_id) end end @@ -1125,7 +1125,7 @@ module Google # Update properties of this object def update!(**args) - @approval_url_info = args[:approval_url_info] unless args[:approval_url_info].nil? + @approval_url_info = args[:approval_url_info] if args.key?(:approval_url_info) end end @@ -1151,7 +1151,7 @@ module Google # Update properties of this object def update!(**args) - @url = args[:url] unless args[:url].nil? + @url = args[:url] if args.key?(:url) end end @@ -1200,11 +1200,11 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @order_in_page = args[:order_in_page] unless args[:order_in_page].nil? - @product_id = args[:product_id] unless args[:product_id].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @order_in_page = args[:order_in_page] if args.key?(:order_in_page) + @product_id = args[:product_id] if args.key?(:product_id) end end @@ -1235,8 +1235,8 @@ module Google # Update properties of this object def update!(**args) - @homepage_id = args[:homepage_id] unless args[:homepage_id].nil? - @kind = args[:kind] unless args[:kind].nil? + @homepage_id = args[:homepage_id] if args.key?(:homepage_id) + @kind = args[:kind] if args.key?(:kind) end end @@ -1261,8 +1261,8 @@ module Google # Update properties of this object def update!(**args) - @cluster = args[:cluster] unless args[:cluster].nil? - @kind = args[:kind] unless args[:kind].nil? + @cluster = args[:cluster] if args.key?(:cluster) + @kind = args[:kind] if args.key?(:kind) end end @@ -1287,8 +1287,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @page = args[:page] unless args[:page].nil? + @kind = args[:kind] if args.key?(:kind) + @page = args[:page] if args.key?(:page) end end @@ -1330,10 +1330,10 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @link = args[:link] unless args[:link].nil? - @name = args[:name] unless args[:name].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @link = args[:link] if args.key?(:link) + @name = args[:name] if args.key?(:name) end end @@ -1371,9 +1371,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @primary_email = args[:primary_email] unless args[:primary_email].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @primary_email = args[:primary_email] if args.key?(:primary_email) end end @@ -1407,9 +1407,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @token = args[:token] unless args[:token].nil? - @user_id = args[:user_id] unless args[:user_id].nil? + @kind = args[:kind] if args.key?(:kind) + @token = args[:token] if args.key?(:token) + @user_id = args[:user_id] if args.key?(:user_id) end end @@ -1434,8 +1434,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @user = args[:user] unless args[:user].nil? + @kind = args[:kind] if args.key?(:kind) + @user = args[:user] if args.key?(:user) end end end diff --git a/generated/google/apis/androidpublisher_v2/classes.rb b/generated/google/apis/androidpublisher_v2/classes.rb index f65a7f6dd..f458d7430 100644 --- a/generated/google/apis/androidpublisher_v2/classes.rb +++ b/generated/google/apis/androidpublisher_v2/classes.rb @@ -42,8 +42,8 @@ module Google # Update properties of this object def update!(**args) - @binary = args[:binary] unless args[:binary].nil? - @version_code = args[:version_code] unless args[:version_code].nil? + @binary = args[:binary] if args.key?(:binary) + @version_code = args[:version_code] if args.key?(:version_code) end end @@ -63,7 +63,7 @@ module Google # Update properties of this object def update!(**args) - @sha1 = args[:sha1] unless args[:sha1].nil? + @sha1 = args[:sha1] if args.key?(:sha1) end end @@ -87,8 +87,8 @@ module Google # Update properties of this object def update!(**args) - @language = args[:language] unless args[:language].nil? - @recent_changes = args[:recent_changes] unless args[:recent_changes].nil? + @language = args[:language] if args.key?(:language) + @recent_changes = args[:recent_changes] if args.key?(:recent_changes) end end @@ -113,8 +113,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @listings = args[:listings] unless args[:listings].nil? + @kind = args[:kind] if args.key?(:kind) + @listings = args[:listings] if args.key?(:listings) end end @@ -136,7 +136,7 @@ module Google # Update properties of this object def update!(**args) - @externally_hosted_apk = args[:externally_hosted_apk] unless args[:externally_hosted_apk].nil? + @externally_hosted_apk = args[:externally_hosted_apk] if args.key?(:externally_hosted_apk) end end @@ -158,7 +158,7 @@ module Google # Update properties of this object def update!(**args) - @externally_hosted_apk = args[:externally_hosted_apk] unless args[:externally_hosted_apk].nil? + @externally_hosted_apk = args[:externally_hosted_apk] if args.key?(:externally_hosted_apk) end end @@ -183,8 +183,8 @@ module Google # Update properties of this object def update!(**args) - @apks = args[:apks] unless args[:apks].nil? - @kind = args[:kind] unless args[:kind].nil? + @apks = args[:apks] if args.key?(:apks) + @kind = args[:kind] if args.key?(:kind) end end @@ -218,10 +218,10 @@ module Google # Update properties of this object def update!(**args) - @contact_email = args[:contact_email] unless args[:contact_email].nil? - @contact_phone = args[:contact_phone] unless args[:contact_phone].nil? - @contact_website = args[:contact_website] unless args[:contact_website].nil? - @default_language = args[:default_language] unless args[:default_language].nil? + @contact_email = args[:contact_email] if args.key?(:contact_email) + @contact_phone = args[:contact_phone] if args.key?(:contact_phone) + @contact_website = args[:contact_website] if args.key?(:contact_website) + @default_language = args[:default_language] if args.key?(:default_language) end end @@ -247,8 +247,8 @@ module Google # Update properties of this object def update!(**args) - @expiry_time_seconds = args[:expiry_time_seconds] unless args[:expiry_time_seconds].nil? - @id = args[:id] unless args[:id].nil? + @expiry_time_seconds = args[:expiry_time_seconds] if args.key?(:expiry_time_seconds) + @id = args[:id] if args.key?(:id) end end @@ -285,10 +285,10 @@ module Google # 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? - @product_type = args[:product_type] unless args[:product_type].nil? - @token = args[:token] unless args[:token].nil? + @kind = args[:kind] if args.key?(:kind) + @product_id = args[:product_id] if args.key?(:product_id) + @product_type = args[:product_type] if args.key?(:product_type) + @token = args[:token] if args.key?(:token) end end @@ -317,9 +317,9 @@ module Google # Update properties of this object def update!(**args) - @page_info = args[:page_info] unless args[:page_info].nil? - @resources = args[:resources] unless args[:resources].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? + @page_info = args[:page_info] if args.key?(:page_info) + @resources = args[:resources] if args.key?(:resources) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) end end @@ -346,8 +346,8 @@ module Google # Update properties of this object def update!(**args) - @file_size = args[:file_size] unless args[:file_size].nil? - @references_version = args[:references_version] unless args[:references_version].nil? + @file_size = args[:file_size] if args.key?(:file_size) + @references_version = args[:references_version] if args.key?(:references_version) end end @@ -366,7 +366,7 @@ module Google # Update properties of this object def update!(**args) - @expansion_file = args[:expansion_file] unless args[:expansion_file].nil? + @expansion_file = args[:expansion_file] if args.key?(:expansion_file) end end @@ -459,21 +459,21 @@ module Google # Update properties of this object def update!(**args) - @application_label = args[:application_label] unless args[:application_label].nil? - @certificate_base64s = args[:certificate_base64s] unless args[:certificate_base64s].nil? - @externally_hosted_url = args[:externally_hosted_url] unless args[:externally_hosted_url].nil? - @file_sha1_base64 = args[:file_sha1_base64] unless args[:file_sha1_base64].nil? - @file_sha256_base64 = args[:file_sha256_base64] unless args[:file_sha256_base64].nil? - @file_size = args[:file_size] unless args[:file_size].nil? - @icon_base64 = args[:icon_base64] unless args[:icon_base64].nil? - @maximum_sdk = args[:maximum_sdk] unless args[:maximum_sdk].nil? - @minimum_sdk = args[:minimum_sdk] unless args[:minimum_sdk].nil? - @native_codes = args[:native_codes] unless args[:native_codes].nil? - @package_name = args[:package_name] unless args[:package_name].nil? - @uses_features = args[:uses_features] unless args[:uses_features].nil? - @uses_permissions = args[:uses_permissions] unless args[:uses_permissions].nil? - @version_code = args[:version_code] unless args[:version_code].nil? - @version_name = args[:version_name] unless args[:version_name].nil? + @application_label = args[:application_label] if args.key?(:application_label) + @certificate_base64s = args[:certificate_base64s] if args.key?(:certificate_base64s) + @externally_hosted_url = args[:externally_hosted_url] if args.key?(:externally_hosted_url) + @file_sha1_base64 = args[:file_sha1_base64] if args.key?(:file_sha1_base64) + @file_sha256_base64 = args[:file_sha256_base64] if args.key?(:file_sha256_base64) + @file_size = args[:file_size] if args.key?(:file_size) + @icon_base64 = args[:icon_base64] if args.key?(:icon_base64) + @maximum_sdk = args[:maximum_sdk] if args.key?(:maximum_sdk) + @minimum_sdk = args[:minimum_sdk] if args.key?(:minimum_sdk) + @native_codes = args[:native_codes] if args.key?(:native_codes) + @package_name = args[:package_name] if args.key?(:package_name) + @uses_features = args[:uses_features] if args.key?(:uses_features) + @uses_permissions = args[:uses_permissions] if args.key?(:uses_permissions) + @version_code = args[:version_code] if args.key?(:version_code) + @version_name = args[:version_name] if args.key?(:version_name) end end @@ -497,8 +497,8 @@ module Google # Update properties of this object def update!(**args) - @max_sdk_version = args[:max_sdk_version] unless args[:max_sdk_version].nil? - @name = args[:name] unless args[:name].nil? + @max_sdk_version = args[:max_sdk_version] if args.key?(:max_sdk_version) + @name = args[:name] if args.key?(:name) end end @@ -527,9 +527,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @sha1 = args[:sha1] unless args[:sha1].nil? - @url = args[:url] unless args[:url].nil? + @id = args[:id] if args.key?(:id) + @sha1 = args[:sha1] if args.key?(:sha1) + @url = args[:url] if args.key?(:url) end end @@ -548,7 +548,7 @@ module Google # Update properties of this object def update!(**args) - @deleted = args[:deleted] unless args[:deleted].nil? + @deleted = args[:deleted] if args.key?(:deleted) end end @@ -567,7 +567,7 @@ module Google # Update properties of this object def update!(**args) - @images = args[:images] unless args[:images].nil? + @images = args[:images] if args.key?(:images) end end @@ -586,7 +586,7 @@ module Google # Update properties of this object def update!(**args) - @image = args[:image] unless args[:image].nil? + @image = args[:image] if args.key?(:image) end end @@ -663,17 +663,17 @@ module Google # Update properties of this object def update!(**args) - @default_language = args[:default_language] unless args[:default_language].nil? - @default_price = args[:default_price] unless args[:default_price].nil? - @listings = args[:listings] unless args[:listings].nil? - @package_name = args[:package_name] unless args[:package_name].nil? - @prices = args[:prices] unless args[:prices].nil? - @purchase_type = args[:purchase_type] unless args[:purchase_type].nil? - @season = args[:season] unless args[:season].nil? - @sku = args[:sku] unless args[:sku].nil? - @status = args[:status] unless args[:status].nil? - @subscription_period = args[:subscription_period] unless args[:subscription_period].nil? - @trial_period = args[:trial_period] unless args[:trial_period].nil? + @default_language = args[:default_language] if args.key?(:default_language) + @default_price = args[:default_price] if args.key?(:default_price) + @listings = args[:listings] if args.key?(:listings) + @package_name = args[:package_name] if args.key?(:package_name) + @prices = args[:prices] if args.key?(:prices) + @purchase_type = args[:purchase_type] if args.key?(:purchase_type) + @season = args[:season] if args.key?(:season) + @sku = args[:sku] if args.key?(:sku) + @status = args[:status] if args.key?(:status) + @subscription_period = args[:subscription_period] if args.key?(:subscription_period) + @trial_period = args[:trial_period] if args.key?(:trial_period) end end @@ -697,8 +697,8 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @title = args[:title] unless args[:title].nil? + @description = args[:description] if args.key?(:description) + @title = args[:title] if args.key?(:title) end end @@ -717,7 +717,7 @@ module Google # Update properties of this object def update!(**args) - @entrys = args[:entrys] unless args[:entrys].nil? + @entrys = args[:entrys] if args.key?(:entrys) end end @@ -751,10 +751,10 @@ module Google # Update properties of this object def update!(**args) - @batch_id = args[:batch_id] unless args[:batch_id].nil? - @inappproductsinsertrequest = args[:inappproductsinsertrequest] unless args[:inappproductsinsertrequest].nil? - @inappproductsupdaterequest = args[:inappproductsupdaterequest] unless args[:inappproductsupdaterequest].nil? - @method_name = args[:method_name] unless args[:method_name].nil? + @batch_id = args[:batch_id] if args.key?(:batch_id) + @inappproductsinsertrequest = args[:inappproductsinsertrequest] if args.key?(:inappproductsinsertrequest) + @inappproductsupdaterequest = args[:inappproductsupdaterequest] if args.key?(:inappproductsupdaterequest) + @method_name = args[:method_name] if args.key?(:method_name) end end @@ -779,8 +779,8 @@ module Google # Update properties of this object def update!(**args) - @entrys = args[:entrys] unless args[:entrys].nil? - @kind = args[:kind] unless args[:kind].nil? + @entrys = args[:entrys] if args.key?(:entrys) + @kind = args[:kind] if args.key?(:kind) end end @@ -809,9 +809,9 @@ module Google # Update properties of this object def update!(**args) - @batch_id = args[:batch_id] unless args[:batch_id].nil? - @inappproductsinsertresponse = args[:inappproductsinsertresponse] unless args[:inappproductsinsertresponse].nil? - @inappproductsupdateresponse = args[:inappproductsupdateresponse] unless args[:inappproductsupdateresponse].nil? + @batch_id = args[:batch_id] if args.key?(:batch_id) + @inappproductsinsertresponse = args[:inappproductsinsertresponse] if args.key?(:inappproductsinsertresponse) + @inappproductsupdateresponse = args[:inappproductsupdateresponse] if args.key?(:inappproductsupdateresponse) end end @@ -830,7 +830,7 @@ module Google # Update properties of this object def update!(**args) - @inappproduct = args[:inappproduct] unless args[:inappproduct].nil? + @inappproduct = args[:inappproduct] if args.key?(:inappproduct) end end @@ -849,7 +849,7 @@ module Google # Update properties of this object def update!(**args) - @inappproduct = args[:inappproduct] unless args[:inappproduct].nil? + @inappproduct = args[:inappproduct] if args.key?(:inappproduct) end end @@ -884,10 +884,10 @@ module Google # Update properties of this object def update!(**args) - @inappproduct = args[:inappproduct] unless args[:inappproduct].nil? - @kind = args[:kind] unless args[:kind].nil? - @page_info = args[:page_info] unless args[:page_info].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? + @inappproduct = args[:inappproduct] if args.key?(:inappproduct) + @kind = args[:kind] if args.key?(:kind) + @page_info = args[:page_info] if args.key?(:page_info) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) end end @@ -906,7 +906,7 @@ module Google # Update properties of this object def update!(**args) - @inappproduct = args[:inappproduct] unless args[:inappproduct].nil? + @inappproduct = args[:inappproduct] if args.key?(:inappproduct) end end @@ -925,7 +925,7 @@ module Google # Update properties of this object def update!(**args) - @inappproduct = args[:inappproduct] unless args[:inappproduct].nil? + @inappproduct = args[:inappproduct] if args.key?(:inappproduct) end end @@ -965,11 +965,11 @@ module Google # Update properties of this object def update!(**args) - @full_description = args[:full_description] unless args[:full_description].nil? - @language = args[:language] unless args[:language].nil? - @short_description = args[:short_description] unless args[:short_description].nil? - @title = args[:title] unless args[:title].nil? - @video = args[:video] unless args[:video].nil? + @full_description = args[:full_description] if args.key?(:full_description) + @language = args[:language] if args.key?(:language) + @short_description = args[:short_description] if args.key?(:short_description) + @title = args[:title] if args.key?(:title) + @video = args[:video] if args.key?(:video) end end @@ -994,8 +994,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @listings = args[:listings] unless args[:listings].nil? + @kind = args[:kind] if args.key?(:kind) + @listings = args[:listings] if args.key?(:listings) end end @@ -1020,8 +1020,8 @@ module Google # Update properties of this object def update!(**args) - @day = args[:day] unless args[:day].nil? - @month = args[:month] unless args[:month].nil? + @day = args[:day] if args.key?(:day) + @month = args[:month] if args.key?(:month) end end @@ -1050,9 +1050,9 @@ module Google # Update properties of this object def update!(**args) - @result_per_page = args[:result_per_page] unless args[:result_per_page].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @total_results = args[:total_results] unless args[:total_results].nil? + @result_per_page = args[:result_per_page] if args.key?(:result_per_page) + @start_index = args[:start_index] if args.key?(:start_index) + @total_results = args[:total_results] if args.key?(:total_results) end end @@ -1076,8 +1076,8 @@ module Google # Update properties of this object def update!(**args) - @currency = args[:currency] unless args[:currency].nil? - @price_micros = args[:price_micros] unless args[:price_micros].nil? + @currency = args[:currency] if args.key?(:currency) + @price_micros = args[:price_micros] if args.key?(:price_micros) end end @@ -1123,11 +1123,11 @@ module Google # Update properties of this object def update!(**args) - @consumption_state = args[:consumption_state] unless args[:consumption_state].nil? - @developer_payload = args[:developer_payload] unless args[:developer_payload].nil? - @kind = args[:kind] unless args[:kind].nil? - @purchase_state = args[:purchase_state] unless args[:purchase_state].nil? - @purchase_time_millis = args[:purchase_time_millis] unless args[:purchase_time_millis].nil? + @consumption_state = args[:consumption_state] if args.key?(:consumption_state) + @developer_payload = args[:developer_payload] if args.key?(:developer_payload) + @kind = args[:kind] if args.key?(:kind) + @purchase_state = args[:purchase_state] if args.key?(:purchase_state) + @purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis) end end @@ -1154,8 +1154,8 @@ module Google # Update properties of this object def update!(**args) - @default_price = args[:default_price] unless args[:default_price].nil? - @start = args[:start] unless args[:start].nil? + @default_price = args[:default_price] if args.key?(:default_price) + @start = args[:start] if args.key?(:start) end end @@ -1186,9 +1186,9 @@ module Google # Update properties of this object def update!(**args) - @end = args[:end] unless args[:end].nil? - @prorations = args[:prorations] unless args[:prorations].nil? - @start = args[:start] unless args[:start].nil? + @end = args[:end] if args.key?(:end) + @prorations = args[:prorations] if args.key?(:prorations) + @start = args[:start] if args.key?(:start) end end @@ -1215,8 +1215,8 @@ module Google # Update properties of this object def update!(**args) - @desired_expiry_time_millis = args[:desired_expiry_time_millis] unless args[:desired_expiry_time_millis].nil? - @expected_expiry_time_millis = args[:expected_expiry_time_millis] unless args[:expected_expiry_time_millis].nil? + @desired_expiry_time_millis = args[:desired_expiry_time_millis] if args.key?(:desired_expiry_time_millis) + @expected_expiry_time_millis = args[:expected_expiry_time_millis] if args.key?(:expected_expiry_time_millis) end end @@ -1254,10 +1254,10 @@ module Google # Update properties of this object def update!(**args) - @auto_renewing = args[:auto_renewing] unless args[:auto_renewing].nil? - @expiry_time_millis = args[:expiry_time_millis] unless args[:expiry_time_millis].nil? - @kind = args[:kind] unless args[:kind].nil? - @start_time_millis = args[:start_time_millis] unless args[:start_time_millis].nil? + @auto_renewing = args[:auto_renewing] if args.key?(:auto_renewing) + @expiry_time_millis = args[:expiry_time_millis] if args.key?(:expiry_time_millis) + @kind = args[:kind] if args.key?(:kind) + @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis) end end @@ -1277,7 +1277,7 @@ module Google # Update properties of this object def update!(**args) - @deferral_info = args[:deferral_info] unless args[:deferral_info].nil? + @deferral_info = args[:deferral_info] if args.key?(:deferral_info) end end @@ -1296,7 +1296,7 @@ module Google # Update properties of this object def update!(**args) - @new_expiry_time_millis = args[:new_expiry_time_millis] unless args[:new_expiry_time_millis].nil? + @new_expiry_time_millis = args[:new_expiry_time_millis] if args.key?(:new_expiry_time_millis) end end @@ -1320,8 +1320,8 @@ module Google # Update properties of this object def update!(**args) - @google_groups = args[:google_groups] unless args[:google_groups].nil? - @google_plus_communities = args[:google_plus_communities] unless args[:google_plus_communities].nil? + @google_groups = args[:google_groups] if args.key?(:google_groups) + @google_plus_communities = args[:google_plus_communities] if args.key?(:google_plus_communities) end end @@ -1345,8 +1345,8 @@ module Google # Update properties of this object def update!(**args) - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @previous_page_token = args[:previous_page_token] unless args[:previous_page_token].nil? + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token) end end @@ -1375,9 +1375,9 @@ module Google # Update properties of this object def update!(**args) - @track = args[:track] unless args[:track].nil? - @user_fraction = args[:user_fraction] unless args[:user_fraction].nil? - @version_codes = args[:version_codes] unless args[:version_codes].nil? + @track = args[:track] if args.key?(:track) + @user_fraction = args[:user_fraction] if args.key?(:user_fraction) + @version_codes = args[:version_codes] if args.key?(:version_codes) end end @@ -1402,8 +1402,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @tracks = args[:tracks] unless args[:tracks].nil? + @kind = args[:kind] if args.key?(:kind) + @tracks = args[:tracks] if args.key?(:tracks) end end end diff --git a/generated/google/apis/appengine_v1beta4.rb b/generated/google/apis/appengine_v1beta4.rb index 5540eeae3..8da1ba251 100644 --- a/generated/google/apis/appengine_v1beta4.rb +++ b/generated/google/apis/appengine_v1beta4.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/appengine/docs/admin-api/ module AppengineV1beta4 VERSION = 'V1beta4' - REVISION = '20151123' + REVISION = '20160121' # 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/appengine_v1beta4/classes.rb b/generated/google/apis/appengine_v1beta4/classes.rb index dd4ed4a66..9efd39eca 100644 --- a/generated/google/apis/appengine_v1beta4/classes.rb +++ b/generated/google/apis/appengine_v1beta4/classes.rb @@ -60,17 +60,24 @@ module Google # @return [String] attr_accessor :code_bucket + # A Google Cloud Storage bucket which can be used by the application to store + # content. @OutputOnly + # Corresponds to the JSON property `defaultBucket` + # @return [String] + attr_accessor :default_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? + @name = args[:name] if args.key?(:name) + @id = args[:id] if args.key?(:id) + @dispatch_rules = args[:dispatch_rules] if args.key?(:dispatch_rules) + @location = args[:location] if args.key?(:location) + @code_bucket = args[:code_bucket] if args.key?(:code_bucket) + @default_bucket = args[:default_bucket] if args.key?(:default_bucket) end end @@ -103,9 +110,9 @@ module Google # 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? + @domain = args[:domain] if args.key?(:domain) + @path = args[:path] if args.key?(:path) + @module = args[:module] if args.key?(:module) end end @@ -282,32 +289,32 @@ module Google # 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? + @name = args[:name] if args.key?(:name) + @id = args[:id] if args.key?(:id) + @automatic_scaling = args[:automatic_scaling] if args.key?(:automatic_scaling) + @basic_scaling = args[:basic_scaling] if args.key?(:basic_scaling) + @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling) + @inbound_services = args[:inbound_services] if args.key?(:inbound_services) + @instance_class = args[:instance_class] if args.key?(:instance_class) + @network = args[:network] if args.key?(:network) + @resources = args[:resources] if args.key?(:resources) + @runtime = args[:runtime] if args.key?(:runtime) + @threadsafe = args[:threadsafe] if args.key?(:threadsafe) + @vm = args[:vm] if args.key?(:vm) + @beta_settings = args[:beta_settings] if args.key?(:beta_settings) + @env = args[:env] if args.key?(:env) + @serving_status = args[:serving_status] if args.key?(:serving_status) + @deployer = args[:deployer] if args.key?(:deployer) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @handlers = args[:handlers] if args.key?(:handlers) + @error_handlers = args[:error_handlers] if args.key?(:error_handlers) + @libraries = args[:libraries] if args.key?(:libraries) + @api_config = args[:api_config] if args.key?(:api_config) + @env_variables = args[:env_variables] if args.key?(:env_variables) + @default_expiration = args[:default_expiration] if args.key?(:default_expiration) + @health_check = args[:health_check] if args.key?(:health_check) + @nobuild_files_regex = args[:nobuild_files_regex] if args.key?(:nobuild_files_regex) + @deployment = args[:deployment] if args.key?(:deployment) end end @@ -392,18 +399,18 @@ module Google # 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? + @cool_down_period = args[:cool_down_period] if args.key?(:cool_down_period) + @cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization) + @max_concurrent_requests = args[:max_concurrent_requests] if args.key?(:max_concurrent_requests) + @max_idle_instances = args[:max_idle_instances] if args.key?(:max_idle_instances) + @max_total_instances = args[:max_total_instances] if args.key?(:max_total_instances) + @max_pending_latency = args[:max_pending_latency] if args.key?(:max_pending_latency) + @min_idle_instances = args[:min_idle_instances] if args.key?(:min_idle_instances) + @min_total_instances = args[:min_total_instances] if args.key?(:min_total_instances) + @min_pending_latency = args[:min_pending_latency] if args.key?(:min_pending_latency) + @request_utilization = args[:request_utilization] if args.key?(:request_utilization) + @disk_utilization = args[:disk_utilization] if args.key?(:disk_utilization) + @network_utilization = args[:network_utilization] if args.key?(:network_utilization) end end @@ -427,8 +434,8 @@ module Google # 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? + @aggregation_window_length = args[:aggregation_window_length] if args.key?(:aggregation_window_length) + @target_utilization = args[:target_utilization] if args.key?(:target_utilization) end end @@ -452,8 +459,8 @@ module Google # 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? + @target_request_count_per_sec = args[:target_request_count_per_sec] if args.key?(:target_request_count_per_sec) + @target_concurrent_requests = args[:target_concurrent_requests] if args.key?(:target_concurrent_requests) end end @@ -487,10 +494,10 @@ module Google # 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? + @target_write_bytes_per_sec = args[:target_write_bytes_per_sec] if args.key?(:target_write_bytes_per_sec) + @target_write_ops_per_sec = args[:target_write_ops_per_sec] if args.key?(:target_write_ops_per_sec) + @target_read_bytes_per_sec = args[:target_read_bytes_per_sec] if args.key?(:target_read_bytes_per_sec) + @target_read_ops_per_sec = args[:target_read_ops_per_sec] if args.key?(:target_read_ops_per_sec) end end @@ -524,10 +531,10 @@ module Google # 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? + @target_sent_bytes_per_sec = args[:target_sent_bytes_per_sec] if args.key?(:target_sent_bytes_per_sec) + @target_sent_packets_per_sec = args[:target_sent_packets_per_sec] if args.key?(:target_sent_packets_per_sec) + @target_received_bytes_per_sec = args[:target_received_bytes_per_sec] if args.key?(:target_received_bytes_per_sec) + @target_received_packets_per_sec = args[:target_received_packets_per_sec] if args.key?(:target_received_packets_per_sec) end end @@ -555,8 +562,8 @@ module Google # 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? + @idle_timeout = args[:idle_timeout] if args.key?(:idle_timeout) + @max_instances = args[:max_instances] if args.key?(:max_instances) end end @@ -578,7 +585,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -609,9 +616,9 @@ module Google # 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? + @forwarded_ports = args[:forwarded_ports] if args.key?(:forwarded_ports) + @instance_tag = args[:instance_tag] if args.key?(:instance_tag) + @name = args[:name] if args.key?(:name) end end @@ -640,9 +647,9 @@ module Google # 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? + @cpu = args[:cpu] if args.key?(:cpu) + @disk_gb = args[:disk_gb] if args.key?(:disk_gb) + @memory_gb = args[:memory_gb] if args.key?(:memory_gb) end end @@ -712,15 +719,15 @@ module Google # 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? + @url_regex = args[:url_regex] if args.key?(:url_regex) + @static_files = args[:static_files] if args.key?(:static_files) + @static_directory = args[:static_directory] if args.key?(:static_directory) + @script = args[:script] if args.key?(:script) + @api_endpoint = args[:api_endpoint] if args.key?(:api_endpoint) + @security_level = args[:security_level] if args.key?(:security_level) + @login = args[:login] if args.key?(:login) + @auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action) + @redirect_http_response_code = args[:redirect_http_response_code] if args.key?(:redirect_http_response_code) end end @@ -785,13 +792,13 @@ module Google # 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? + @path = args[:path] if args.key?(:path) + @upload_path_regex = args[:upload_path_regex] if args.key?(:upload_path_regex) + @http_headers = args[:http_headers] if args.key?(:http_headers) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @expiration = args[:expiration] if args.key?(:expiration) + @require_matching_file = args[:require_matching_file] if args.key?(:require_matching_file) + @application_readable = args[:application_readable] if args.key?(:application_readable) end end @@ -850,12 +857,12 @@ module Google # 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? + @directory = args[:directory] if args.key?(:directory) + @http_headers = args[:http_headers] if args.key?(:http_headers) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @expiration = args[:expiration] if args.key?(:expiration) + @require_matching_file = args[:require_matching_file] if args.key?(:require_matching_file) + @application_readable = args[:application_readable] if args.key?(:application_readable) end end @@ -874,7 +881,7 @@ module Google # Update properties of this object def update!(**args) - @script_path = args[:script_path] unless args[:script_path].nil? + @script_path = args[:script_path] if args.key?(:script_path) end end @@ -893,7 +900,7 @@ module Google # Update properties of this object def update!(**args) - @script_path = args[:script_path] unless args[:script_path].nil? + @script_path = args[:script_path] if args.key?(:script_path) end end @@ -922,9 +929,9 @@ module Google # 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? + @error_code = args[:error_code] if args.key?(:error_code) + @static_file = args[:static_file] if args.key?(:static_file) + @mime_type = args[:mime_type] if args.key?(:mime_type) end end @@ -948,8 +955,8 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @version = args[:version] unless args[:version].nil? + @name = args[:name] if args.key?(:name) + @version = args[:version] if args.key?(:version) end end @@ -989,11 +996,11 @@ module Google # 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? + @auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action) + @login = args[:login] if args.key?(:login) + @script = args[:script] if args.key?(:script) + @security_level = args[:security_level] if args.key?(:security_level) + @url = args[:url] if args.key?(:url) end end @@ -1045,13 +1052,13 @@ module Google # 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? + @disable_health_check = args[:disable_health_check] if args.key?(:disable_health_check) + @host = args[:host] if args.key?(:host) + @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold) + @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold) + @restart_threshold = args[:restart_threshold] if args.key?(:restart_threshold) + @check_interval = args[:check_interval] if args.key?(:check_interval) + @timeout = args[:timeout] if args.key?(:timeout) end end @@ -1084,9 +1091,9 @@ module Google # 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? + @files = args[:files] if args.key?(:files) + @container = args[:container] if args.key?(:container) + @source_references = args[:source_references] if args.key?(:source_references) end end @@ -1117,9 +1124,9 @@ module Google # 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? + @source_url = args[:source_url] if args.key?(:source_url) + @sha1_sum = args[:sha1_sum] if args.key?(:sha1_sum) + @mime_type = args[:mime_type] if args.key?(:mime_type) end end @@ -1140,7 +1147,7 @@ module Google # Update properties of this object def update!(**args) - @image = args[:image] unless args[:image].nil? + @image = args[:image] if args.key?(:image) end end @@ -1168,8 +1175,8 @@ module Google # 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? + @repository = args[:repository] if args.key?(:repository) + @revision_id = args[:revision_id] if args.key?(:revision_id) end end @@ -1253,11 +1260,11 @@ module Google # 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? + @name = args[:name] if args.key?(:name) + @metadata = args[:metadata] if args.key?(:metadata) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @response = args[:response] if args.key?(:response) end end @@ -1320,9 +1327,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @message = args[:message] if args.key?(:message) + @details = args[:details] if args.key?(:details) end end @@ -1346,8 +1353,8 @@ module Google # 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? + @versions = args[:versions] if args.key?(:versions) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1383,9 +1390,9 @@ module Google # 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? + @name = args[:name] if args.key?(:name) + @id = args[:id] if args.key?(:id) + @split = args[:split] if args.key?(:split) end end @@ -1420,8 +1427,8 @@ module Google # 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? + @shard_by = args[:shard_by] if args.key?(:shard_by) + @allocations = args[:allocations] if args.key?(:allocations) end end @@ -1445,8 +1452,8 @@ module Google # 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? + @modules = args[:modules] if args.key?(:modules) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1470,8 +1477,8 @@ module Google # 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? + @operations = args[:operations] if args.key?(:operations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1519,12 +1526,58 @@ module Google # 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? + @operation_type = args[:operation_type] if args.key?(:operation_type) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @end_time = args[:end_time] if args.key?(:end_time) + @user = args[:user] if args.key?(:user) + @target = args[:target] if args.key?(:target) + @method_prop = args[:method_prop] if args.key?(:method_prop) + end + end + + # Metadata for the given google.longrunning.Operation. + class OperationMetadataV1Beta5 + include Google::Apis::Core::Hashable + + # API method name that initiated the operation. Example: "google.appengine. + # v1beta5.Version.CreateVersion". @OutputOnly + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + # 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/services/ + # default". @OutputOnly + # Corresponds to the JSON property `target` + # @return [String] + attr_accessor :target + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @method_prop = args[:method_prop] if args.key?(:method_prop) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @end_time = args[:end_time] if args.key?(:end_time) + @user = args[:user] if args.key?(:user) + @target = args[:target] if args.key?(:target) end end end diff --git a/generated/google/apis/appengine_v1beta4/representations.rb b/generated/google/apis/appengine_v1beta4/representations.rb index 0f49b020e..35e7bc7e0 100644 --- a/generated/google/apis/appengine_v1beta4/representations.rb +++ b/generated/google/apis/appengine_v1beta4/representations.rb @@ -154,6 +154,10 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class OperationMetadataV1Beta5 + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class Application # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -163,6 +167,7 @@ module Google property :location, as: 'location' property :code_bucket, as: 'codeBucket' + property :default_bucket, as: 'defaultBucket' end end @@ -521,6 +526,17 @@ module Google property :method_prop, as: 'method' end end + + class OperationMetadataV1Beta5 + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :method_prop, as: 'method' + property :insert_time, as: 'insertTime' + property :end_time, as: 'endTime' + property :user, as: 'user' + property :target, as: 'target' + end + end end end end diff --git a/generated/google/apis/appengine_v1beta4/service.rb b/generated/google/apis/appengine_v1beta4/service.rb index c1f5beae7..14415049c 100644 --- a/generated/google/apis/appengine_v1beta4/service.rb +++ b/generated/google/apis/appengine_v1beta4/service.rb @@ -53,8 +53,9 @@ module Google # @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. + # operation. If specified and any resources could not be created, the request + # will fail with an error code. Additionally, this parameter can cause the + # request to take longer to complete. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/appengine_v1beta5.rb b/generated/google/apis/appengine_v1beta5.rb new file mode 100644 index 000000000..17f5d0148 --- /dev/null +++ b/generated/google/apis/appengine_v1beta5.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_v1beta5/service.rb' +require 'google/apis/appengine_v1beta5/classes.rb' +require 'google/apis/appengine_v1beta5/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 AppengineV1beta5 + VERSION = 'V1beta5' + REVISION = '20160121' + + # 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_v1beta5/classes.rb b/generated/google/apis/appengine_v1beta5/classes.rb new file mode 100644 index 000000000..d0ef44743 --- /dev/null +++ b/generated/google/apis/appengine_v1beta5/classes.rb @@ -0,0 +1,1523 @@ +# 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 AppengineV1beta5 + + # 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::AppengineV1beta5::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] if args.key?(:name) + @metadata = args[:metadata] if args.key?(:metadata) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @response = args[:response] if args.key?(:response) + 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] if args.key?(:code) + @message = args[:message] if args.key?(:message) + @details = args[:details] if args.key?(:details) + 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] if args.key?(:operations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # 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 service 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" for + # United States and "eu" 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". + # 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 + + # A Google Cloud Storage bucket which can be used by the application to store + # content. @OutputOnly + # Corresponds to the JSON property `defaultBucket` + # @return [String] + attr_accessor :default_bucket + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @id = args[:id] if args.key?(:id) + @dispatch_rules = args[:dispatch_rules] if args.key?(:dispatch_rules) + @location = args[:location] if args.key?(:location) + @code_bucket = args[:code_bucket] if args.key?(:code_bucket) + @default_bucket = args[:default_bucket] if args.key?(:default_bucket) + end + end + + # Rules to match an HTTP request and dispatch that request to a service. + 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 Service in this application that should service the + # matched request. The Service must already exist. Example: "default". + # Corresponds to the JSON property `service` + # @return [String] + attr_accessor :service + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @domain = args[:domain] if args.key?(:domain) + @path = args[:path] if args.key?(:path) + @service = args[:service] if args.key?(:service) + end + end + + # A Version is a specific set of source code and configuration files deployed to + # a service. + class Version + include Google::Apis::Core::Hashable + + # The full path to the Version resource in the API. Example: "apps/myapp/ + # services/default/versions/v1". @OutputOnly + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The relative name/path of the Version within the service. 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::AppengineV1beta5::AutomaticScaling] + attr_accessor :automatic_scaling + + # A service 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::AppengineV1beta5::BasicScaling] + attr_accessor :basic_scaling + + # A service 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::AppengineV1beta5::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 instance class to use to run this app. Valid values for AutomaticScaling + # are `[F1, F2, F4, F4_1G]`. Valid values for ManualScaling and BasicScaling are + # `[B1, B2, B4, B8, B4_1G]`. Default: "F1" for AutomaticScaling, "B1" for + # ManualScaling and BasicScaling + # 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::AppengineV1beta5::Network] + attr_accessor :network + + # Used to specify how many machine resources an app version needs. + # Corresponds to the JSON property `resources` + # @return [Google::Apis::AppengineV1beta5::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 + + # Total size of version files hosted on App Engine disk in bytes. @OutputOnly + # Corresponds to the JSON property `diskUsageBytes` + # @return [String] + attr_accessor :disk_usage_bytes + + # 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::AppengineV1beta5::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::AppengineV1beta5::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::AppengineV1beta5::Deployment] + attr_accessor :deployment + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @id = args[:id] if args.key?(:id) + @automatic_scaling = args[:automatic_scaling] if args.key?(:automatic_scaling) + @basic_scaling = args[:basic_scaling] if args.key?(:basic_scaling) + @manual_scaling = args[:manual_scaling] if args.key?(:manual_scaling) + @inbound_services = args[:inbound_services] if args.key?(:inbound_services) + @instance_class = args[:instance_class] if args.key?(:instance_class) + @network = args[:network] if args.key?(:network) + @resources = args[:resources] if args.key?(:resources) + @runtime = args[:runtime] if args.key?(:runtime) + @threadsafe = args[:threadsafe] if args.key?(:threadsafe) + @vm = args[:vm] if args.key?(:vm) + @beta_settings = args[:beta_settings] if args.key?(:beta_settings) + @env = args[:env] if args.key?(:env) + @serving_status = args[:serving_status] if args.key?(:serving_status) + @deployer = args[:deployer] if args.key?(:deployer) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @disk_usage_bytes = args[:disk_usage_bytes] if args.key?(:disk_usage_bytes) + @handlers = args[:handlers] if args.key?(:handlers) + @error_handlers = args[:error_handlers] if args.key?(:error_handlers) + @libraries = args[:libraries] if args.key?(:libraries) + @api_config = args[:api_config] if args.key?(:api_config) + @env_variables = args[:env_variables] if args.key?(:env_variables) + @default_expiration = args[:default_expiration] if args.key?(:default_expiration) + @health_check = args[:health_check] if args.key?(:health_check) + @nobuild_files_regex = args[:nobuild_files_regex] if args.key?(:nobuild_files_regex) + @deployment = args[:deployment] if args.key?(:deployment) + 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::AppengineV1beta5::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 service, 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::AppengineV1beta5::RequestUtilization] + attr_accessor :request_utilization + + # Target scaling by disk usage (for VM runtimes only). + # Corresponds to the JSON property `diskUtilization` + # @return [Google::Apis::AppengineV1beta5::DiskUtilization] + attr_accessor :disk_utilization + + # Target scaling by network usage (for VM runtimes only). + # Corresponds to the JSON property `networkUtilization` + # @return [Google::Apis::AppengineV1beta5::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] if args.key?(:cool_down_period) + @cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization) + @max_concurrent_requests = args[:max_concurrent_requests] if args.key?(:max_concurrent_requests) + @max_idle_instances = args[:max_idle_instances] if args.key?(:max_idle_instances) + @max_total_instances = args[:max_total_instances] if args.key?(:max_total_instances) + @max_pending_latency = args[:max_pending_latency] if args.key?(:max_pending_latency) + @min_idle_instances = args[:min_idle_instances] if args.key?(:min_idle_instances) + @min_total_instances = args[:min_total_instances] if args.key?(:min_total_instances) + @min_pending_latency = args[:min_pending_latency] if args.key?(:min_pending_latency) + @request_utilization = args[:request_utilization] if args.key?(:request_utilization) + @disk_utilization = args[:disk_utilization] if args.key?(:disk_utilization) + @network_utilization = args[:network_utilization] if args.key?(:network_utilization) + 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] if args.key?(:aggregation_window_length) + @target_utilization = args[:target_utilization] if args.key?(:target_utilization) + 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] if args.key?(:target_request_count_per_sec) + @target_concurrent_requests = args[:target_concurrent_requests] if args.key?(:target_concurrent_requests) + 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] if args.key?(:target_write_bytes_per_sec) + @target_write_ops_per_sec = args[:target_write_ops_per_sec] if args.key?(:target_write_ops_per_sec) + @target_read_bytes_per_sec = args[:target_read_bytes_per_sec] if args.key?(:target_read_bytes_per_sec) + @target_read_ops_per_sec = args[:target_read_ops_per_sec] if args.key?(:target_read_ops_per_sec) + 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] if args.key?(:target_sent_bytes_per_sec) + @target_sent_packets_per_sec = args[:target_sent_packets_per_sec] if args.key?(:target_sent_packets_per_sec) + @target_received_bytes_per_sec = args[:target_received_bytes_per_sec] if args.key?(:target_received_bytes_per_sec) + @target_received_packets_per_sec = args[:target_received_packets_per_sec] if args.key?(:target_received_packets_per_sec) + end + end + + # A service 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] if args.key?(:idle_timeout) + @max_instances = args[:max_instances] if args.key?(:max_instances) + end + end + + # A service 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 service 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] if args.key?(:instances) + 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] if args.key?(:forwarded_ports) + @instance_tag = args[:instance_tag] if args.key?(:instance_tag) + @name = args[:name] if args.key?(:name) + 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] if args.key?(:cpu) + @disk_gb = args[:disk_gb] if args.key?(:disk_gb) + @memory_gb = args[:memory_gb] if args.key?(:memory_gb) + 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::AppengineV1beta5::StaticFilesHandler] + attr_accessor :static_files + + # Executes a script to handle the request that matches the URL pattern. + # Corresponds to the JSON property `script` + # @return [Google::Apis::AppengineV1beta5::ScriptHandler] + attr_accessor :script + + # Use Google Cloud Endpoints to handle requests. + # Corresponds to the JSON property `apiEndpoint` + # @return [Google::Apis::AppengineV1beta5::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] if args.key?(:url_regex) + @static_files = args[:static_files] if args.key?(:static_files) + @script = args[:script] if args.key?(:script) + @api_endpoint = args[:api_endpoint] if args.key?(:api_endpoint) + @security_level = args[:security_level] if args.key?(:security_level) + @login = args[:login] if args.key?(:login) + @auth_fail_action = args[:auth_fail_action] if args.key?(:auth_fail_action) + @redirect_http_response_code = args[:redirect_http_response_code] if args.key?(:redirect_http_response_code) + 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] if args.key?(:path) + @upload_path_regex = args[:upload_path_regex] if args.key?(:upload_path_regex) + @http_headers = args[:http_headers] if args.key?(:http_headers) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @expiration = args[:expiration] if args.key?(:expiration) + @require_matching_file = args[:require_matching_file] if args.key?(:require_matching_file) + @application_readable = args[:application_readable] if args.key?(:application_readable) + 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] if args.key?(:script_path) + 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] if args.key?(:script_path) + 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] if args.key?(:error_code) + @static_file = args[:static_file] if args.key?(:static_file) + @mime_type = args[:mime_type] if args.key?(:mime_type) + 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] if args.key?(:name) + @version = args[:version] if args.key?(:version) + 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] if args.key?(:auth_fail_action) + @login = args[:login] if args.key?(:login) + @script = args[:script] if args.key?(:script) + @security_level = args[:security_level] if args.key?(:security_level) + @url = args[:url] if args.key?(:url) + 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] if args.key?(:disable_health_check) + @host = args[:host] if args.key?(:host) + @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold) + @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold) + @restart_threshold = args[:restart_threshold] if args.key?(:restart_threshold) + @check_interval = args[:check_interval] if args.key?(:check_interval) + @timeout = args[:timeout] if args.key?(:timeout) + 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::AppengineV1beta5::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] if args.key?(:files) + @container = args[:container] if args.key?(:container) + @source_references = args[:source_references] if args.key?(:source_references) + 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] if args.key?(:source_url) + @sha1_sum = args[:sha1_sum] if args.key?(:sha1_sum) + @mime_type = args[:mime_type] if args.key?(:mime_type) + 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] if args.key?(:image) + 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] if args.key?(:repository) + @revision_id = args[:revision_id] if args.key?(:revision_id) + end + end + + # Response message for `Versions.ListVersions`. + class ListVersionsResponse + include Google::Apis::Core::Hashable + + # The versions belonging to the requested application service. + # 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] if args.key?(:versions) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # A service is a logical component of an application that can share state and + # communicate in a secure fashion with other services. For example, an + # application that handles customer requests might include separate services to + # handle other tasks such as API requests from mobile devices or backend data + # analysis. Each service has a collection of versions that define a specific set + # of code used to implement the functionality of that service. + class Service + include Google::Apis::Core::Hashable + + # The full path to the Service resource in the API. Example: "apps/myapp/ + # services/default" @OutputOnly + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The relative name/path of the service 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 service. + # Traffic splitting allows traffic directed to the service 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::AppengineV1beta5::TrafficSplit] + attr_accessor :split + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @id = args[:id] if args.key?(:id) + @split = args[:split] if args.key?(:split) + end + end + + # Configuration for traffic splitting for versions within a single service. + # Traffic splitting allows traffic directed to the service 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 service version IDs within the service to fractional (0.000, 1] + # allocations of traffic for that version. Each version may only be specified + # once, but some versions in the service may not have any traffic allocation. + # Services that have traffic allocated in this field may not be deleted until + # the service 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] if args.key?(:shard_by) + @allocations = args[:allocations] if args.key?(:allocations) + end + end + + # Response message for `Services.ListServices`. + class ListServicesResponse + include Google::Apis::Core::Hashable + + # The services belonging to the requested application. + # Corresponds to the JSON property `services` + # @return [Array] + attr_accessor :services + + # 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) + @services = args[:services] if args.key?(:services) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + 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] if args.key?(:operation_type) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @end_time = args[:end_time] if args.key?(:end_time) + @user = args[:user] if args.key?(:user) + @target = args[:target] if args.key?(:target) + @method_prop = args[:method_prop] if args.key?(:method_prop) + end + end + + # Metadata for the given google.longrunning.Operation. + class OperationMetadataV1Beta5 + include Google::Apis::Core::Hashable + + # API method name that initiated the operation. Example: "google.appengine. + # v1beta5.Version.CreateVersion". @OutputOnly + # Corresponds to the JSON property `method` + # @return [String] + attr_accessor :method_prop + + # 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/services/ + # default". @OutputOnly + # Corresponds to the JSON property `target` + # @return [String] + attr_accessor :target + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @method_prop = args[:method_prop] if args.key?(:method_prop) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @end_time = args[:end_time] if args.key?(:end_time) + @user = args[:user] if args.key?(:user) + @target = args[:target] if args.key?(:target) + end + end + end + end +end diff --git a/generated/google/apis/appengine_v1beta5/representations.rb b/generated/google/apis/appengine_v1beta5/representations.rb new file mode 100644 index 000000000..47d07f4da --- /dev/null +++ b/generated/google/apis/appengine_v1beta5/representations.rb @@ -0,0 +1,525 @@ +# 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 AppengineV1beta5 + + 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 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 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 ListVersionsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Service + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class TrafficSplit + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListServicesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OperationMetadataV1Beta5 + 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::AppengineV1beta5::Status, decorator: Google::Apis::AppengineV1beta5::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::AppengineV1beta5::Operation, decorator: Google::Apis::AppengineV1beta5::Operation::Representation + + property :next_page_token, as: 'nextPageToken' + 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::AppengineV1beta5::UrlDispatchRule, decorator: Google::Apis::AppengineV1beta5::UrlDispatchRule::Representation + + property :location, as: 'location' + property :code_bucket, as: 'codeBucket' + property :default_bucket, as: 'defaultBucket' + end + end + + class UrlDispatchRule + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :domain, as: 'domain' + property :path, as: 'path' + property :service, as: 'service' + 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::AppengineV1beta5::AutomaticScaling, decorator: Google::Apis::AppengineV1beta5::AutomaticScaling::Representation + + property :basic_scaling, as: 'basicScaling', class: Google::Apis::AppengineV1beta5::BasicScaling, decorator: Google::Apis::AppengineV1beta5::BasicScaling::Representation + + property :manual_scaling, as: 'manualScaling', class: Google::Apis::AppengineV1beta5::ManualScaling, decorator: Google::Apis::AppengineV1beta5::ManualScaling::Representation + + collection :inbound_services, as: 'inboundServices' + property :instance_class, as: 'instanceClass' + property :network, as: 'network', class: Google::Apis::AppengineV1beta5::Network, decorator: Google::Apis::AppengineV1beta5::Network::Representation + + property :resources, as: 'resources', class: Google::Apis::AppengineV1beta5::Resources, decorator: Google::Apis::AppengineV1beta5::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' + property :disk_usage_bytes, as: 'diskUsageBytes' + collection :handlers, as: 'handlers', class: Google::Apis::AppengineV1beta5::UrlMap, decorator: Google::Apis::AppengineV1beta5::UrlMap::Representation + + collection :error_handlers, as: 'errorHandlers', class: Google::Apis::AppengineV1beta5::ErrorHandler, decorator: Google::Apis::AppengineV1beta5::ErrorHandler::Representation + + collection :libraries, as: 'libraries', class: Google::Apis::AppengineV1beta5::Library, decorator: Google::Apis::AppengineV1beta5::Library::Representation + + property :api_config, as: 'apiConfig', class: Google::Apis::AppengineV1beta5::ApiConfigHandler, decorator: Google::Apis::AppengineV1beta5::ApiConfigHandler::Representation + + hash :env_variables, as: 'envVariables' + property :default_expiration, as: 'defaultExpiration' + property :health_check, as: 'healthCheck', class: Google::Apis::AppengineV1beta5::HealthCheck, decorator: Google::Apis::AppengineV1beta5::HealthCheck::Representation + + property :nobuild_files_regex, as: 'nobuildFilesRegex' + property :deployment, as: 'deployment', class: Google::Apis::AppengineV1beta5::Deployment, decorator: Google::Apis::AppengineV1beta5::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::AppengineV1beta5::CpuUtilization, decorator: Google::Apis::AppengineV1beta5::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::AppengineV1beta5::RequestUtilization, decorator: Google::Apis::AppengineV1beta5::RequestUtilization::Representation + + property :disk_utilization, as: 'diskUtilization', class: Google::Apis::AppengineV1beta5::DiskUtilization, decorator: Google::Apis::AppengineV1beta5::DiskUtilization::Representation + + property :network_utilization, as: 'networkUtilization', class: Google::Apis::AppengineV1beta5::NetworkUtilization, decorator: Google::Apis::AppengineV1beta5::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::AppengineV1beta5::StaticFilesHandler, decorator: Google::Apis::AppengineV1beta5::StaticFilesHandler::Representation + + property :script, as: 'script', class: Google::Apis::AppengineV1beta5::ScriptHandler, decorator: Google::Apis::AppengineV1beta5::ScriptHandler::Representation + + property :api_endpoint, as: 'apiEndpoint', class: Google::Apis::AppengineV1beta5::ApiEndpointHandler, decorator: Google::Apis::AppengineV1beta5::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 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::AppengineV1beta5::FileInfo, decorator: Google::Apis::AppengineV1beta5::FileInfo::Representation + + property :container, as: 'container', class: Google::Apis::AppengineV1beta5::ContainerInfo, decorator: Google::Apis::AppengineV1beta5::ContainerInfo::Representation + + collection :source_references, as: 'sourceReferences', class: Google::Apis::AppengineV1beta5::SourceReference, decorator: Google::Apis::AppengineV1beta5::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 ListVersionsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :versions, as: 'versions', class: Google::Apis::AppengineV1beta5::Version, decorator: Google::Apis::AppengineV1beta5::Version::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class Service + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :id, as: 'id' + property :split, as: 'split', class: Google::Apis::AppengineV1beta5::TrafficSplit, decorator: Google::Apis::AppengineV1beta5::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 ListServicesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :services, as: 'services', class: Google::Apis::AppengineV1beta5::Service, decorator: Google::Apis::AppengineV1beta5::Service::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 + + class OperationMetadataV1Beta5 + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :method_prop, as: 'method' + property :insert_time, as: 'insertTime' + property :end_time, as: 'endTime' + property :user, as: 'user' + property :target, as: 'target' + end + end + end + end +end diff --git a/generated/google/apis/appengine_v1beta5/service.rb b/generated/google/apis/appengine_v1beta5/service.rb new file mode 100644 index 000000000..5d935f344 --- /dev/null +++ b/generated/google/apis/appengine_v1beta5/service.rb @@ -0,0 +1,478 @@ +# 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 AppengineV1beta5 + # 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_v1beta5' + # + # Appengine = Google::Apis::AppengineV1beta5 # 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 could not be created, the request + # will fail with an error code. Additionally, this parameter can cause the + # request to take longer to complete. Note: This parameter will be deprecated in + # a future version of the API. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::AppengineV1beta5::Application] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta5::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, 'v1beta5/apps/{appsId}', options) + command.response_representation = Google::Apis::AppengineV1beta5::Application::Representation + command.response_class = Google::Apis::AppengineV1beta5::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 + + # 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::AppengineV1beta5::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta5::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, 'v1beta5/apps/{appsId}/operations/{operationsId}', options) + command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation + command.response_class = Google::Apis::AppengineV1beta5::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::AppengineV1beta5::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta5::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, 'v1beta5/apps/{appsId}/operations', options) + command.response_representation = Google::Apis::AppengineV1beta5::ListOperationsResponse::Representation + command.response_class = Google::Apis::AppengineV1beta5::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 + + # Deletes a service and all enclosed versions. + # @param [String] apps_id + # Part of `name`. Name of the resource requested. For example: "apps/myapp/ + # services/default". + # @param [String] services_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::AppengineV1beta5::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta5::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_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta5/apps/{appsId}/services/{servicesId}', options) + command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation + command.response_class = Google::Apis::AppengineV1beta5::Operation + command.params['appsId'] = apps_id unless apps_id.nil? + command.params['servicesId'] = services_id unless services_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 service. + # @param [String] apps_id + # Part of `name`. Name of the resource requested. For example: "apps/myapp/ + # services/default". + # @param [String] services_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::AppengineV1beta5::Service] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta5::Service] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_service(apps_id, services_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}', options) + command.response_representation = Google::Apis::AppengineV1beta5::Service::Representation + command.response_class = Google::Apis::AppengineV1beta5::Service + command.params['appsId'] = apps_id unless apps_id.nil? + command.params['servicesId'] = services_id unless services_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 services 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::AppengineV1beta5::ListServicesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta5::ListServicesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_services(apps_id, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services', options) + command.response_representation = Google::Apis::AppengineV1beta5::ListServicesResponse::Representation + command.response_class = Google::Apis::AppengineV1beta5::ListServicesResponse + 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 service. + # @param [String] apps_id + # Part of `name`. Name of the resource to update. For example: "apps/myapp/ + # services/default". + # @param [String] services_id + # Part of `name`. See documentation of `appsId`. + # @param [Google::Apis::AppengineV1beta5::Service] service_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::AppengineV1beta5::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta5::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_service(apps_id, services_id, service_object = nil, mask: nil, migrate_traffic: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1beta5/apps/{appsId}/services/{servicesId}', options) + command.request_representation = Google::Apis::AppengineV1beta5::Service::Representation + command.request_object = service_object + command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation + command.response_class = Google::Apis::AppengineV1beta5::Operation + command.params['appsId'] = apps_id unless apps_id.nil? + command.params['servicesId'] = services_id unless services_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/ + # services/default". + # @param [String] services_id + # Part of `name`. See documentation of `appsId`. + # @param [Google::Apis::AppengineV1beta5::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::AppengineV1beta5::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta5::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_service_version(apps_id, services_id, version_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1beta5/apps/{appsId}/services/{servicesId}/versions', options) + command.request_representation = Google::Apis::AppengineV1beta5::Version::Representation + command.request_object = version_object + command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation + command.response_class = Google::Apis::AppengineV1beta5::Operation + command.params['appsId'] = apps_id unless apps_id.nil? + command.params['servicesId'] = services_id unless services_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/ + # services/default/versions/v1". + # @param [String] services_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::AppengineV1beta5::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta5::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_service_version(apps_id, services_id, versions_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options) + command.response_representation = Google::Apis::AppengineV1beta5::Operation::Representation + command.response_class = Google::Apis::AppengineV1beta5::Operation + command.params['appsId'] = apps_id unless apps_id.nil? + command.params['servicesId'] = services_id unless services_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/ + # services/default/versions/v1". + # @param [String] services_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::AppengineV1beta5::Version] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta5::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_service_version(apps_id, services_id, versions_id, view: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions/{versionsId}', options) + command.response_representation = Google::Apis::AppengineV1beta5::Version::Representation + command.response_class = Google::Apis::AppengineV1beta5::Version + command.params['appsId'] = apps_id unless apps_id.nil? + command.params['servicesId'] = services_id unless services_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 service. + # @param [String] apps_id + # Part of `name`. Name of the resource requested. For example: "apps/myapp/ + # services/default". + # @param [String] services_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::AppengineV1beta5::ListVersionsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::AppengineV1beta5::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_service_versions(apps_id, services_id, view: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v1beta5/apps/{appsId}/services/{servicesId}/versions', options) + command.response_representation = Google::Apis::AppengineV1beta5::ListVersionsResponse::Representation + command.response_class = Google::Apis::AppengineV1beta5::ListVersionsResponse + command.params['appsId'] = apps_id unless apps_id.nil? + command.params['servicesId'] = services_id unless services_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 + + 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/classes.rb b/generated/google/apis/appsactivity_v1/classes.rb index a3bf20c3a..28f047ef7 100644 --- a/generated/google/apis/appsactivity_v1/classes.rb +++ b/generated/google/apis/appsactivity_v1/classes.rb @@ -44,8 +44,8 @@ module Google # Update properties of this object def update!(**args) - @combined_event = args[:combined_event] unless args[:combined_event].nil? - @single_events = args[:single_events] unless args[:single_events].nil? + @combined_event = args[:combined_event] if args.key?(:combined_event) + @single_events = args[:single_events] if args.key?(:single_events) end end @@ -109,15 +109,15 @@ module Google # Update properties of this object def update!(**args) - @additional_event_types = args[:additional_event_types] unless args[:additional_event_types].nil? - @event_time_millis = args[:event_time_millis] unless args[:event_time_millis].nil? - @from_user_deletion = args[:from_user_deletion] unless args[:from_user_deletion].nil? - @move = args[:move] unless args[:move].nil? - @permission_changes = args[:permission_changes] unless args[:permission_changes].nil? - @primary_event_type = args[:primary_event_type] unless args[:primary_event_type].nil? - @rename = args[:rename] unless args[:rename].nil? - @target = args[:target] unless args[:target].nil? - @user = args[:user] unless args[:user].nil? + @additional_event_types = args[:additional_event_types] if args.key?(:additional_event_types) + @event_time_millis = args[:event_time_millis] if args.key?(:event_time_millis) + @from_user_deletion = args[:from_user_deletion] if args.key?(:from_user_deletion) + @move = args[:move] if args.key?(:move) + @permission_changes = args[:permission_changes] if args.key?(:permission_changes) + @primary_event_type = args[:primary_event_type] if args.key?(:primary_event_type) + @rename = args[:rename] if args.key?(:rename) + @target = args[:target] if args.key?(:target) + @user = args[:user] if args.key?(:user) end end @@ -142,8 +142,8 @@ module Google # Update properties of this object def update!(**args) - @activities = args[:activities] unless args[:activities].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @activities = args[:activities] if args.key?(:activities) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -168,8 +168,8 @@ module Google # Update properties of this object def update!(**args) - @added_parents = args[:added_parents] unless args[:added_parents].nil? - @removed_parents = args[:removed_parents] unless args[:removed_parents].nil? + @added_parents = args[:added_parents] if args.key?(:added_parents) + @removed_parents = args[:removed_parents] if args.key?(:removed_parents) end end @@ -200,9 +200,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @is_root = args[:is_root] unless args[:is_root].nil? - @title = args[:title] unless args[:title].nil? + @id = args[:id] if args.key?(:id) + @is_root = args[:is_root] if args.key?(:is_root) + @title = args[:title] if args.key?(:title) end end @@ -251,12 +251,12 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @permission_id = args[:permission_id] unless args[:permission_id].nil? - @role = args[:role] unless args[:role].nil? - @type = args[:type] unless args[:type].nil? - @user = args[:user] unless args[:user].nil? - @with_link = args[:with_link] unless args[:with_link].nil? + @name = args[:name] if args.key?(:name) + @permission_id = args[:permission_id] if args.key?(:permission_id) + @role = args[:role] if args.key?(:role) + @type = args[:type] if args.key?(:type) + @user = args[:user] if args.key?(:user) + @with_link = args[:with_link] if args.key?(:with_link) end end @@ -281,8 +281,8 @@ module Google # Update properties of this object def update!(**args) - @added_permissions = args[:added_permissions] unless args[:added_permissions].nil? - @removed_permissions = args[:removed_permissions] unless args[:removed_permissions].nil? + @added_permissions = args[:added_permissions] if args.key?(:added_permissions) + @removed_permissions = args[:removed_permissions] if args.key?(:removed_permissions) end end @@ -301,7 +301,7 @@ module Google # Update properties of this object def update!(**args) - @url = args[:url] unless args[:url].nil? + @url = args[:url] if args.key?(:url) end end @@ -325,8 +325,8 @@ module Google # Update properties of this object def update!(**args) - @new_title = args[:new_title] unless args[:new_title].nil? - @old_title = args[:old_title] unless args[:old_title].nil? + @new_title = args[:new_title] if args.key?(:new_title) + @old_title = args[:old_title] if args.key?(:old_title) end end @@ -357,9 +357,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @mime_type = args[:mime_type] unless args[:mime_type].nil? - @name = args[:name] unless args[:name].nil? + @id = args[:id] if args.key?(:id) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @name = args[:name] if args.key?(:name) end end @@ -383,8 +383,8 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @photo = args[:photo] unless args[:photo].nil? + @name = args[:name] if args.key?(:name) + @photo = args[:photo] if args.key?(:photo) end end end diff --git a/generated/google/apis/appstate_v1.rb b/generated/google/apis/appstate_v1.rb index 32b69e473..f49eec3a6 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 = '20160119' + REVISION = '20160121' # View and manage your data for this application AUTH_APPSTATE = 'https://www.googleapis.com/auth/appstate' diff --git a/generated/google/apis/appstate_v1/classes.rb b/generated/google/apis/appstate_v1/classes.rb index 4d22ee0d7..93e08dc9e 100644 --- a/generated/google/apis/appstate_v1/classes.rb +++ b/generated/google/apis/appstate_v1/classes.rb @@ -53,10 +53,10 @@ module Google # Update properties of this object def update!(**args) - @current_state_version = args[:current_state_version] unless args[:current_state_version].nil? - @data = args[:data] unless args[:data].nil? - @kind = args[:kind] unless args[:kind].nil? - @state_key = args[:state_key] unless args[:state_key].nil? + @current_state_version = args[:current_state_version] if args.key?(:current_state_version) + @data = args[:data] if args.key?(:data) + @kind = args[:kind] if args.key?(:kind) + @state_key = args[:state_key] if args.key?(:state_key) end end @@ -86,9 +86,9 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @maximum_key_count = args[:maximum_key_count] unless args[:maximum_key_count].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @maximum_key_count = args[:maximum_key_count] if args.key?(:maximum_key_count) end end @@ -113,8 +113,8 @@ module Google # Update properties of this object def update!(**args) - @data = args[:data] unless args[:data].nil? - @kind = args[:kind] unless args[:kind].nil? + @data = args[:data] if args.key?(:data) + @kind = args[:kind] if args.key?(:kind) end end @@ -144,9 +144,9 @@ module Google # Update properties of this object def update!(**args) - @current_state_version = args[:current_state_version] unless args[:current_state_version].nil? - @kind = args[:kind] unless args[:kind].nil? - @state_key = args[:state_key] unless args[:state_key].nil? + @current_state_version = args[:current_state_version] if args.key?(:current_state_version) + @kind = args[:kind] if args.key?(:kind) + @state_key = args[:state_key] if args.key?(:state_key) end end end diff --git a/generated/google/apis/autoscaler_v1beta2/classes.rb b/generated/google/apis/autoscaler_v1beta2/classes.rb index 87dfaa87f..e2a9bb7e8 100644 --- a/generated/google/apis/autoscaler_v1beta2/classes.rb +++ b/generated/google/apis/autoscaler_v1beta2/classes.rb @@ -74,14 +74,14 @@ module Google # Update properties of this object def update!(**args) - @autoscaling_policy = args[:autoscaling_policy] unless args[:autoscaling_policy].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? - @self_link = args[:self_link] unless args[:self_link].nil? - @target = args[:target] unless args[:target].nil? + @autoscaling_policy = args[:autoscaling_policy] if args.key?(:autoscaling_policy) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @target = args[:target] if args.key?(:target) end end @@ -110,9 +110,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -160,12 +160,12 @@ module Google # Update properties of this object def update!(**args) - @cool_down_period_sec = args[:cool_down_period_sec] unless args[:cool_down_period_sec].nil? - @cpu_utilization = args[:cpu_utilization] unless args[:cpu_utilization].nil? - @custom_metric_utilizations = args[:custom_metric_utilizations] unless args[:custom_metric_utilizations].nil? - @load_balancing_utilization = args[:load_balancing_utilization] unless args[:load_balancing_utilization].nil? - @max_num_replicas = args[:max_num_replicas] unless args[:max_num_replicas].nil? - @min_num_replicas = args[:min_num_replicas] unless args[:min_num_replicas].nil? + @cool_down_period_sec = args[:cool_down_period_sec] if args.key?(:cool_down_period_sec) + @cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization) + @custom_metric_utilizations = args[:custom_metric_utilizations] if args.key?(:custom_metric_utilizations) + @load_balancing_utilization = args[:load_balancing_utilization] if args.key?(:load_balancing_utilization) + @max_num_replicas = args[:max_num_replicas] if args.key?(:max_num_replicas) + @min_num_replicas = args[:min_num_replicas] if args.key?(:min_num_replicas) end end @@ -187,7 +187,7 @@ module Google # Update properties of this object def update!(**args) - @utilization_target = args[:utilization_target] unless args[:utilization_target].nil? + @utilization_target = args[:utilization_target] if args.key?(:utilization_target) end end @@ -221,9 +221,9 @@ module Google # Update properties of this object def update!(**args) - @metric = args[:metric] unless args[:metric].nil? - @utilization_target = args[:utilization_target] unless args[:utilization_target].nil? - @utilization_target_type = args[:utilization_target_type] unless args[:utilization_target_type].nil? + @metric = args[:metric] if args.key?(:metric) + @utilization_target = args[:utilization_target] if args.key?(:utilization_target) + @utilization_target_type = args[:utilization_target_type] if args.key?(:utilization_target_type) end end @@ -247,7 +247,7 @@ module Google # Update properties of this object def update!(**args) - @utilization_target = args[:utilization_target] unless args[:utilization_target].nil? + @utilization_target = args[:utilization_target] if args.key?(:utilization_target) end end @@ -286,11 +286,11 @@ module Google # Update properties of this object def update!(**args) - @deleted = args[:deleted] unless args[:deleted].nil? - @deprecated = args[:deprecated] unless args[:deprecated].nil? - @obsolete = args[:obsolete] unless args[:obsolete].nil? - @replacement = args[:replacement] unless args[:replacement].nil? - @state = args[:state] unless args[:state].nil? + @deleted = args[:deleted] if args.key?(:deleted) + @deprecated = args[:deprecated] if args.key?(:deprecated) + @obsolete = args[:obsolete] if args.key?(:obsolete) + @replacement = args[:replacement] if args.key?(:replacement) + @state = args[:state] if args.key?(:state) end end @@ -415,28 +415,28 @@ module Google # 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? + @client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @end_time = args[:end_time] if args.key?(:end_time) + @error = args[:error] if args.key?(:error) + @http_error_message = args[:http_error_message] if args.key?(:http_error_message) + @http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code) + @id = args[:id] if args.key?(:id) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @progress = args[:progress] if args.key?(:progress) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @start_time = args[:start_time] if args.key?(:start_time) + @status = args[:status] if args.key?(:status) + @status_message = args[:status_message] if args.key?(:status_message) + @target_id = args[:target_id] if args.key?(:target_id) + @target_link = args[:target_link] if args.key?(:target_link) + @user = args[:user] if args.key?(:user) + @warnings = args[:warnings] if args.key?(:warnings) + @zone = args[:zone] if args.key?(:zone) end # @@ -454,7 +454,7 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? + @errors = args[:errors] if args.key?(:errors) end # @@ -482,9 +482,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @location = args[:location] if args.key?(:location) + @message = args[:message] if args.key?(:message) end end end @@ -514,9 +514,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -539,8 +539,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -582,11 +582,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -650,16 +650,16 @@ module Google # Update properties of this object def update!(**args) - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @deprecated = args[:deprecated] unless args[:deprecated].nil? - @description = args[:description] unless args[:description].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @maintenance_windows = args[:maintenance_windows] unless args[:maintenance_windows].nil? - @name = args[:name] unless args[:name].nil? - @region = args[:region] unless args[:region].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @status = args[:status] unless args[:status].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @deprecated = args[:deprecated] if args.key?(:deprecated) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @maintenance_windows = args[:maintenance_windows] if args.key?(:maintenance_windows) + @name = args[:name] if args.key?(:name) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) end # @@ -692,10 +692,10 @@ module Google # Update properties of this object def update!(**args) - @begin_time = args[:begin_time] unless args[:begin_time].nil? - @description = args[:description] unless args[:description].nil? - @end_time = args[:end_time] unless args[:end_time].nil? - @name = args[:name] unless args[:name].nil? + @begin_time = args[:begin_time] if args.key?(:begin_time) + @description = args[:description] if args.key?(:description) + @end_time = args[:end_time] if args.key?(:end_time) + @name = args[:name] if args.key?(:name) end end end @@ -735,11 +735,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end end diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index 405251815..0e0890f2a 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -84,12 +84,12 @@ module Google # Update properties of this object def update!(**args) - @allow_jagged_rows = args[:allow_jagged_rows] unless args[:allow_jagged_rows].nil? - @allow_quoted_newlines = args[:allow_quoted_newlines] unless args[:allow_quoted_newlines].nil? - @encoding = args[:encoding] unless args[:encoding].nil? - @field_delimiter = args[:field_delimiter] unless args[:field_delimiter].nil? - @quote = args[:quote] unless args[:quote].nil? - @skip_leading_rows = args[:skip_leading_rows] unless args[:skip_leading_rows].nil? + @allow_jagged_rows = args[:allow_jagged_rows] if args.key?(:allow_jagged_rows) + @allow_quoted_newlines = args[:allow_quoted_newlines] if args.key?(:allow_quoted_newlines) + @encoding = args[:encoding] if args.key?(:encoding) + @field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter) + @quote = args[:quote] if args.key?(:quote) + @skip_leading_rows = args[:skip_leading_rows] if args.key?(:skip_leading_rows) end end @@ -186,18 +186,18 @@ module Google # Update properties of this object def update!(**args) - @access = args[:access] unless args[:access].nil? - @creation_time = args[:creation_time] unless args[:creation_time].nil? - @dataset_reference = args[:dataset_reference] unless args[:dataset_reference].nil? - @default_table_expiration_ms = args[:default_table_expiration_ms] unless args[:default_table_expiration_ms].nil? - @description = args[:description] unless args[:description].nil? - @etag = args[:etag] unless args[:etag].nil? - @friendly_name = args[:friendly_name] unless args[:friendly_name].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_modified_time = args[:last_modified_time] unless args[:last_modified_time].nil? - @location = args[:location] unless args[:location].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @access = args[:access] if args.key?(:access) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @dataset_reference = args[:dataset_reference] if args.key?(:dataset_reference) + @default_table_expiration_ms = args[:default_table_expiration_ms] if args.key?(:default_table_expiration_ms) + @description = args[:description] if args.key?(:description) + @etag = args[:etag] if args.key?(:etag) + @friendly_name = args[:friendly_name] if args.key?(:friendly_name) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) + @location = args[:location] if args.key?(:location) + @self_link = args[:self_link] if args.key?(:self_link) end # @@ -251,12 +251,12 @@ module Google # Update properties of this object def update!(**args) - @domain = args[:domain] unless args[:domain].nil? - @group_by_email = args[:group_by_email] unless args[:group_by_email].nil? - @role = args[:role] unless args[:role].nil? - @special_group = args[:special_group] unless args[:special_group].nil? - @user_by_email = args[:user_by_email] unless args[:user_by_email].nil? - @view = args[:view] unless args[:view].nil? + @domain = args[:domain] if args.key?(:domain) + @group_by_email = args[:group_by_email] if args.key?(:group_by_email) + @role = args[:role] if args.key?(:role) + @special_group = args[:special_group] if args.key?(:special_group) + @user_by_email = args[:user_by_email] if args.key?(:user_by_email) + @view = args[:view] if args.key?(:view) end end end @@ -296,10 +296,10 @@ module Google # Update properties of this object def update!(**args) - @datasets = args[:datasets] unless args[:datasets].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? + @datasets = args[:datasets] if args.key?(:datasets) + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end # @@ -333,10 +333,10 @@ module Google # Update properties of this object def update!(**args) - @dataset_reference = args[:dataset_reference] unless args[:dataset_reference].nil? - @friendly_name = args[:friendly_name] unless args[:friendly_name].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? + @dataset_reference = args[:dataset_reference] if args.key?(:dataset_reference) + @friendly_name = args[:friendly_name] if args.key?(:friendly_name) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) end end end @@ -363,8 +363,8 @@ module Google # Update properties of this object def update!(**args) - @dataset_id = args[:dataset_id] unless args[:dataset_id].nil? - @project_id = args[:project_id] unless args[:project_id].nil? + @dataset_id = args[:dataset_id] if args.key?(:dataset_id) + @project_id = args[:project_id] if args.key?(:project_id) end end @@ -399,10 +399,10 @@ module Google # Update properties of this object def update!(**args) - @debug_info = args[:debug_info] unless args[:debug_info].nil? - @location = args[:location] unless args[:location].nil? - @message = args[:message] unless args[:message].nil? - @reason = args[:reason] unless args[:reason].nil? + @debug_info = args[:debug_info] if args.key?(:debug_info) + @location = args[:location] if args.key?(:location) + @message = args[:message] if args.key?(:message) + @reason = args[:reason] if args.key?(:reason) end end @@ -482,19 +482,19 @@ module Google # 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? + @compute_ratio_avg = args[:compute_ratio_avg] if args.key?(:compute_ratio_avg) + @compute_ratio_max = args[:compute_ratio_max] if args.key?(:compute_ratio_max) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @read_ratio_avg = args[:read_ratio_avg] if args.key?(:read_ratio_avg) + @read_ratio_max = args[:read_ratio_max] if args.key?(:read_ratio_max) + @records_read = args[:records_read] if args.key?(:records_read) + @records_written = args[:records_written] if args.key?(:records_written) + @steps = args[:steps] if args.key?(:steps) + @wait_ratio_avg = args[:wait_ratio_avg] if args.key?(:wait_ratio_avg) + @wait_ratio_max = args[:wait_ratio_max] if args.key?(:wait_ratio_max) + @write_ratio_avg = args[:write_ratio_avg] if args.key?(:write_ratio_avg) + @write_ratio_max = args[:write_ratio_max] if args.key?(:write_ratio_max) end end @@ -518,8 +518,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @substeps = args[:substeps] unless args[:substeps].nil? + @kind = args[:kind] if args.key?(:kind) + @substeps = args[:substeps] if args.key?(:substeps) end end @@ -589,13 +589,13 @@ module Google # Update properties of this object def update!(**args) - @compression = args[:compression] unless args[:compression].nil? - @csv_options = args[:csv_options] unless args[:csv_options].nil? - @ignore_unknown_values = args[:ignore_unknown_values] unless args[:ignore_unknown_values].nil? - @max_bad_records = args[:max_bad_records] unless args[:max_bad_records].nil? - @schema = args[:schema] unless args[:schema].nil? - @source_format = args[:source_format] unless args[:source_format].nil? - @source_uris = args[:source_uris] unless args[:source_uris].nil? + @compression = args[:compression] if args.key?(:compression) + @csv_options = args[:csv_options] if args.key?(:csv_options) + @ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values) + @max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records) + @schema = args[:schema] if args.key?(:schema) + @source_format = args[:source_format] if args.key?(:source_format) + @source_uris = args[:source_uris] if args.key?(:source_uris) end end @@ -678,17 +678,17 @@ 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? - @kind = args[:kind] unless args[:kind].nil? - @page_token = args[:page_token] unless args[:page_token].nil? - @rows = args[:rows] unless args[:rows].nil? - @schema = args[:schema] unless args[:schema].nil? - @total_bytes_processed = args[:total_bytes_processed] unless args[:total_bytes_processed].nil? - @total_rows = args[:total_rows] unless args[:total_rows].nil? + @cache_hit = args[:cache_hit] if args.key?(:cache_hit) + @errors = args[:errors] if args.key?(:errors) + @etag = args[:etag] if args.key?(:etag) + @job_complete = args[:job_complete] if args.key?(:job_complete) + @job_reference = args[:job_reference] if args.key?(:job_reference) + @kind = args[:kind] if args.key?(:kind) + @page_token = args[:page_token] if args.key?(:page_token) + @rows = args[:rows] if args.key?(:rows) + @schema = args[:schema] if args.key?(:schema) + @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed) + @total_rows = args[:total_rows] if args.key?(:total_rows) end end @@ -749,15 +749,15 @@ module Google # Update properties of this object def update!(**args) - @configuration = args[:configuration] unless args[:configuration].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @job_reference = args[:job_reference] unless args[:job_reference].nil? - @kind = args[:kind] unless args[:kind].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @statistics = args[:statistics] unless args[:statistics].nil? - @status = args[:status] unless args[:status].nil? - @user_email = args[:user_email] unless args[:user_email].nil? + @configuration = args[:configuration] if args.key?(:configuration) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @job_reference = args[:job_reference] if args.key?(:job_reference) + @kind = args[:kind] if args.key?(:kind) + @self_link = args[:self_link] if args.key?(:self_link) + @statistics = args[:statistics] if args.key?(:statistics) + @status = args[:status] if args.key?(:status) + @user_email = args[:user_email] if args.key?(:user_email) end end @@ -781,8 +781,8 @@ module Google # Update properties of this object def update!(**args) - @job = args[:job] unless args[:job].nil? - @kind = args[:kind] unless args[:kind].nil? + @job = args[:job] if args.key?(:job) + @kind = args[:kind] if args.key?(:kind) end end @@ -825,11 +825,11 @@ module Google # Update properties of this object def update!(**args) - @copy = args[:copy] unless args[:copy].nil? - @dry_run = args[:dry_run] unless args[:dry_run].nil? - @extract = args[:extract] unless args[:extract].nil? - @load = args[:load] unless args[:load].nil? - @query = args[:query] unless args[:query].nil? + @copy = args[:copy] if args.key?(:copy) + @dry_run = args[:dry_run] if args.key?(:dry_run) + @extract = args[:extract] if args.key?(:extract) + @load = args[:load] if args.key?(:load) + @query = args[:query] if args.key?(:query) end end @@ -885,13 +885,13 @@ module Google # Update properties of this object def update!(**args) - @compression = args[:compression] unless args[:compression].nil? - @destination_format = args[:destination_format] unless args[:destination_format].nil? - @destination_uri = args[:destination_uri] unless args[:destination_uri].nil? - @destination_uris = args[:destination_uris] unless args[:destination_uris].nil? - @field_delimiter = args[:field_delimiter] unless args[:field_delimiter].nil? - @print_header = args[:print_header] unless args[:print_header].nil? - @source_table = args[:source_table] unless args[:source_table].nil? + @compression = args[:compression] if args.key?(:compression) + @destination_format = args[:destination_format] if args.key?(:destination_format) + @destination_uri = args[:destination_uri] if args.key?(:destination_uri) + @destination_uris = args[:destination_uris] if args.key?(:destination_uris) + @field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter) + @print_header = args[:print_header] if args.key?(:print_header) + @source_table = args[:source_table] if args.key?(:source_table) end end @@ -1047,23 +1047,23 @@ module Google # Update properties of this object def update!(**args) - @allow_jagged_rows = args[:allow_jagged_rows] unless args[:allow_jagged_rows].nil? - @allow_quoted_newlines = args[:allow_quoted_newlines] unless args[:allow_quoted_newlines].nil? - @create_disposition = args[:create_disposition] unless args[:create_disposition].nil? - @destination_table = args[:destination_table] unless args[:destination_table].nil? - @encoding = args[:encoding] unless args[:encoding].nil? - @field_delimiter = args[:field_delimiter] unless args[:field_delimiter].nil? - @ignore_unknown_values = args[:ignore_unknown_values] unless args[:ignore_unknown_values].nil? - @max_bad_records = args[:max_bad_records] unless args[:max_bad_records].nil? - @projection_fields = args[:projection_fields] unless args[:projection_fields].nil? - @quote = args[:quote] unless args[:quote].nil? - @schema = args[:schema] unless args[:schema].nil? - @schema_inline = args[:schema_inline] unless args[:schema_inline].nil? - @schema_inline_format = args[:schema_inline_format] unless args[:schema_inline_format].nil? - @skip_leading_rows = args[:skip_leading_rows] unless args[:skip_leading_rows].nil? - @source_format = args[:source_format] unless args[:source_format].nil? - @source_uris = args[:source_uris] unless args[:source_uris].nil? - @write_disposition = args[:write_disposition] unless args[:write_disposition].nil? + @allow_jagged_rows = args[:allow_jagged_rows] if args.key?(:allow_jagged_rows) + @allow_quoted_newlines = args[:allow_quoted_newlines] if args.key?(:allow_quoted_newlines) + @create_disposition = args[:create_disposition] if args.key?(:create_disposition) + @destination_table = args[:destination_table] if args.key?(:destination_table) + @encoding = args[:encoding] if args.key?(:encoding) + @field_delimiter = args[:field_delimiter] if args.key?(:field_delimiter) + @ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values) + @max_bad_records = args[:max_bad_records] if args.key?(:max_bad_records) + @projection_fields = args[:projection_fields] if args.key?(:projection_fields) + @quote = args[:quote] if args.key?(:quote) + @schema = args[:schema] if args.key?(:schema) + @schema_inline = args[:schema_inline] if args.key?(:schema_inline) + @schema_inline_format = args[:schema_inline_format] if args.key?(:schema_inline_format) + @skip_leading_rows = args[:skip_leading_rows] if args.key?(:skip_leading_rows) + @source_format = args[:source_format] if args.key?(:source_format) + @source_uris = args[:source_uris] if args.key?(:source_uris) + @write_disposition = args[:write_disposition] if args.key?(:write_disposition) end end @@ -1171,19 +1171,19 @@ module Google # Update properties of this object def update!(**args) - @allow_large_results = args[:allow_large_results] unless args[:allow_large_results].nil? - @create_disposition = args[:create_disposition] unless args[:create_disposition].nil? - @default_dataset = args[:default_dataset] unless args[:default_dataset].nil? - @destination_table = args[:destination_table] unless args[:destination_table].nil? - @flatten_results = args[:flatten_results] unless args[:flatten_results].nil? - @maximum_billing_tier = args[:maximum_billing_tier] unless args[:maximum_billing_tier].nil? - @preserve_nulls = args[:preserve_nulls] unless args[:preserve_nulls].nil? - @priority = args[:priority] unless args[:priority].nil? - @query = args[:query] unless args[:query].nil? - @table_definitions = args[:table_definitions] unless args[:table_definitions].nil? - @use_query_cache = args[:use_query_cache] unless args[:use_query_cache].nil? - @user_defined_function_resources = args[:user_defined_function_resources] unless args[:user_defined_function_resources].nil? - @write_disposition = args[:write_disposition] unless args[:write_disposition].nil? + @allow_large_results = args[:allow_large_results] if args.key?(:allow_large_results) + @create_disposition = args[:create_disposition] if args.key?(:create_disposition) + @default_dataset = args[:default_dataset] if args.key?(:default_dataset) + @destination_table = args[:destination_table] if args.key?(:destination_table) + @flatten_results = args[:flatten_results] if args.key?(:flatten_results) + @maximum_billing_tier = args[:maximum_billing_tier] if args.key?(:maximum_billing_tier) + @preserve_nulls = args[:preserve_nulls] if args.key?(:preserve_nulls) + @priority = args[:priority] if args.key?(:priority) + @query = args[:query] if args.key?(:query) + @table_definitions = args[:table_definitions] if args.key?(:table_definitions) + @use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache) + @user_defined_function_resources = args[:user_defined_function_resources] if args.key?(:user_defined_function_resources) + @write_disposition = args[:write_disposition] if args.key?(:write_disposition) end end @@ -1234,11 +1234,11 @@ module Google # Update properties of this object def update!(**args) - @create_disposition = args[:create_disposition] unless args[:create_disposition].nil? - @destination_table = args[:destination_table] unless args[:destination_table].nil? - @source_table = args[:source_table] unless args[:source_table].nil? - @source_tables = args[:source_tables] unless args[:source_tables].nil? - @write_disposition = args[:write_disposition] unless args[:write_disposition].nil? + @create_disposition = args[:create_disposition] if args.key?(:create_disposition) + @destination_table = args[:destination_table] if args.key?(:destination_table) + @source_table = args[:source_table] if args.key?(:source_table) + @source_tables = args[:source_tables] if args.key?(:source_tables) + @write_disposition = args[:write_disposition] if args.key?(:write_disposition) end end @@ -1272,10 +1272,10 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @jobs = args[:jobs] unless args[:jobs].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @etag = args[:etag] if args.key?(:etag) + @jobs = args[:jobs] if args.key?(:jobs) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end # @@ -1335,15 +1335,15 @@ module Google # Update properties of this object def update!(**args) - @configuration = args[:configuration] unless args[:configuration].nil? - @error_result = args[:error_result] unless args[:error_result].nil? - @id = args[:id] unless args[:id].nil? - @job_reference = args[:job_reference] unless args[:job_reference].nil? - @kind = args[:kind] unless args[:kind].nil? - @state = args[:state] unless args[:state].nil? - @statistics = args[:statistics] unless args[:statistics].nil? - @status = args[:status] unless args[:status].nil? - @user_email = args[:user_email] unless args[:user_email].nil? + @configuration = args[:configuration] if args.key?(:configuration) + @error_result = args[:error_result] if args.key?(:error_result) + @id = args[:id] if args.key?(:id) + @job_reference = args[:job_reference] if args.key?(:job_reference) + @kind = args[:kind] if args.key?(:kind) + @state = args[:state] if args.key?(:state) + @statistics = args[:statistics] if args.key?(:statistics) + @status = args[:status] if args.key?(:status) + @user_email = args[:user_email] if args.key?(:user_email) end end end @@ -1370,8 +1370,8 @@ module Google # Update properties of this object def update!(**args) - @job_id = args[:job_id] unless args[:job_id].nil? - @project_id = args[:project_id] unless args[:project_id].nil? + @job_id = args[:job_id] if args.key?(:job_id) + @project_id = args[:project_id] if args.key?(:project_id) end end @@ -1425,13 +1425,13 @@ module Google # Update properties of this object def update!(**args) - @creation_time = args[:creation_time] unless args[:creation_time].nil? - @end_time = args[:end_time] unless args[:end_time].nil? - @extract = args[:extract] unless args[:extract].nil? - @load = args[:load] unless args[:load].nil? - @query = args[:query] unless args[:query].nil? - @start_time = args[:start_time] unless args[:start_time].nil? - @total_bytes_processed = args[:total_bytes_processed] unless args[:total_bytes_processed].nil? + @creation_time = args[:creation_time] if args.key?(:creation_time) + @end_time = args[:end_time] if args.key?(:end_time) + @extract = args[:extract] if args.key?(:extract) + @load = args[:load] if args.key?(:load) + @query = args[:query] if args.key?(:query) + @start_time = args[:start_time] if args.key?(:start_time) + @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed) end end @@ -1472,11 +1472,11 @@ 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? + @billing_tier = args[:billing_tier] if args.key?(:billing_tier) + @cache_hit = args[:cache_hit] if args.key?(:cache_hit) + @query_plan = args[:query_plan] if args.key?(:query_plan) + @total_bytes_billed = args[:total_bytes_billed] if args.key?(:total_bytes_billed) + @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed) end end @@ -1512,10 +1512,10 @@ module Google # Update properties of this object def update!(**args) - @input_file_bytes = args[:input_file_bytes] unless args[:input_file_bytes].nil? - @input_files = args[:input_files] unless args[:input_files].nil? - @output_bytes = args[:output_bytes] unless args[:output_bytes].nil? - @output_rows = args[:output_rows] unless args[:output_rows].nil? + @input_file_bytes = args[:input_file_bytes] if args.key?(:input_file_bytes) + @input_files = args[:input_files] if args.key?(:input_files) + @output_bytes = args[:output_bytes] if args.key?(:output_bytes) + @output_rows = args[:output_rows] if args.key?(:output_rows) end end @@ -1536,7 +1536,7 @@ module Google # Update properties of this object def update!(**args) - @destination_uri_file_counts = args[:destination_uri_file_counts] unless args[:destination_uri_file_counts].nil? + @destination_uri_file_counts = args[:destination_uri_file_counts] if args.key?(:destination_uri_file_counts) end end @@ -1567,9 +1567,9 @@ module Google # Update properties of this object def update!(**args) - @error_result = args[:error_result] unless args[:error_result].nil? - @errors = args[:errors] unless args[:errors].nil? - @state = args[:state] unless args[:state].nil? + @error_result = args[:error_result] if args.key?(:error_result) + @errors = args[:errors] if args.key?(:errors) + @state = args[:state] if args.key?(:state) end end @@ -1608,11 +1608,11 @@ module Google # Update properties of this object def update!(**args) - @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? - @projects = args[:projects] unless args[:projects].nil? - @total_items = args[:total_items] unless args[:total_items].nil? + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @projects = args[:projects] if args.key?(:projects) + @total_items = args[:total_items] if args.key?(:total_items) end # @@ -1650,11 +1650,11 @@ module Google # Update properties of this object def update!(**args) - @friendly_name = args[:friendly_name] unless args[:friendly_name].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @numeric_id = args[:numeric_id] unless args[:numeric_id].nil? - @project_reference = args[:project_reference] unless args[:project_reference].nil? + @friendly_name = args[:friendly_name] if args.key?(:friendly_name) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @numeric_id = args[:numeric_id] if args.key?(:numeric_id) + @project_reference = args[:project_reference] if args.key?(:project_reference) end end end @@ -1675,7 +1675,7 @@ module Google # Update properties of this object def update!(**args) - @project_id = args[:project_id] unless args[:project_id].nil? + @project_id = args[:project_id] if args.key?(:project_id) end end @@ -1750,14 +1750,14 @@ module Google # Update properties of this object def update!(**args) - @default_dataset = args[:default_dataset] unless args[:default_dataset].nil? - @dry_run = args[:dry_run] unless args[:dry_run].nil? - @kind = args[:kind] unless args[:kind].nil? - @max_results = args[:max_results] unless args[:max_results].nil? - @preserve_nulls = args[:preserve_nulls] unless args[:preserve_nulls].nil? - @query = args[:query] unless args[:query].nil? - @timeout_ms = args[:timeout_ms] unless args[:timeout_ms].nil? - @use_query_cache = args[:use_query_cache] unless args[:use_query_cache].nil? + @default_dataset = args[:default_dataset] if args.key?(:default_dataset) + @dry_run = args[:dry_run] if args.key?(:dry_run) + @kind = args[:kind] if args.key?(:kind) + @max_results = args[:max_results] if args.key?(:max_results) + @preserve_nulls = args[:preserve_nulls] if args.key?(:preserve_nulls) + @query = args[:query] if args.key?(:query) + @timeout_ms = args[:timeout_ms] if args.key?(:timeout_ms) + @use_query_cache = args[:use_query_cache] if args.key?(:use_query_cache) end end @@ -1834,16 +1834,16 @@ 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? - @page_token = args[:page_token] unless args[:page_token].nil? - @rows = args[:rows] unless args[:rows].nil? - @schema = args[:schema] unless args[:schema].nil? - @total_bytes_processed = args[:total_bytes_processed] unless args[:total_bytes_processed].nil? - @total_rows = args[:total_rows] unless args[:total_rows].nil? + @cache_hit = args[:cache_hit] if args.key?(:cache_hit) + @errors = args[:errors] if args.key?(:errors) + @job_complete = args[:job_complete] if args.key?(:job_complete) + @job_reference = args[:job_reference] if args.key?(:job_reference) + @kind = args[:kind] if args.key?(:kind) + @page_token = args[:page_token] if args.key?(:page_token) + @rows = args[:rows] if args.key?(:rows) + @schema = args[:schema] if args.key?(:schema) + @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed) + @total_rows = args[:total_rows] if args.key?(:total_rows) end end @@ -1875,9 +1875,9 @@ module Google # 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? + @estimated_bytes = args[:estimated_bytes] if args.key?(:estimated_bytes) + @estimated_rows = args[:estimated_rows] if args.key?(:estimated_rows) + @oldest_entry_time = args[:oldest_entry_time] if args.key?(:oldest_entry_time) end end @@ -1995,24 +1995,24 @@ module Google # Update properties of this object def update!(**args) - @creation_time = args[:creation_time] unless args[:creation_time].nil? - @description = args[:description] unless args[:description].nil? - @etag = args[:etag] unless args[:etag].nil? - @expiration_time = args[:expiration_time] unless args[:expiration_time].nil? - @external_data_configuration = args[:external_data_configuration] unless args[:external_data_configuration].nil? - @friendly_name = args[:friendly_name] unless args[:friendly_name].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_modified_time = args[:last_modified_time] unless args[:last_modified_time].nil? - @location = args[:location] unless args[:location].nil? - @num_bytes = args[:num_bytes] unless args[:num_bytes].nil? - @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? + @creation_time = args[:creation_time] if args.key?(:creation_time) + @description = args[:description] if args.key?(:description) + @etag = args[:etag] if args.key?(:etag) + @expiration_time = args[:expiration_time] if args.key?(:expiration_time) + @external_data_configuration = args[:external_data_configuration] if args.key?(:external_data_configuration) + @friendly_name = args[:friendly_name] if args.key?(:friendly_name) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) + @location = args[:location] if args.key?(:location) + @num_bytes = args[:num_bytes] if args.key?(:num_bytes) + @num_rows = args[:num_rows] if args.key?(:num_rows) + @schema = args[:schema] if args.key?(:schema) + @self_link = args[:self_link] if args.key?(:self_link) + @streaming_buffer = args[:streaming_buffer] if args.key?(:streaming_buffer) + @table_reference = args[:table_reference] if args.key?(:table_reference) + @type = args[:type] if args.key?(:type) + @view = args[:view] if args.key?(:view) end end @@ -2031,7 +2031,7 @@ module Google # Update properties of this object def update!(**args) - @v = args[:v] unless args[:v].nil? + @v = args[:v] if args.key?(:v) end end @@ -2080,11 +2080,11 @@ module Google # Update properties of this object def update!(**args) - @ignore_unknown_values = args[:ignore_unknown_values] unless args[:ignore_unknown_values].nil? - @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? + @ignore_unknown_values = args[:ignore_unknown_values] if args.key?(:ignore_unknown_values) + @kind = args[:kind] if args.key?(:kind) + @rows = args[:rows] if args.key?(:rows) + @skip_invalid_rows = args[:skip_invalid_rows] if args.key?(:skip_invalid_rows) + @template_suffix = args[:template_suffix] if args.key?(:template_suffix) end # @@ -2108,8 +2108,8 @@ module Google # Update properties of this object def update!(**args) - @insert_id = args[:insert_id] unless args[:insert_id].nil? - @json = args[:json] unless args[:json].nil? + @insert_id = args[:insert_id] if args.key?(:insert_id) + @json = args[:json] if args.key?(:json) end end end @@ -2134,8 +2134,8 @@ module Google # Update properties of this object def update!(**args) - @insert_errors = args[:insert_errors] unless args[:insert_errors].nil? - @kind = args[:kind] unless args[:kind].nil? + @insert_errors = args[:insert_errors] if args.key?(:insert_errors) + @kind = args[:kind] if args.key?(:kind) end # @@ -2158,8 +2158,8 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? - @index = args[:index] unless args[:index].nil? + @errors = args[:errors] if args.key?(:errors) + @index = args[:index] if args.key?(:index) end end end @@ -2201,11 +2201,11 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @kind = args[:kind] unless args[:kind].nil? - @page_token = args[:page_token] unless args[:page_token].nil? - @rows = args[:rows] unless args[:rows].nil? - @total_rows = args[:total_rows] unless args[:total_rows].nil? + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @page_token = args[:page_token] if args.key?(:page_token) + @rows = args[:rows] if args.key?(:rows) + @total_rows = args[:total_rows] if args.key?(:total_rows) end end @@ -2250,11 +2250,11 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @fields = args[:fields] unless args[:fields].nil? - @mode = args[:mode] unless args[:mode].nil? - @name = args[:name] unless args[:name].nil? - @type = args[:type] unless args[:type].nil? + @description = args[:description] if args.key?(:description) + @fields = args[:fields] if args.key?(:fields) + @mode = args[:mode] if args.key?(:mode) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) end end @@ -2293,11 +2293,11 @@ module Google # Update properties of this object def update!(**args) - @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? - @tables = args[:tables] unless args[:tables].nil? - @total_items = args[:total_items] unless args[:total_items].nil? + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @tables = args[:tables] if args.key?(:tables) + @total_items = args[:total_items] if args.key?(:total_items) end # @@ -2335,11 +2335,11 @@ module Google # Update properties of this object def update!(**args) - @friendly_name = args[:friendly_name] unless args[:friendly_name].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @table_reference = args[:table_reference] unless args[:table_reference].nil? - @type = args[:type] unless args[:type].nil? + @friendly_name = args[:friendly_name] if args.key?(:friendly_name) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @table_reference = args[:table_reference] if args.key?(:table_reference) + @type = args[:type] if args.key?(:type) end end end @@ -2370,9 +2370,9 @@ module Google # Update properties of this object def update!(**args) - @dataset_id = args[:dataset_id] unless args[:dataset_id].nil? - @project_id = args[:project_id] unless args[:project_id].nil? - @table_id = args[:table_id] unless args[:table_id].nil? + @dataset_id = args[:dataset_id] if args.key?(:dataset_id) + @project_id = args[:project_id] if args.key?(:project_id) + @table_id = args[:table_id] if args.key?(:table_id) end end @@ -2391,7 +2391,7 @@ module Google # Update properties of this object def update!(**args) - @f = args[:f] unless args[:f].nil? + @f = args[:f] if args.key?(:f) end end @@ -2410,7 +2410,7 @@ module Google # Update properties of this object def update!(**args) - @fields = args[:fields] unless args[:fields].nil? + @fields = args[:fields] if args.key?(:fields) end end @@ -2437,8 +2437,8 @@ module Google # Update properties of this object def update!(**args) - @inline_code = args[:inline_code] unless args[:inline_code].nil? - @resource_uri = args[:resource_uri] unless args[:resource_uri].nil? + @inline_code = args[:inline_code] if args.key?(:inline_code) + @resource_uri = args[:resource_uri] if args.key?(:resource_uri) end end @@ -2462,8 +2462,8 @@ 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? + @query = args[:query] if args.key?(:query) + @user_defined_function_resources = args[:user_defined_function_resources] if args.key?(:user_defined_function_resources) end end end diff --git a/generated/google/apis/blogger_v3/classes.rb b/generated/google/apis/blogger_v3/classes.rb index 7126bbfaa..a0291b0a7 100644 --- a/generated/google/apis/blogger_v3/classes.rb +++ b/generated/google/apis/blogger_v3/classes.rb @@ -97,19 +97,19 @@ module Google # Update properties of this object def update!(**args) - @custom_meta_data = args[:custom_meta_data] unless args[:custom_meta_data].nil? - @description = args[:description] unless args[:description].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @locale = args[:locale] unless args[:locale].nil? - @name = args[:name] unless args[:name].nil? - @pages = args[:pages] unless args[:pages].nil? - @posts = args[:posts] unless args[:posts].nil? - @published = args[:published] unless args[:published].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @status = args[:status] unless args[:status].nil? - @updated = args[:updated] unless args[:updated].nil? - @url = args[:url] unless args[:url].nil? + @custom_meta_data = args[:custom_meta_data] if args.key?(:custom_meta_data) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @locale = args[:locale] if args.key?(:locale) + @name = args[:name] if args.key?(:name) + @pages = args[:pages] if args.key?(:pages) + @posts = args[:posts] if args.key?(:posts) + @published = args[:published] if args.key?(:published) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) + @updated = args[:updated] if args.key?(:updated) + @url = args[:url] if args.key?(:url) end # The locale this Blog is set to. @@ -137,9 +137,9 @@ module Google # Update properties of this object def update!(**args) - @country = args[:country] unless args[:country].nil? - @language = args[:language] unless args[:language].nil? - @variant = args[:variant] unless args[:variant].nil? + @country = args[:country] if args.key?(:country) + @language = args[:language] if args.key?(:language) + @variant = args[:variant] if args.key?(:variant) end end @@ -163,8 +163,8 @@ module Google # Update properties of this object def update!(**args) - @self_link = args[:self_link] unless args[:self_link].nil? - @total_items = args[:total_items] unless args[:total_items].nil? + @self_link = args[:self_link] if args.key?(:self_link) + @total_items = args[:total_items] if args.key?(:total_items) end end @@ -193,9 +193,9 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @total_items = args[:total_items] unless args[:total_items].nil? + @items = args[:items] if args.key?(:items) + @self_link = args[:self_link] if args.key?(:self_link) + @total_items = args[:total_items] if args.key?(:total_items) end end end @@ -225,9 +225,9 @@ module Google # Update properties of this object def update!(**args) - @blog_user_infos = args[:blog_user_infos] unless args[:blog_user_infos].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @blog_user_infos = args[:blog_user_infos] if args.key?(:blog_user_infos) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -272,12 +272,12 @@ module Google # Update properties of this object def update!(**args) - @blog_id = args[:blog_id] unless args[:blog_id].nil? - @has_admin_access = args[:has_admin_access] unless args[:has_admin_access].nil? - @kind = args[:kind] unless args[:kind].nil? - @photos_album_key = args[:photos_album_key] unless args[:photos_album_key].nil? - @role = args[:role] unless args[:role].nil? - @user_id = args[:user_id] unless args[:user_id].nil? + @blog_id = args[:blog_id] if args.key?(:blog_id) + @has_admin_access = args[:has_admin_access] if args.key?(:has_admin_access) + @kind = args[:kind] if args.key?(:kind) + @photos_album_key = args[:photos_album_key] if args.key?(:photos_album_key) + @role = args[:role] if args.key?(:role) + @user_id = args[:user_id] if args.key?(:user_id) end end @@ -306,9 +306,9 @@ module Google # Update properties of this object def update!(**args) - @blog = args[:blog] unless args[:blog].nil? - @blog_user_info = args[:blog_user_info] unless args[:blog_user_info].nil? - @kind = args[:kind] unless args[:kind].nil? + @blog = args[:blog] if args.key?(:blog) + @blog_user_info = args[:blog_user_info] if args.key?(:blog_user_info) + @kind = args[:kind] if args.key?(:kind) end end @@ -377,17 +377,17 @@ module Google # Update properties of this object def update!(**args) - @author = args[:author] unless args[:author].nil? - @blog = args[:blog] unless args[:blog].nil? - @content = args[:content] unless args[:content].nil? - @id = args[:id] unless args[:id].nil? - @in_reply_to = args[:in_reply_to] unless args[:in_reply_to].nil? - @kind = args[:kind] unless args[:kind].nil? - @post = args[:post] unless args[:post].nil? - @published = args[:published] unless args[:published].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @status = args[:status] unless args[:status].nil? - @updated = args[:updated] unless args[:updated].nil? + @author = args[:author] if args.key?(:author) + @blog = args[:blog] if args.key?(:blog) + @content = args[:content] if args.key?(:content) + @id = args[:id] if args.key?(:id) + @in_reply_to = args[:in_reply_to] if args.key?(:in_reply_to) + @kind = args[:kind] if args.key?(:kind) + @post = args[:post] if args.key?(:post) + @published = args[:published] if args.key?(:published) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) + @updated = args[:updated] if args.key?(:updated) end # The author of this Comment. @@ -420,10 +420,10 @@ module Google # Update properties of this object def update!(**args) - @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? + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @image = args[:image] if args.key?(:image) + @url = args[:url] if args.key?(:url) end # The comment creator's avatar. @@ -441,7 +441,7 @@ module Google # Update properties of this object def update!(**args) - @url = args[:url] unless args[:url].nil? + @url = args[:url] if args.key?(:url) end end end @@ -461,7 +461,7 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? + @id = args[:id] if args.key?(:id) end end @@ -480,7 +480,7 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? + @id = args[:id] if args.key?(:id) end end @@ -499,7 +499,7 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? + @id = args[:id] if args.key?(:id) end end end @@ -539,11 +539,11 @@ module Google # 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? - @prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token) end end @@ -618,18 +618,18 @@ module Google # Update properties of this object def update!(**args) - @author = args[:author] unless args[:author].nil? - @blog = args[:blog] unless args[:blog].nil? - @content = args[:content] unless args[:content].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @published = args[:published] unless args[:published].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @status = args[:status] unless args[:status].nil? - @title = args[:title] unless args[:title].nil? - @updated = args[:updated] unless args[:updated].nil? - @url = args[:url] unless args[:url].nil? + @author = args[:author] if args.key?(:author) + @blog = args[:blog] if args.key?(:blog) + @content = args[:content] if args.key?(:content) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @published = args[:published] if args.key?(:published) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) + @title = args[:title] if args.key?(:title) + @updated = args[:updated] if args.key?(:updated) + @url = args[:url] if args.key?(:url) end # The author of this Page. @@ -662,10 +662,10 @@ module Google # Update properties of this object def update!(**args) - @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? + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @image = args[:image] if args.key?(:image) + @url = args[:url] if args.key?(:url) end # The page author's avatar. @@ -683,7 +683,7 @@ module Google # Update properties of this object def update!(**args) - @url = args[:url] unless args[:url].nil? + @url = args[:url] if args.key?(:url) end end end @@ -703,7 +703,7 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? + @id = args[:id] if args.key?(:id) end end end @@ -738,10 +738,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -770,9 +770,9 @@ module Google # Update properties of this object def update!(**args) - @blog_id = args[:blog_id] unless args[:blog_id].nil? - @counts = args[:counts] unless args[:counts].nil? - @kind = args[:kind] unless args[:kind].nil? + @blog_id = args[:blog_id] if args.key?(:blog_id) + @counts = args[:counts] if args.key?(:counts) + @kind = args[:kind] if args.key?(:kind) end # @@ -795,8 +795,8 @@ module Google # Update properties of this object def update!(**args) - @count = args[:count] unless args[:count].nil? - @time_range = args[:time_range] unless args[:time_range].nil? + @count = args[:count] if args.key?(:count) + @time_range = args[:time_range] if args.key?(:time_range) end end end @@ -906,25 +906,25 @@ module Google # Update properties of this object def update!(**args) - @author = args[:author] unless args[:author].nil? - @blog = args[:blog] unless args[:blog].nil? - @content = args[:content] unless args[:content].nil? - @custom_meta_data = args[:custom_meta_data] unless args[:custom_meta_data].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @images = args[:images] unless args[:images].nil? - @kind = args[:kind] unless args[:kind].nil? - @labels = args[:labels] unless args[:labels].nil? - @location = args[:location] unless args[:location].nil? - @published = args[:published] unless args[:published].nil? - @reader_comments = args[:reader_comments] unless args[:reader_comments].nil? - @replies = args[:replies] unless args[:replies].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @status = args[:status] unless args[:status].nil? - @title = args[:title] unless args[:title].nil? - @title_link = args[:title_link] unless args[:title_link].nil? - @updated = args[:updated] unless args[:updated].nil? - @url = args[:url] unless args[:url].nil? + @author = args[:author] if args.key?(:author) + @blog = args[:blog] if args.key?(:blog) + @content = args[:content] if args.key?(:content) + @custom_meta_data = args[:custom_meta_data] if args.key?(:custom_meta_data) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @images = args[:images] if args.key?(:images) + @kind = args[:kind] if args.key?(:kind) + @labels = args[:labels] if args.key?(:labels) + @location = args[:location] if args.key?(:location) + @published = args[:published] if args.key?(:published) + @reader_comments = args[:reader_comments] if args.key?(:reader_comments) + @replies = args[:replies] if args.key?(:replies) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) + @title = args[:title] if args.key?(:title) + @title_link = args[:title_link] if args.key?(:title_link) + @updated = args[:updated] if args.key?(:updated) + @url = args[:url] if args.key?(:url) end # The author of this Post. @@ -957,10 +957,10 @@ module Google # Update properties of this object def update!(**args) - @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? + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @image = args[:image] if args.key?(:image) + @url = args[:url] if args.key?(:url) end # The Post author's avatar. @@ -978,7 +978,7 @@ module Google # Update properties of this object def update!(**args) - @url = args[:url] unless args[:url].nil? + @url = args[:url] if args.key?(:url) end end end @@ -998,7 +998,7 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? + @id = args[:id] if args.key?(:id) end end @@ -1017,7 +1017,7 @@ module Google # Update properties of this object def update!(**args) - @url = args[:url] unless args[:url].nil? + @url = args[:url] if args.key?(:url) end end @@ -1051,10 +1051,10 @@ module Google # Update properties of this object def update!(**args) - @lat = args[:lat] unless args[:lat].nil? - @lng = args[:lng] unless args[:lng].nil? - @name = args[:name] unless args[:name].nil? - @span = args[:span] unless args[:span].nil? + @lat = args[:lat] if args.key?(:lat) + @lng = args[:lng] if args.key?(:lng) + @name = args[:name] if args.key?(:name) + @span = args[:span] if args.key?(:span) end end @@ -1083,9 +1083,9 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @total_items = args[:total_items] unless args[:total_items].nil? + @items = args[:items] if args.key?(:items) + @self_link = args[:self_link] if args.key?(:self_link) + @total_items = args[:total_items] if args.key?(:total_items) end end end @@ -1120,10 +1120,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1163,11 +1163,11 @@ module Google # Update properties of this object def update!(**args) - @blog_id = args[:blog_id] unless args[:blog_id].nil? - @has_edit_access = args[:has_edit_access] unless args[:has_edit_access].nil? - @kind = args[:kind] unless args[:kind].nil? - @post_id = args[:post_id] unless args[:post_id].nil? - @user_id = args[:user_id] unless args[:user_id].nil? + @blog_id = args[:blog_id] if args.key?(:blog_id) + @has_edit_access = args[:has_edit_access] if args.key?(:has_edit_access) + @kind = args[:kind] if args.key?(:kind) + @post_id = args[:post_id] if args.key?(:post_id) + @user_id = args[:user_id] if args.key?(:user_id) end end @@ -1196,9 +1196,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @post = args[:post] unless args[:post].nil? - @post_user_info = args[:post_user_info] unless args[:post_user_info].nil? + @kind = args[:kind] if args.key?(:kind) + @post = args[:post] if args.key?(:post) + @post_user_info = args[:post_user_info] if args.key?(:post_user_info) end end @@ -1227,9 +1227,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1288,15 +1288,15 @@ module Google # Update properties of this object def update!(**args) - @about = args[:about] unless args[:about].nil? - @blogs = args[:blogs] unless args[:blogs].nil? - @created = args[:created] unless args[:created].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @locale = args[:locale] unless args[:locale].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @url = args[:url] unless args[:url].nil? + @about = args[:about] if args.key?(:about) + @blogs = args[:blogs] if args.key?(:blogs) + @created = args[:created] if args.key?(:created) + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @locale = args[:locale] if args.key?(:locale) + @self_link = args[:self_link] if args.key?(:self_link) + @url = args[:url] if args.key?(:url) end # The container of blogs for this user. @@ -1314,7 +1314,7 @@ module Google # Update properties of this object def update!(**args) - @self_link = args[:self_link] unless args[:self_link].nil? + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -1343,9 +1343,9 @@ module Google # Update properties of this object def update!(**args) - @country = args[:country] unless args[:country].nil? - @language = args[:language] unless args[:language].nil? - @variant = args[:variant] unless args[:variant].nil? + @country = args[:country] if args.key?(:country) + @language = args[:language] if args.key?(:language) + @variant = args[:variant] if args.key?(:variant) end end end diff --git a/generated/google/apis/books_v1/classes.rb b/generated/google/apis/books_v1/classes.rb index e6e0277d5..9f3a86c05 100644 --- a/generated/google/apis/books_v1/classes.rb +++ b/generated/google/apis/books_v1/classes.rb @@ -120,23 +120,23 @@ module Google # Update properties of this object def update!(**args) - @after_selected_text = args[:after_selected_text] unless args[:after_selected_text].nil? - @before_selected_text = args[:before_selected_text] unless args[:before_selected_text].nil? - @client_version_ranges = args[:client_version_ranges] unless args[:client_version_ranges].nil? - @created = args[:created] unless args[:created].nil? - @current_version_ranges = args[:current_version_ranges] unless args[:current_version_ranges].nil? - @data = args[:data] unless args[:data].nil? - @deleted = args[:deleted] unless args[:deleted].nil? - @highlight_style = args[:highlight_style] unless args[:highlight_style].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @layer_id = args[:layer_id] unless args[:layer_id].nil? - @layer_summary = args[:layer_summary] unless args[:layer_summary].nil? - @page_ids = args[:page_ids] unless args[:page_ids].nil? - @selected_text = args[:selected_text] unless args[:selected_text].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @updated = args[:updated] unless args[:updated].nil? - @volume_id = args[:volume_id] unless args[:volume_id].nil? + @after_selected_text = args[:after_selected_text] if args.key?(:after_selected_text) + @before_selected_text = args[:before_selected_text] if args.key?(:before_selected_text) + @client_version_ranges = args[:client_version_ranges] if args.key?(:client_version_ranges) + @created = args[:created] if args.key?(:created) + @current_version_ranges = args[:current_version_ranges] if args.key?(:current_version_ranges) + @data = args[:data] if args.key?(:data) + @deleted = args[:deleted] if args.key?(:deleted) + @highlight_style = args[:highlight_style] if args.key?(:highlight_style) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @layer_id = args[:layer_id] if args.key?(:layer_id) + @layer_summary = args[:layer_summary] if args.key?(:layer_summary) + @page_ids = args[:page_ids] if args.key?(:page_ids) + @selected_text = args[:selected_text] if args.key?(:selected_text) + @self_link = args[:self_link] if args.key?(:self_link) + @updated = args[:updated] if args.key?(:updated) + @volume_id = args[:volume_id] if args.key?(:volume_id) end # Selection ranges sent from the client. @@ -174,11 +174,11 @@ module Google # Update properties of this object def update!(**args) - @cfi_range = args[:cfi_range] unless args[:cfi_range].nil? - @content_version = args[:content_version] unless args[:content_version].nil? - @gb_image_range = args[:gb_image_range] unless args[:gb_image_range].nil? - @gb_text_range = args[:gb_text_range] unless args[:gb_text_range].nil? - @image_cfi_range = args[:image_cfi_range] unless args[:image_cfi_range].nil? + @cfi_range = args[:cfi_range] if args.key?(:cfi_range) + @content_version = args[:content_version] if args.key?(:content_version) + @gb_image_range = args[:gb_image_range] if args.key?(:gb_image_range) + @gb_text_range = args[:gb_text_range] if args.key?(:gb_text_range) + @image_cfi_range = args[:image_cfi_range] if args.key?(:image_cfi_range) end end @@ -217,11 +217,11 @@ module Google # Update properties of this object def update!(**args) - @cfi_range = args[:cfi_range] unless args[:cfi_range].nil? - @content_version = args[:content_version] unless args[:content_version].nil? - @gb_image_range = args[:gb_image_range] unless args[:gb_image_range].nil? - @gb_text_range = args[:gb_text_range] unless args[:gb_text_range].nil? - @image_cfi_range = args[:image_cfi_range] unless args[:image_cfi_range].nil? + @cfi_range = args[:cfi_range] if args.key?(:cfi_range) + @content_version = args[:content_version] if args.key?(:content_version) + @gb_image_range = args[:gb_image_range] if args.key?(:gb_image_range) + @gb_text_range = args[:gb_text_range] if args.key?(:gb_text_range) + @image_cfi_range = args[:image_cfi_range] if args.key?(:image_cfi_range) end end @@ -251,9 +251,9 @@ module Google # Update properties of this object def update!(**args) - @allowed_character_count = args[:allowed_character_count] unless args[:allowed_character_count].nil? - @limit_type = args[:limit_type] unless args[:limit_type].nil? - @remaining_character_count = args[:remaining_character_count] unless args[:remaining_character_count].nil? + @allowed_character_count = args[:allowed_character_count] if args.key?(:allowed_character_count) + @limit_type = args[:limit_type] if args.key?(:limit_type) + @remaining_character_count = args[:remaining_character_count] if args.key?(:remaining_character_count) end end end @@ -314,15 +314,15 @@ module Google # Update properties of this object def update!(**args) - @annotation_type = args[:annotation_type] unless args[:annotation_type].nil? - @data = args[:data] unless args[:data].nil? - @encoded_data = args[:encoded_data] unless args[:encoded_data].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @layer_id = args[:layer_id] unless args[:layer_id].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @updated = args[:updated] unless args[:updated].nil? - @volume_id = args[:volume_id] unless args[:volume_id].nil? + @annotation_type = args[:annotation_type] if args.key?(:annotation_type) + @data = args[:data] if args.key?(:data) + @encoded_data = args[:encoded_data] if args.key?(:encoded_data) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @layer_id = args[:layer_id] if args.key?(:layer_id) + @self_link = args[:self_link] if args.key?(:self_link) + @updated = args[:updated] if args.key?(:updated) + @volume_id = args[:volume_id] if args.key?(:volume_id) end end @@ -358,10 +358,10 @@ module Google # 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? - @total_items = args[:total_items] unless args[:total_items].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @total_items = args[:total_items] if args.key?(:total_items) end end @@ -385,8 +385,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @layers = args[:layers] unless args[:layers].nil? + @kind = args[:kind] if args.key?(:kind) + @layers = args[:layers] if args.key?(:layers) end # @@ -424,11 +424,11 @@ module Google # Update properties of this object def update!(**args) - @allowed_character_count = args[:allowed_character_count] unless args[:allowed_character_count].nil? - @layer_id = args[:layer_id] unless args[:layer_id].nil? - @limit_type = args[:limit_type] unless args[:limit_type].nil? - @remaining_character_count = args[:remaining_character_count] unless args[:remaining_character_count].nil? - @updated = args[:updated] unless args[:updated].nil? + @allowed_character_count = args[:allowed_character_count] if args.key?(:allowed_character_count) + @layer_id = args[:layer_id] if args.key?(:layer_id) + @limit_type = args[:limit_type] if args.key?(:limit_type) + @remaining_character_count = args[:remaining_character_count] if args.key?(:remaining_character_count) + @updated = args[:updated] if args.key?(:updated) end end end @@ -464,10 +464,10 @@ module Google # 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? - @total_items = args[:total_items] unless args[:total_items].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @total_items = args[:total_items] if args.key?(:total_items) end end @@ -501,10 +501,10 @@ module Google # Update properties of this object def update!(**args) - @end_offset = args[:end_offset] unless args[:end_offset].nil? - @end_position = args[:end_position] unless args[:end_position].nil? - @start_offset = args[:start_offset] unless args[:start_offset].nil? - @start_position = args[:start_position] unless args[:start_position].nil? + @end_offset = args[:end_offset] if args.key?(:end_offset) + @end_position = args[:end_position] if args.key?(:end_position) + @start_offset = args[:start_offset] if args.key?(:start_offset) + @start_position = args[:start_position] if args.key?(:start_position) end end @@ -538,10 +538,10 @@ module Google # Update properties of this object def update!(**args) - @author = args[:author] unless args[:author].nil? - @processing_state = args[:processing_state] unless args[:processing_state].nil? - @title = args[:title] unless args[:title].nil? - @volume_id = args[:volume_id] unless args[:volume_id].nil? + @author = args[:author] if args.key?(:author) + @processing_state = args[:processing_state] if args.key?(:processing_state) + @title = args[:title] if args.key?(:title) + @volume_id = args[:volume_id] if args.key?(:volume_id) end end @@ -560,7 +560,7 @@ module Google # Update properties of this object def update!(**args) - @consistency_token = args[:consistency_token] unless args[:consistency_token].nil? + @consistency_token = args[:consistency_token] if args.key?(:consistency_token) end end @@ -627,16 +627,16 @@ module Google # Update properties of this object def update!(**args) - @access = args[:access] unless args[:access].nil? - @created = args[:created] unless args[:created].nil? - @description = args[:description] unless args[:description].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @title = args[:title] unless args[:title].nil? - @updated = args[:updated] unless args[:updated].nil? - @volume_count = args[:volume_count] unless args[:volume_count].nil? - @volumes_last_updated = args[:volumes_last_updated] unless args[:volumes_last_updated].nil? + @access = args[:access] if args.key?(:access) + @created = args[:created] if args.key?(:created) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @self_link = args[:self_link] if args.key?(:self_link) + @title = args[:title] if args.key?(:title) + @updated = args[:updated] if args.key?(:updated) + @volume_count = args[:volume_count] if args.key?(:volume_count) + @volumes_last_updated = args[:volumes_last_updated] if args.key?(:volumes_last_updated) end end @@ -660,8 +660,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -685,8 +685,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end # @@ -714,9 +714,9 @@ module Google # Update properties of this object def update!(**args) - @badge_url = args[:badge_url] unless args[:badge_url].nil? - @category_id = args[:category_id] unless args[:category_id].nil? - @name = args[:name] unless args[:name].nil? + @badge_url = args[:badge_url] if args.key?(:badge_url) + @category_id = args[:category_id] if args.key?(:category_id) + @name = args[:name] if args.key?(:name) end end end @@ -789,17 +789,17 @@ module Google # Update properties of this object def update!(**args) - @device_allowed = args[:device_allowed] unless args[:device_allowed].nil? - @kind = args[:kind] unless args[:kind].nil? - @max_concurrent_devices = args[:max_concurrent_devices] unless args[:max_concurrent_devices].nil? - @message = args[:message] unless args[:message].nil? - @nonce = args[:nonce] unless args[:nonce].nil? - @reason_code = args[:reason_code] unless args[:reason_code].nil? - @restricted = args[:restricted] unless args[:restricted].nil? - @signature = args[:signature] unless args[:signature].nil? - @source = args[:source] unless args[:source].nil? - @time_window_seconds = args[:time_window_seconds] unless args[:time_window_seconds].nil? - @volume_id = args[:volume_id] unless args[:volume_id].nil? + @device_allowed = args[:device_allowed] if args.key?(:device_allowed) + @kind = args[:kind] if args.key?(:kind) + @max_concurrent_devices = args[:max_concurrent_devices] if args.key?(:max_concurrent_devices) + @message = args[:message] if args.key?(:message) + @nonce = args[:nonce] if args.key?(:nonce) + @reason_code = args[:reason_code] if args.key?(:reason_code) + @restricted = args[:restricted] if args.key?(:restricted) + @signature = args[:signature] if args.key?(:signature) + @source = args[:source] if args.key?(:source) + @time_window_seconds = args[:time_window_seconds] if args.key?(:time_window_seconds) + @volume_id = args[:volume_id] if args.key?(:volume_id) end end @@ -828,9 +828,9 @@ module Google # Update properties of this object def update!(**args) - @common = args[:common] unless args[:common].nil? - @dict = args[:dict] unless args[:dict].nil? - @kind = args[:kind] unless args[:kind].nil? + @common = args[:common] if args.key?(:common) + @dict = args[:dict] if args.key?(:dict) + @kind = args[:kind] if args.key?(:kind) end # @@ -849,7 +849,7 @@ module Google # Update properties of this object def update!(**args) - @title = args[:title] unless args[:title].nil? + @title = args[:title] if args.key?(:title) end end @@ -873,8 +873,8 @@ module Google # Update properties of this object def update!(**args) - @source = args[:source] unless args[:source].nil? - @words = args[:words] unless args[:words].nil? + @source = args[:source] if args.key?(:source) + @words = args[:words] if args.key?(:words) end # The source, url and attribution for this dictionary data. @@ -897,8 +897,8 @@ module Google # Update properties of this object def update!(**args) - @attribution = args[:attribution] unless args[:attribution].nil? - @url = args[:url] unless args[:url].nil? + @attribution = args[:attribution] if args.key?(:attribution) + @url = args[:url] if args.key?(:url) end end @@ -933,10 +933,10 @@ module Google # Update properties of this object def update!(**args) - @derivatives = args[:derivatives] unless args[:derivatives].nil? - @examples = args[:examples] unless args[:examples].nil? - @senses = args[:senses] unless args[:senses].nil? - @source = args[:source] unless args[:source].nil? + @derivatives = args[:derivatives] if args.key?(:derivatives) + @examples = args[:examples] if args.key?(:examples) + @senses = args[:senses] if args.key?(:senses) + @source = args[:source] if args.key?(:source) end # @@ -959,8 +959,8 @@ module Google # Update properties of this object def update!(**args) - @source = args[:source] unless args[:source].nil? - @text = args[:text] unless args[:text].nil? + @source = args[:source] if args.key?(:source) + @text = args[:text] if args.key?(:text) end # @@ -983,8 +983,8 @@ module Google # Update properties of this object def update!(**args) - @attribution = args[:attribution] unless args[:attribution].nil? - @url = args[:url] unless args[:url].nil? + @attribution = args[:attribution] if args.key?(:attribution) + @url = args[:url] if args.key?(:url) end end end @@ -1009,8 +1009,8 @@ module Google # Update properties of this object def update!(**args) - @source = args[:source] unless args[:source].nil? - @text = args[:text] unless args[:text].nil? + @source = args[:source] if args.key?(:source) + @text = args[:text] if args.key?(:text) end # @@ -1033,8 +1033,8 @@ module Google # Update properties of this object def update!(**args) - @attribution = args[:attribution] unless args[:attribution].nil? - @url = args[:url] unless args[:url].nil? + @attribution = args[:attribution] if args.key?(:attribution) + @url = args[:url] if args.key?(:url) end end end @@ -1089,14 +1089,14 @@ module Google # Update properties of this object def update!(**args) - @conjugations = args[:conjugations] unless args[:conjugations].nil? - @definitions = args[:definitions] unless args[:definitions].nil? - @part_of_speech = args[:part_of_speech] unless args[:part_of_speech].nil? - @pronunciation = args[:pronunciation] unless args[:pronunciation].nil? - @pronunciation_url = args[:pronunciation_url] unless args[:pronunciation_url].nil? - @source = args[:source] unless args[:source].nil? - @syllabification = args[:syllabification] unless args[:syllabification].nil? - @synonyms = args[:synonyms] unless args[:synonyms].nil? + @conjugations = args[:conjugations] if args.key?(:conjugations) + @definitions = args[:definitions] if args.key?(:definitions) + @part_of_speech = args[:part_of_speech] if args.key?(:part_of_speech) + @pronunciation = args[:pronunciation] if args.key?(:pronunciation) + @pronunciation_url = args[:pronunciation_url] if args.key?(:pronunciation_url) + @source = args[:source] if args.key?(:source) + @syllabification = args[:syllabification] if args.key?(:syllabification) + @synonyms = args[:synonyms] if args.key?(:synonyms) end # @@ -1119,8 +1119,8 @@ module Google # Update properties of this object def update!(**args) - @type = args[:type] unless args[:type].nil? - @value = args[:value] unless args[:value].nil? + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) end end @@ -1144,8 +1144,8 @@ module Google # Update properties of this object def update!(**args) - @definition = args[:definition] unless args[:definition].nil? - @examples = args[:examples] unless args[:examples].nil? + @definition = args[:definition] if args.key?(:definition) + @examples = args[:examples] if args.key?(:examples) end # @@ -1168,8 +1168,8 @@ module Google # Update properties of this object def update!(**args) - @source = args[:source] unless args[:source].nil? - @text = args[:text] unless args[:text].nil? + @source = args[:source] if args.key?(:source) + @text = args[:text] if args.key?(:text) end # @@ -1192,8 +1192,8 @@ module Google # Update properties of this object def update!(**args) - @attribution = args[:attribution] unless args[:attribution].nil? - @url = args[:url] unless args[:url].nil? + @attribution = args[:attribution] if args.key?(:attribution) + @url = args[:url] if args.key?(:url) end end end @@ -1219,8 +1219,8 @@ module Google # Update properties of this object def update!(**args) - @attribution = args[:attribution] unless args[:attribution].nil? - @url = args[:url] unless args[:url].nil? + @attribution = args[:attribution] if args.key?(:attribution) + @url = args[:url] if args.key?(:url) end end @@ -1244,8 +1244,8 @@ module Google # Update properties of this object def update!(**args) - @source = args[:source] unless args[:source].nil? - @text = args[:text] unless args[:text].nil? + @source = args[:source] if args.key?(:source) + @text = args[:text] if args.key?(:text) end # @@ -1268,8 +1268,8 @@ module Google # Update properties of this object def update!(**args) - @attribution = args[:attribution] unless args[:attribution].nil? - @url = args[:url] unless args[:url].nil? + @attribution = args[:attribution] if args.key?(:attribution) + @url = args[:url] if args.key?(:url) end end end @@ -1296,8 +1296,8 @@ module Google # Update properties of this object def update!(**args) - @attribution = args[:attribution] unless args[:attribution].nil? - @url = args[:url] unless args[:url].nil? + @attribution = args[:attribution] if args.key?(:attribution) + @url = args[:url] if args.key?(:url) end end end @@ -1329,9 +1329,9 @@ module Google # 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? + @clusters = args[:clusters] if args.key?(:clusters) + @kind = args[:kind] if args.key?(:kind) + @total_clusters = args[:total_clusters] if args.key?(:total_clusters) end # @@ -1374,12 +1374,12 @@ module Google # 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? + @banner_with_content_container = args[:banner_with_content_container] if args.key?(:banner_with_content_container) + @sub_title = args[:sub_title] if args.key?(:sub_title) + @title = args[:title] if args.key?(:title) + @total_volumes = args[:total_volumes] if args.key?(:total_volumes) + @uid = args[:uid] if args.key?(:uid) + @volumes = args[:volumes] if args.key?(:volumes) end # @@ -1422,12 +1422,12 @@ module Google # 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? + @fill_color_argb = args[:fill_color_argb] if args.key?(:fill_color_argb) + @image_url = args[:image_url] if args.key?(:image_url) + @mask_color_argb = args[:mask_color_argb] if args.key?(:mask_color_argb) + @more_button_text = args[:more_button_text] if args.key?(:more_button_text) + @more_button_url = args[:more_button_url] if args.key?(:more_button_url) + @text_color_argb = args[:text_color_argb] if args.key?(:text_color_argb) end end end @@ -1510,18 +1510,18 @@ module Google # Update properties of this object def update!(**args) - @device_allowed = args[:device_allowed] unless args[:device_allowed].nil? - @downloads_acquired = args[:downloads_acquired] unless args[:downloads_acquired].nil? - @just_acquired = args[:just_acquired] unless args[:just_acquired].nil? - @kind = args[:kind] unless args[:kind].nil? - @max_download_devices = args[:max_download_devices] unless args[:max_download_devices].nil? - @message = args[:message] unless args[:message].nil? - @nonce = args[:nonce] unless args[:nonce].nil? - @reason_code = args[:reason_code] unless args[:reason_code].nil? - @restricted = args[:restricted] unless args[:restricted].nil? - @signature = args[:signature] unless args[:signature].nil? - @source = args[:source] unless args[:source].nil? - @volume_id = args[:volume_id] unless args[:volume_id].nil? + @device_allowed = args[:device_allowed] if args.key?(:device_allowed) + @downloads_acquired = args[:downloads_acquired] if args.key?(:downloads_acquired) + @just_acquired = args[:just_acquired] if args.key?(:just_acquired) + @kind = args[:kind] if args.key?(:kind) + @max_download_devices = args[:max_download_devices] if args.key?(:max_download_devices) + @message = args[:message] if args.key?(:message) + @nonce = args[:nonce] if args.key?(:nonce) + @reason_code = args[:reason_code] if args.key?(:reason_code) + @restricted = args[:restricted] if args.key?(:restricted) + @signature = args[:signature] if args.key?(:signature) + @source = args[:source] if args.key?(:source) + @volume_id = args[:volume_id] if args.key?(:volume_id) end end @@ -1545,8 +1545,8 @@ module Google # Update properties of this object def update!(**args) - @download_access_list = args[:download_access_list] unless args[:download_access_list].nil? - @kind = args[:kind] unless args[:kind].nil? + @download_access_list = args[:download_access_list] if args.key?(:download_access_list) + @kind = args[:kind] if args.key?(:kind) end end @@ -1575,9 +1575,9 @@ module Google # Update properties of this object def update!(**args) - @common = args[:common] unless args[:common].nil? - @geo = args[:geo] unless args[:geo].nil? - @kind = args[:kind] unless args[:kind].nil? + @common = args[:common] if args.key?(:common) + @geo = args[:geo] if args.key?(:geo) + @kind = args[:kind] if args.key?(:kind) end # @@ -1616,11 +1616,11 @@ module Google # Update properties of this object def update!(**args) - @lang = args[:lang] unless args[:lang].nil? - @preview_image_url = args[:preview_image_url] unless args[:preview_image_url].nil? - @snippet = args[:snippet] unless args[:snippet].nil? - @snippet_url = args[:snippet_url] unless args[:snippet_url].nil? - @title = args[:title] unless args[:title].nil? + @lang = args[:lang] if args.key?(:lang) + @preview_image_url = args[:preview_image_url] if args.key?(:preview_image_url) + @snippet = args[:snippet] if args.key?(:snippet) + @snippet_url = args[:snippet_url] if args.key?(:snippet_url) + @title = args[:title] if args.key?(:title) end end @@ -1680,14 +1680,14 @@ module Google # Update properties of this object def update!(**args) - @boundary = args[:boundary] unless args[:boundary].nil? - @cache_policy = args[:cache_policy] unless args[:cache_policy].nil? - @country_code = args[:country_code] unless args[:country_code].nil? - @latitude = args[:latitude] unless args[:latitude].nil? - @longitude = args[:longitude] unless args[:longitude].nil? - @map_type = args[:map_type] unless args[:map_type].nil? - @viewport = args[:viewport] unless args[:viewport].nil? - @zoom = args[:zoom] unless args[:zoom].nil? + @boundary = args[:boundary] if args.key?(:boundary) + @cache_policy = args[:cache_policy] if args.key?(:cache_policy) + @country_code = args[:country_code] if args.key?(:country_code) + @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) + @map_type = args[:map_type] if args.key?(:map_type) + @viewport = args[:viewport] if args.key?(:viewport) + @zoom = args[:zoom] if args.key?(:zoom) end # @@ -1710,8 +1710,8 @@ module Google # Update properties of this object def update!(**args) - @latitude = args[:latitude] unless args[:latitude].nil? - @longitude = args[:longitude] unless args[:longitude].nil? + @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) end end @@ -1736,8 +1736,8 @@ module Google # Update properties of this object def update!(**args) - @hi = args[:hi] unless args[:hi].nil? - @lo = args[:lo] unless args[:lo].nil? + @hi = args[:hi] if args.key?(:hi) + @lo = args[:lo] if args.key?(:lo) end # @@ -1760,8 +1760,8 @@ module Google # Update properties of this object def update!(**args) - @latitude = args[:latitude] unless args[:latitude].nil? - @longitude = args[:longitude] unless args[:longitude].nil? + @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) end end @@ -1785,8 +1785,8 @@ module Google # Update properties of this object def update!(**args) - @latitude = args[:latitude] unless args[:latitude].nil? - @longitude = args[:longitude] unless args[:longitude].nil? + @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) end end end @@ -1818,9 +1818,9 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @total_items = args[:total_items] unless args[:total_items].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @total_items = args[:total_items] if args.key?(:total_items) end end @@ -1902,19 +1902,19 @@ module Google # Update properties of this object def update!(**args) - @annotation_count = args[:annotation_count] unless args[:annotation_count].nil? - @annotation_types = args[:annotation_types] unless args[:annotation_types].nil? - @annotations_data_link = args[:annotations_data_link] unless args[:annotations_data_link].nil? - @annotations_link = args[:annotations_link] unless args[:annotations_link].nil? - @content_version = args[:content_version] unless args[:content_version].nil? - @data_count = args[:data_count] unless args[:data_count].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @layer_id = args[:layer_id] unless args[:layer_id].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @updated = args[:updated] unless args[:updated].nil? - @volume_annotations_version = args[:volume_annotations_version] unless args[:volume_annotations_version].nil? - @volume_id = args[:volume_id] unless args[:volume_id].nil? + @annotation_count = args[:annotation_count] if args.key?(:annotation_count) + @annotation_types = args[:annotation_types] if args.key?(:annotation_types) + @annotations_data_link = args[:annotations_data_link] if args.key?(:annotations_data_link) + @annotations_link = args[:annotations_link] if args.key?(:annotations_link) + @content_version = args[:content_version] if args.key?(:content_version) + @data_count = args[:data_count] if args.key?(:data_count) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @layer_id = args[:layer_id] if args.key?(:layer_id) + @self_link = args[:self_link] if args.key?(:self_link) + @updated = args[:updated] if args.key?(:updated) + @volume_annotations_version = args[:volume_annotations_version] if args.key?(:volume_annotations_version) + @volume_id = args[:volume_id] if args.key?(:volume_id) end end @@ -1938,8 +1938,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end # @@ -1977,11 +1977,11 @@ module Google # Update properties of this object def update!(**args) - @download_url = args[:download_url] unless args[:download_url].nil? - @encrypted_key = args[:encrypted_key] unless args[:encrypted_key].nil? - @language = args[:language] unless args[:language].nil? - @size = args[:size] unless args[:size].nil? - @version = args[:version] unless args[:version].nil? + @download_url = args[:download_url] if args.key?(:download_url) + @encrypted_key = args[:encrypted_key] if args.key?(:encrypted_key) + @language = args[:language] if args.key?(:language) + @size = args[:size] if args.key?(:size) + @version = args[:version] if args.key?(:version) end end end @@ -2043,15 +2043,15 @@ module Google # Update properties of this object def update!(**args) - @body = args[:body] unless args[:body].nil? - @dont_show_notification = args[:dont_show_notification] unless args[:dont_show_notification].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? - @pcampaign_id = args[:pcampaign_id] unless args[:pcampaign_id].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? + @body = args[:body] if args.key?(:body) + @dont_show_notification = args[:dont_show_notification] if args.key?(:dont_show_notification) + @icon_url = args[:icon_url] if args.key?(:icon_url) + @kind = args[:kind] if args.key?(:kind) + @notification_type = args[:notification_type] if args.key?(:notification_type) + @pcampaign_id = args[:pcampaign_id] if args.key?(:pcampaign_id) + @show_notification_settings_action = args[:show_notification_settings_action] if args.key?(:show_notification_settings_action) + @target_url = args[:target_url] if args.key?(:target_url) + @title = args[:title] if args.key?(:title) end end @@ -2075,8 +2075,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end # @@ -2109,10 +2109,10 @@ module Google # Update properties of this object def update!(**args) - @art_url = args[:art_url] unless args[:art_url].nil? - @gservices_key = args[:gservices_key] unless args[:gservices_key].nil? - @id = args[:id] unless args[:id].nil? - @items = args[:items] unless args[:items].nil? + @art_url = args[:art_url] if args.key?(:art_url) + @gservices_key = args[:gservices_key] if args.key?(:gservices_key) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) end # @@ -2155,12 +2155,12 @@ module Google # Update properties of this object def update!(**args) - @author = args[:author] unless args[:author].nil? - @canonical_volume_link = args[:canonical_volume_link] unless args[:canonical_volume_link].nil? - @cover_url = args[:cover_url] unless args[:cover_url].nil? - @description = args[:description] unless args[:description].nil? - @title = args[:title] unless args[:title].nil? - @volume_id = args[:volume_id] unless args[:volume_id].nil? + @author = args[:author] if args.key?(:author) + @canonical_volume_link = args[:canonical_volume_link] if args.key?(:canonical_volume_link) + @cover_url = args[:cover_url] if args.key?(:cover_url) + @description = args[:description] if args.key?(:description) + @title = args[:title] if args.key?(:title) + @volume_id = args[:volume_id] if args.key?(:volume_id) end end end @@ -2212,13 +2212,13 @@ module Google # Update properties of this object def update!(**args) - @epub_cfi_position = args[:epub_cfi_position] unless args[:epub_cfi_position].nil? - @gb_image_position = args[:gb_image_position] unless args[:gb_image_position].nil? - @gb_text_position = args[:gb_text_position] unless args[:gb_text_position].nil? - @kind = args[:kind] unless args[:kind].nil? - @pdf_position = args[:pdf_position] unless args[:pdf_position].nil? - @updated = args[:updated] unless args[:updated].nil? - @volume_id = args[:volume_id] unless args[:volume_id].nil? + @epub_cfi_position = args[:epub_cfi_position] if args.key?(:epub_cfi_position) + @gb_image_position = args[:gb_image_position] if args.key?(:gb_image_position) + @gb_text_position = args[:gb_text_position] if args.key?(:gb_text_position) + @kind = args[:kind] if args.key?(:kind) + @pdf_position = args[:pdf_position] if args.key?(:pdf_position) + @updated = args[:updated] if args.key?(:updated) + @volume_id = args[:volume_id] if args.key?(:volume_id) end end @@ -2247,9 +2247,9 @@ module Google # Update properties of this object def update!(**args) - @concurrent_access = args[:concurrent_access] unless args[:concurrent_access].nil? - @download_access = args[:download_access] unless args[:download_access].nil? - @kind = args[:kind] unless args[:kind].nil? + @concurrent_access = args[:concurrent_access] if args.key?(:concurrent_access) + @download_access = args[:download_access] if args.key?(:download_access) + @kind = args[:kind] if args.key?(:kind) end end @@ -2316,16 +2316,16 @@ module Google # Update properties of this object def update!(**args) - @author = args[:author] unless args[:author].nil? - @content = args[:content] unless args[:content].nil? - @date = args[:date] unless args[:date].nil? - @full_text_url = args[:full_text_url] unless args[:full_text_url].nil? - @kind = args[:kind] unless args[:kind].nil? - @rating = args[:rating] unless args[:rating].nil? - @source = args[:source] unless args[:source].nil? - @title = args[:title] unless args[:title].nil? - @type = args[:type] unless args[:type].nil? - @volume_id = args[:volume_id] unless args[:volume_id].nil? + @author = args[:author] if args.key?(:author) + @content = args[:content] if args.key?(:content) + @date = args[:date] if args.key?(:date) + @full_text_url = args[:full_text_url] if args.key?(:full_text_url) + @kind = args[:kind] if args.key?(:kind) + @rating = args[:rating] if args.key?(:rating) + @source = args[:source] if args.key?(:source) + @title = args[:title] if args.key?(:title) + @type = args[:type] if args.key?(:type) + @volume_id = args[:volume_id] if args.key?(:volume_id) end # Author of this review. @@ -2343,7 +2343,7 @@ module Google # Update properties of this object def update!(**args) - @display_name = args[:display_name] unless args[:display_name].nil? + @display_name = args[:display_name] if args.key?(:display_name) end end @@ -2373,9 +2373,9 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @extra_description = args[:extra_description] unless args[:extra_description].nil? - @url = args[:url] unless args[:url].nil? + @description = args[:description] if args.key?(:description) + @extra_description = args[:extra_description] if args.key?(:extra_description) + @url = args[:url] if args.key?(:url) end end end @@ -2400,8 +2400,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @series = args[:series] unless args[:series].nil? + @kind = args[:kind] if args.key?(:kind) + @series = args[:series] if args.key?(:series) end # @@ -2439,11 +2439,11 @@ module Google # 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? - @series_type = args[:series_type] unless args[:series_type].nil? - @title = args[:title] unless args[:title].nil? + @banner_image_url = args[:banner_image_url] if args.key?(:banner_image_url) + @image_url = args[:image_url] if args.key?(:image_url) + @series_id = args[:series_id] if args.key?(:series_id) + @series_type = args[:series_type] if args.key?(:series_type) + @title = args[:title] if args.key?(:title) end end end @@ -2473,9 +2473,9 @@ module Google # 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? + @kind = args[:kind] if args.key?(:kind) + @member = args[:member] if args.key?(:member) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -2504,9 +2504,9 @@ module Google # Update properties of this object 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? + @kind = args[:kind] if args.key?(:kind) + @notes_export = args[:notes_export] if args.key?(:notes_export) + @notification = args[:notification] if args.key?(:notification) end # User settings in sub-objects, each for different purposes. @@ -2530,8 +2530,8 @@ module Google # Update properties of this object def update!(**args) - @folder_name = args[:folder_name] unless args[:folder_name].nil? - @is_enabled = args[:is_enabled] unless args[:is_enabled].nil? + @folder_name = args[:folder_name] if args.key?(:folder_name) + @is_enabled = args[:is_enabled] if args.key?(:is_enabled) end end @@ -2550,7 +2550,7 @@ module Google # Update properties of this object def update!(**args) - @more_from_authors = args[:more_from_authors] unless args[:more_from_authors].nil? + @more_from_authors = args[:more_from_authors] if args.key?(:more_from_authors) end # @@ -2568,7 +2568,7 @@ module Google # Update properties of this object def update!(**args) - @opted_state = args[:opted_state] unless args[:opted_state].nil? + @opted_state = args[:opted_state] if args.key?(:opted_state) end end end @@ -2645,17 +2645,17 @@ module Google # Update properties of this object def update!(**args) - @access_info = args[:access_info] unless args[:access_info].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @layer_info = args[:layer_info] unless args[:layer_info].nil? - @recommended_info = args[:recommended_info] unless args[:recommended_info].nil? - @sale_info = args[:sale_info] unless args[:sale_info].nil? - @search_info = args[:search_info] unless args[:search_info].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @user_info = args[:user_info] unless args[:user_info].nil? - @volume_info = args[:volume_info] unless args[:volume_info].nil? + @access_info = args[:access_info] if args.key?(:access_info) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @layer_info = args[:layer_info] if args.key?(:layer_info) + @recommended_info = args[:recommended_info] if args.key?(:recommended_info) + @sale_info = args[:sale_info] if args.key?(:sale_info) + @search_info = args[:search_info] if args.key?(:search_info) + @self_link = args[:self_link] if args.key?(:self_link) + @user_info = args[:user_info] if args.key?(:user_info) + @volume_info = args[:volume_info] if args.key?(:volume_info) end # Any information about a volume related to reading or obtaining that volume @@ -2758,20 +2758,20 @@ module Google # Update properties of this object def update!(**args) - @access_view_status = args[:access_view_status] unless args[:access_view_status].nil? - @country = args[:country] unless args[:country].nil? - @download_access = args[:download_access] unless args[:download_access].nil? - @drive_imported_content_link = args[:drive_imported_content_link] unless args[:drive_imported_content_link].nil? - @embeddable = args[:embeddable] unless args[:embeddable].nil? - @epub = args[:epub] unless args[:epub].nil? - @explicit_offline_license_management = args[:explicit_offline_license_management] unless args[:explicit_offline_license_management].nil? - @pdf = args[:pdf] unless args[:pdf].nil? - @public_domain = args[:public_domain] unless args[:public_domain].nil? - @quote_sharing_allowed = args[:quote_sharing_allowed] unless args[:quote_sharing_allowed].nil? - @text_to_speech_permission = args[:text_to_speech_permission] unless args[:text_to_speech_permission].nil? - @view_order_url = args[:view_order_url] unless args[:view_order_url].nil? - @viewability = args[:viewability] unless args[:viewability].nil? - @web_reader_link = args[:web_reader_link] unless args[:web_reader_link].nil? + @access_view_status = args[:access_view_status] if args.key?(:access_view_status) + @country = args[:country] if args.key?(:country) + @download_access = args[:download_access] if args.key?(:download_access) + @drive_imported_content_link = args[:drive_imported_content_link] if args.key?(:drive_imported_content_link) + @embeddable = args[:embeddable] if args.key?(:embeddable) + @epub = args[:epub] if args.key?(:epub) + @explicit_offline_license_management = args[:explicit_offline_license_management] if args.key?(:explicit_offline_license_management) + @pdf = args[:pdf] if args.key?(:pdf) + @public_domain = args[:public_domain] if args.key?(:public_domain) + @quote_sharing_allowed = args[:quote_sharing_allowed] if args.key?(:quote_sharing_allowed) + @text_to_speech_permission = args[:text_to_speech_permission] if args.key?(:text_to_speech_permission) + @view_order_url = args[:view_order_url] if args.key?(:view_order_url) + @viewability = args[:viewability] if args.key?(:viewability) + @web_reader_link = args[:web_reader_link] if args.key?(:web_reader_link) end # Information about epub content. (In LITE projection.) @@ -2801,9 +2801,9 @@ module Google # Update properties of this object def update!(**args) - @acs_token_link = args[:acs_token_link] unless args[:acs_token_link].nil? - @download_link = args[:download_link] unless args[:download_link].nil? - @is_available = args[:is_available] unless args[:is_available].nil? + @acs_token_link = args[:acs_token_link] if args.key?(:acs_token_link) + @download_link = args[:download_link] if args.key?(:download_link) + @is_available = args[:is_available] if args.key?(:is_available) end end @@ -2834,9 +2834,9 @@ module Google # Update properties of this object def update!(**args) - @acs_token_link = args[:acs_token_link] unless args[:acs_token_link].nil? - @download_link = args[:download_link] unless args[:download_link].nil? - @is_available = args[:is_available] unless args[:is_available].nil? + @acs_token_link = args[:acs_token_link] if args.key?(:acs_token_link) + @download_link = args[:download_link] if args.key?(:download_link) + @is_available = args[:is_available] if args.key?(:is_available) end end end @@ -2856,7 +2856,7 @@ module Google # Update properties of this object def update!(**args) - @layers = args[:layers] unless args[:layers].nil? + @layers = args[:layers] if args.key?(:layers) end # @@ -2881,8 +2881,8 @@ module Google # Update properties of this object def update!(**args) - @layer_id = args[:layer_id] unless args[:layer_id].nil? - @volume_annotations_version = args[:volume_annotations_version] unless args[:volume_annotations_version].nil? + @layer_id = args[:layer_id] if args.key?(:layer_id) + @volume_annotations_version = args[:volume_annotations_version] if args.key?(:volume_annotations_version) end end end @@ -2902,7 +2902,7 @@ module Google # Update properties of this object def update!(**args) - @explanation = args[:explanation] unless args[:explanation].nil? + @explanation = args[:explanation] if args.key?(:explanation) end end @@ -2964,14 +2964,14 @@ module Google # Update properties of this object def update!(**args) - @buy_link = args[:buy_link] unless args[:buy_link].nil? - @country = args[:country] unless args[:country].nil? - @is_ebook = args[:is_ebook] unless args[:is_ebook].nil? - @list_price = args[:list_price] unless args[:list_price].nil? - @offers = args[:offers] unless args[:offers].nil? - @on_sale_date = args[:on_sale_date] unless args[:on_sale_date].nil? - @retail_price = args[:retail_price] unless args[:retail_price].nil? - @saleability = args[:saleability] unless args[:saleability].nil? + @buy_link = args[:buy_link] if args.key?(:buy_link) + @country = args[:country] if args.key?(:country) + @is_ebook = args[:is_ebook] if args.key?(:is_ebook) + @list_price = args[:list_price] if args.key?(:list_price) + @offers = args[:offers] if args.key?(:offers) + @on_sale_date = args[:on_sale_date] if args.key?(:on_sale_date) + @retail_price = args[:retail_price] if args.key?(:retail_price) + @saleability = args[:saleability] if args.key?(:saleability) end # Suggested retail price. (In LITE projection.) @@ -2994,8 +2994,8 @@ module Google # Update properties of this object def update!(**args) - @amount = args[:amount] unless args[:amount].nil? - @currency_code = args[:currency_code] unless args[:currency_code].nil? + @amount = args[:amount] if args.key?(:amount) + @currency_code = args[:currency_code] if args.key?(:currency_code) end end @@ -3029,10 +3029,10 @@ module Google # Update properties of this object def update!(**args) - @finsky_offer_type = args[:finsky_offer_type] unless args[:finsky_offer_type].nil? - @list_price = args[:list_price] unless args[:list_price].nil? - @rental_duration = args[:rental_duration] unless args[:rental_duration].nil? - @retail_price = args[:retail_price] unless args[:retail_price].nil? + @finsky_offer_type = args[:finsky_offer_type] if args.key?(:finsky_offer_type) + @list_price = args[:list_price] if args.key?(:list_price) + @rental_duration = args[:rental_duration] if args.key?(:rental_duration) + @retail_price = args[:retail_price] if args.key?(:retail_price) end # Offer list (=undiscounted) price in Micros. @@ -3055,8 +3055,8 @@ module Google # Update properties of this object def update!(**args) - @amount_in_micros = args[:amount_in_micros] unless args[:amount_in_micros].nil? - @currency_code = args[:currency_code] unless args[:currency_code].nil? + @amount_in_micros = args[:amount_in_micros] if args.key?(:amount_in_micros) + @currency_code = args[:currency_code] if args.key?(:currency_code) end end @@ -3080,8 +3080,8 @@ module Google # Update properties of this object def update!(**args) - @count = args[:count] unless args[:count].nil? - @unit = args[:unit] unless args[:unit].nil? + @count = args[:count] if args.key?(:count) + @unit = args[:unit] if args.key?(:unit) end end @@ -3105,8 +3105,8 @@ module Google # Update properties of this object def update!(**args) - @amount_in_micros = args[:amount_in_micros] unless args[:amount_in_micros].nil? - @currency_code = args[:currency_code] unless args[:currency_code].nil? + @amount_in_micros = args[:amount_in_micros] if args.key?(:amount_in_micros) + @currency_code = args[:currency_code] if args.key?(:currency_code) end end end @@ -3133,8 +3133,8 @@ module Google # Update properties of this object def update!(**args) - @amount = args[:amount] unless args[:amount].nil? - @currency_code = args[:currency_code] unless args[:currency_code].nil? + @amount = args[:amount] if args.key?(:amount) + @currency_code = args[:currency_code] if args.key?(:currency_code) end end end @@ -3154,7 +3154,7 @@ module Google # Update properties of this object def update!(**args) - @text_snippet = args[:text_snippet] unless args[:text_snippet].nil? + @text_snippet = args[:text_snippet] if args.key?(:text_snippet) end end @@ -3270,23 +3270,23 @@ module Google # Update properties of this object def update!(**args) - @acquired_time = args[:acquired_time] unless args[:acquired_time].nil? - @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_family_shared_from_user = args[:is_family_shared_from_user] unless args[:is_family_shared_from_user].nil? - @is_family_shared_to_user = args[:is_family_shared_to_user] unless args[:is_family_shared_to_user].nil? - @is_family_sharing_allowed = args[:is_family_sharing_allowed] unless args[:is_family_sharing_allowed].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? - @is_uploaded = args[:is_uploaded] unless args[:is_uploaded].nil? - @reading_position = args[:reading_position] unless args[:reading_position].nil? - @rental_period = args[:rental_period] unless args[:rental_period].nil? - @rental_state = args[:rental_state] unless args[:rental_state].nil? - @review = args[:review] unless args[:review].nil? - @updated = args[:updated] unless args[:updated].nil? - @user_uploaded_volume_info = args[:user_uploaded_volume_info] unless args[:user_uploaded_volume_info].nil? + @acquired_time = args[:acquired_time] if args.key?(:acquired_time) + @acquisition_type = args[:acquisition_type] if args.key?(:acquisition_type) + @copy = args[:copy] if args.key?(:copy) + @entitlement_type = args[:entitlement_type] if args.key?(:entitlement_type) + @is_family_shared_from_user = args[:is_family_shared_from_user] if args.key?(:is_family_shared_from_user) + @is_family_shared_to_user = args[:is_family_shared_to_user] if args.key?(:is_family_shared_to_user) + @is_family_sharing_allowed = args[:is_family_sharing_allowed] if args.key?(:is_family_sharing_allowed) + @is_in_my_books = args[:is_in_my_books] if args.key?(:is_in_my_books) + @is_preordered = args[:is_preordered] if args.key?(:is_preordered) + @is_purchased = args[:is_purchased] if args.key?(:is_purchased) + @is_uploaded = args[:is_uploaded] if args.key?(:is_uploaded) + @reading_position = args[:reading_position] if args.key?(:reading_position) + @rental_period = args[:rental_period] if args.key?(:rental_period) + @rental_state = args[:rental_state] if args.key?(:rental_state) + @review = args[:review] if args.key?(:review) + @updated = args[:updated] if args.key?(:updated) + @user_uploaded_volume_info = args[:user_uploaded_volume_info] if args.key?(:user_uploaded_volume_info) end # Copy/Paste accounting information. @@ -3319,10 +3319,10 @@ module Google # Update properties of this object def update!(**args) - @allowed_character_count = args[:allowed_character_count] unless args[:allowed_character_count].nil? - @limit_type = args[:limit_type] unless args[:limit_type].nil? - @remaining_character_count = args[:remaining_character_count] unless args[:remaining_character_count].nil? - @updated = args[:updated] unless args[:updated].nil? + @allowed_character_count = args[:allowed_character_count] if args.key?(:allowed_character_count) + @limit_type = args[:limit_type] if args.key?(:limit_type) + @remaining_character_count = args[:remaining_character_count] if args.key?(:remaining_character_count) + @updated = args[:updated] if args.key?(:updated) end end @@ -3346,8 +3346,8 @@ module Google # Update properties of this object def update!(**args) - @end_utc_sec = args[:end_utc_sec] unless args[:end_utc_sec].nil? - @start_utc_sec = args[:start_utc_sec] unless args[:start_utc_sec].nil? + @end_utc_sec = args[:end_utc_sec] if args.key?(:end_utc_sec) + @start_utc_sec = args[:start_utc_sec] if args.key?(:start_utc_sec) end end @@ -3366,7 +3366,7 @@ module Google # Update properties of this object def update!(**args) - @processing_state = args[:processing_state] unless args[:processing_state].nil? + @processing_state = args[:processing_state] if args.key?(:processing_state) end end end @@ -3519,32 +3519,32 @@ module Google # Update properties of this object def update!(**args) - @allow_anon_logging = args[:allow_anon_logging] unless args[:allow_anon_logging].nil? - @authors = args[:authors] unless args[:authors].nil? - @average_rating = args[:average_rating] unless args[:average_rating].nil? - @canonical_volume_link = args[:canonical_volume_link] unless args[:canonical_volume_link].nil? - @categories = args[:categories] unless args[:categories].nil? - @content_version = args[:content_version] unless args[:content_version].nil? - @description = args[:description] unless args[:description].nil? - @dimensions = args[:dimensions] unless args[:dimensions].nil? - @image_links = args[:image_links] unless args[:image_links].nil? - @industry_identifiers = args[:industry_identifiers] unless args[:industry_identifiers].nil? - @info_link = args[:info_link] unless args[:info_link].nil? - @language = args[:language] unless args[:language].nil? - @main_category = args[:main_category] unless args[:main_category].nil? - @maturity_rating = args[:maturity_rating] unless args[:maturity_rating].nil? - @page_count = args[:page_count] unless args[:page_count].nil? - @preview_link = args[:preview_link] unless args[:preview_link].nil? - @print_type = args[:print_type] unless args[:print_type].nil? - @printed_page_count = args[:printed_page_count] unless args[:printed_page_count].nil? - @published_date = args[:published_date] unless args[:published_date].nil? - @publisher = args[:publisher] unless args[:publisher].nil? - @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? + @allow_anon_logging = args[:allow_anon_logging] if args.key?(:allow_anon_logging) + @authors = args[:authors] if args.key?(:authors) + @average_rating = args[:average_rating] if args.key?(:average_rating) + @canonical_volume_link = args[:canonical_volume_link] if args.key?(:canonical_volume_link) + @categories = args[:categories] if args.key?(:categories) + @content_version = args[:content_version] if args.key?(:content_version) + @description = args[:description] if args.key?(:description) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @image_links = args[:image_links] if args.key?(:image_links) + @industry_identifiers = args[:industry_identifiers] if args.key?(:industry_identifiers) + @info_link = args[:info_link] if args.key?(:info_link) + @language = args[:language] if args.key?(:language) + @main_category = args[:main_category] if args.key?(:main_category) + @maturity_rating = args[:maturity_rating] if args.key?(:maturity_rating) + @page_count = args[:page_count] if args.key?(:page_count) + @preview_link = args[:preview_link] if args.key?(:preview_link) + @print_type = args[:print_type] if args.key?(:print_type) + @printed_page_count = args[:printed_page_count] if args.key?(:printed_page_count) + @published_date = args[:published_date] if args.key?(:published_date) + @publisher = args[:publisher] if args.key?(:publisher) + @ratings_count = args[:ratings_count] if args.key?(:ratings_count) + @reading_modes = args[:reading_modes] if args.key?(:reading_modes) + @sample_page_count = args[:sample_page_count] if args.key?(:sample_page_count) + @series_info = args[:series_info] if args.key?(:series_info) + @subtitle = args[:subtitle] if args.key?(:subtitle) + @title = args[:title] if args.key?(:title) end # Physical dimensions of this volume. @@ -3572,9 +3572,9 @@ module Google # Update properties of this object def update!(**args) - @height = args[:height] unless args[:height].nil? - @thickness = args[:thickness] unless args[:thickness].nil? - @width = args[:width] unless args[:width].nil? + @height = args[:height] if args.key?(:height) + @thickness = args[:thickness] if args.key?(:thickness) + @width = args[:width] if args.key?(:width) end end @@ -3619,12 +3619,12 @@ module Google # Update properties of this object def update!(**args) - @extra_large = args[:extra_large] unless args[:extra_large].nil? - @large = args[:large] unless args[:large].nil? - @medium = args[:medium] unless args[:medium].nil? - @small = args[:small] unless args[:small].nil? - @small_thumbnail = args[:small_thumbnail] unless args[:small_thumbnail].nil? - @thumbnail = args[:thumbnail] unless args[:thumbnail].nil? + @extra_large = args[:extra_large] if args.key?(:extra_large) + @large = args[:large] if args.key?(:large) + @medium = args[:medium] if args.key?(:medium) + @small = args[:small] if args.key?(:small) + @small_thumbnail = args[:small_thumbnail] if args.key?(:small_thumbnail) + @thumbnail = args[:thumbnail] if args.key?(:thumbnail) end end @@ -3648,8 +3648,8 @@ module Google # Update properties of this object def update!(**args) - @identifier = args[:identifier] unless args[:identifier].nil? - @type = args[:type] unless args[:type].nil? + @identifier = args[:identifier] if args.key?(:identifier) + @type = args[:type] if args.key?(:type) end end end @@ -3680,9 +3680,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -3768,20 +3768,20 @@ module Google # Update properties of this object def update!(**args) - @annotation_data_id = args[:annotation_data_id] unless args[:annotation_data_id].nil? - @annotation_data_link = args[:annotation_data_link] unless args[:annotation_data_link].nil? - @annotation_type = args[:annotation_type] unless args[:annotation_type].nil? - @content_ranges = args[:content_ranges] unless args[:content_ranges].nil? - @data = args[:data] unless args[:data].nil? - @deleted = args[:deleted] unless args[:deleted].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @layer_id = args[:layer_id] unless args[:layer_id].nil? - @page_ids = args[:page_ids] unless args[:page_ids].nil? - @selected_text = args[:selected_text] unless args[:selected_text].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @updated = args[:updated] unless args[:updated].nil? - @volume_id = args[:volume_id] unless args[:volume_id].nil? + @annotation_data_id = args[:annotation_data_id] if args.key?(:annotation_data_id) + @annotation_data_link = args[:annotation_data_link] if args.key?(:annotation_data_link) + @annotation_type = args[:annotation_type] if args.key?(:annotation_type) + @content_ranges = args[:content_ranges] if args.key?(:content_ranges) + @data = args[:data] if args.key?(:data) + @deleted = args[:deleted] if args.key?(:deleted) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @layer_id = args[:layer_id] if args.key?(:layer_id) + @page_ids = args[:page_ids] if args.key?(:page_ids) + @selected_text = args[:selected_text] if args.key?(:selected_text) + @self_link = args[:self_link] if args.key?(:self_link) + @updated = args[:updated] if args.key?(:updated) + @volume_id = args[:volume_id] if args.key?(:volume_id) end # The content ranges to identify the selected text. @@ -3814,10 +3814,10 @@ module Google # Update properties of this object def update!(**args) - @cfi_range = args[:cfi_range] unless args[:cfi_range].nil? - @content_version = args[:content_version] unless args[:content_version].nil? - @gb_image_range = args[:gb_image_range] unless args[:gb_image_range].nil? - @gb_text_range = args[:gb_text_range] unless args[:gb_text_range].nil? + @cfi_range = args[:cfi_range] if args.key?(:cfi_range) + @content_version = args[:content_version] if args.key?(:content_version) + @gb_image_range = args[:gb_image_range] if args.key?(:gb_image_range) + @gb_text_range = args[:gb_text_range] if args.key?(:gb_text_range) end end end @@ -3861,11 +3861,11 @@ module Google # 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? - @total_items = args[:total_items] unless args[:total_items].nil? - @version = args[:version] unless args[:version].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @total_items = args[:total_items] if args.key?(:total_items) + @version = args[:version] if args.key?(:version) end end @@ -3895,9 +3895,9 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @total_items = args[:total_items] unless args[:total_items].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @total_items = args[:total_items] if args.key?(:total_items) end end @@ -3932,10 +3932,10 @@ module Google # 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? + @book_display_number = args[:book_display_number] if args.key?(:book_display_number) + @kind = args[:kind] if args.key?(:kind) + @short_series_book_title = args[:short_series_book_title] if args.key?(:short_series_book_title) + @volume_series = args[:volume_series] if args.key?(:volume_series) end # @@ -3969,10 +3969,10 @@ module Google # 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? + @issue = args[:issue] if args.key?(:issue) + @order_number = args[:order_number] if args.key?(:order_number) + @series_book_type = args[:series_book_type] if args.key?(:series_book_type) + @series_id = args[:series_id] if args.key?(:series_id) end # @@ -3995,8 +3995,8 @@ module Google # 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? + @issue_display_number = args[:issue_display_number] if args.key?(:issue_display_number) + @issue_order_number = args[:issue_order_number] if args.key?(:issue_order_number) end end end diff --git a/generated/google/apis/calendar_v3.rb b/generated/google/apis/calendar_v3.rb index f15c2ba65..06980473e 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 = '20160104' + REVISION = '20160110' # 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 0fedf94d4..d9790dfcb 100644 --- a/generated/google/apis/calendar_v3/classes.rb +++ b/generated/google/apis/calendar_v3/classes.rb @@ -60,11 +60,11 @@ module Google # 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? - @next_sync_token = args[:next_sync_token] unless args[:next_sync_token].nil? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token) end end @@ -112,11 +112,11 @@ module Google # 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? - @role = args[:role] unless args[:role].nil? - @scope = args[:scope] unless args[:scope].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @role = args[:role] if args.key?(:role) + @scope = args[:scope] if args.key?(:scope) end # The scope of the rule. @@ -145,8 +145,8 @@ module Google # Update properties of this object def update!(**args) - @type = args[:type] unless args[:type].nil? - @value = args[:value] unless args[:value].nil? + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) end end end @@ -198,13 +198,13 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @location = args[:location] unless args[:location].nil? - @summary = args[:summary] unless args[:summary].nil? - @time_zone = args[:time_zone] unless args[:time_zone].nil? + @description = args[:description] if args.key?(:description) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @location = args[:location] if args.key?(:location) + @summary = args[:summary] if args.key?(:summary) + @time_zone = args[:time_zone] if args.key?(:time_zone) end end @@ -246,11 +246,11 @@ module Google # 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? - @next_sync_token = args[:next_sync_token] unless args[:next_sync_token].nil? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token) end end @@ -380,24 +380,24 @@ module Google # Update properties of this object def update!(**args) - @access_role = args[:access_role] unless args[:access_role].nil? - @background_color = args[:background_color] unless args[:background_color].nil? - @color_id = args[:color_id] unless args[:color_id].nil? - @default_reminders = args[:default_reminders] unless args[:default_reminders].nil? - @deleted = args[:deleted] unless args[:deleted].nil? - @description = args[:description] unless args[:description].nil? - @etag = args[:etag] unless args[:etag].nil? - @foreground_color = args[:foreground_color] unless args[:foreground_color].nil? - @hidden = args[:hidden] unless args[:hidden].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @location = args[:location] unless args[:location].nil? - @notification_settings = args[:notification_settings] unless args[:notification_settings].nil? - @primary = args[:primary] unless args[:primary].nil? - @selected = args[:selected] unless args[:selected].nil? - @summary = args[:summary] unless args[:summary].nil? - @summary_override = args[:summary_override] unless args[:summary_override].nil? - @time_zone = args[:time_zone] unless args[:time_zone].nil? + @access_role = args[:access_role] if args.key?(:access_role) + @background_color = args[:background_color] if args.key?(:background_color) + @color_id = args[:color_id] if args.key?(:color_id) + @default_reminders = args[:default_reminders] if args.key?(:default_reminders) + @deleted = args[:deleted] if args.key?(:deleted) + @description = args[:description] if args.key?(:description) + @etag = args[:etag] if args.key?(:etag) + @foreground_color = args[:foreground_color] if args.key?(:foreground_color) + @hidden = args[:hidden] if args.key?(:hidden) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @location = args[:location] if args.key?(:location) + @notification_settings = args[:notification_settings] if args.key?(:notification_settings) + @primary = args[:primary] if args.key?(:primary) + @selected = args[:selected] if args.key?(:selected) + @summary = args[:summary] if args.key?(:summary) + @summary_override = args[:summary_override] if args.key?(:summary_override) + @time_zone = args[:time_zone] if args.key?(:time_zone) end # The notifications that the authenticated user is receiving for this calendar. @@ -415,7 +415,7 @@ module Google # Update properties of this object def update!(**args) - @notifications = args[:notifications] unless args[:notifications].nil? + @notifications = args[:notifications] if args.key?(:notifications) end end end @@ -449,8 +449,8 @@ module Google # Update properties of this object def update!(**args) - @delivery_method = args[:delivery_method] unless args[:delivery_method].nil? - @type = args[:type] unless args[:type].nil? + @delivery_method = args[:delivery_method] if args.key?(:delivery_method) + @type = args[:type] if args.key?(:type) end end @@ -519,16 +519,16 @@ module Google # Update properties of this object def update!(**args) - @address = args[:address] unless args[:address].nil? - @expiration = args[:expiration] unless args[:expiration].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @params = args[:params] unless args[:params].nil? - @payload = args[:payload] unless args[:payload].nil? - @resource_id = args[:resource_id] unless args[:resource_id].nil? - @resource_uri = args[:resource_uri] unless args[:resource_uri].nil? - @token = args[:token] unless args[:token].nil? - @type = args[:type] unless args[:type].nil? + @address = args[:address] if args.key?(:address) + @expiration = args[:expiration] if args.key?(:expiration) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @params = args[:params] if args.key?(:params) + @payload = args[:payload] if args.key?(:payload) + @resource_id = args[:resource_id] if args.key?(:resource_id) + @resource_uri = args[:resource_uri] if args.key?(:resource_uri) + @token = args[:token] if args.key?(:token) + @type = args[:type] if args.key?(:type) end end @@ -553,8 +553,8 @@ module Google # Update properties of this object def update!(**args) - @background = args[:background] unless args[:background].nil? - @foreground = args[:foreground] unless args[:foreground].nil? + @background = args[:background] if args.key?(:background) + @foreground = args[:foreground] if args.key?(:foreground) end end @@ -593,10 +593,10 @@ module Google # Update properties of this object def update!(**args) - @calendar = args[:calendar] unless args[:calendar].nil? - @event = args[:event] unless args[:event].nil? - @kind = args[:kind] unless args[:kind].nil? - @updated = args[:updated] unless args[:updated].nil? + @calendar = args[:calendar] if args.key?(:calendar) + @event = args[:event] if args.key?(:event) + @kind = args[:kind] if args.key?(:kind) + @updated = args[:updated] if args.key?(:updated) end end @@ -628,8 +628,8 @@ module Google # Update properties of this object def update!(**args) - @domain = args[:domain] unless args[:domain].nil? - @reason = args[:reason] unless args[:reason].nil? + @domain = args[:domain] if args.key?(:domain) + @reason = args[:reason] if args.key?(:reason) end end @@ -900,43 +900,43 @@ module Google # Update properties of this object def update!(**args) - @anyone_can_add_self = args[:anyone_can_add_self] unless args[:anyone_can_add_self].nil? - @attachments = args[:attachments] unless args[:attachments].nil? - @attendees = args[:attendees] unless args[:attendees].nil? - @attendees_omitted = args[:attendees_omitted] unless args[:attendees_omitted].nil? - @color_id = args[:color_id] unless args[:color_id].nil? - @created = args[:created] unless args[:created].nil? - @creator = args[:creator] unless args[:creator].nil? - @description = args[:description] unless args[:description].nil? - @end = args[:end] unless args[:end].nil? - @end_time_unspecified = args[:end_time_unspecified] unless args[:end_time_unspecified].nil? - @etag = args[:etag] unless args[:etag].nil? - @extended_properties = args[:extended_properties] unless args[:extended_properties].nil? - @gadget = args[:gadget] unless args[:gadget].nil? - @guests_can_invite_others = args[:guests_can_invite_others] unless args[:guests_can_invite_others].nil? - @guests_can_modify = args[:guests_can_modify] unless args[:guests_can_modify].nil? - @guests_can_see_other_guests = args[:guests_can_see_other_guests] unless args[:guests_can_see_other_guests].nil? - @hangout_link = args[:hangout_link] unless args[:hangout_link].nil? - @html_link = args[:html_link] unless args[:html_link].nil? - @i_cal_uid = args[:i_cal_uid] unless args[:i_cal_uid].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @location = args[:location] unless args[:location].nil? - @locked = args[:locked] unless args[:locked].nil? - @organizer = args[:organizer] unless args[:organizer].nil? - @original_start_time = args[:original_start_time] unless args[:original_start_time].nil? - @private_copy = args[:private_copy] unless args[:private_copy].nil? - @recurrence = args[:recurrence] unless args[:recurrence].nil? - @recurring_event_id = args[:recurring_event_id] unless args[:recurring_event_id].nil? - @reminders = args[:reminders] unless args[:reminders].nil? - @sequence = args[:sequence] unless args[:sequence].nil? - @source = args[:source] unless args[:source].nil? - @start = args[:start] unless args[:start].nil? - @status = args[:status] unless args[:status].nil? - @summary = args[:summary] unless args[:summary].nil? - @transparency = args[:transparency] unless args[:transparency].nil? - @updated = args[:updated] unless args[:updated].nil? - @visibility = args[:visibility] unless args[:visibility].nil? + @anyone_can_add_self = args[:anyone_can_add_self] if args.key?(:anyone_can_add_self) + @attachments = args[:attachments] if args.key?(:attachments) + @attendees = args[:attendees] if args.key?(:attendees) + @attendees_omitted = args[:attendees_omitted] if args.key?(:attendees_omitted) + @color_id = args[:color_id] if args.key?(:color_id) + @created = args[:created] if args.key?(:created) + @creator = args[:creator] if args.key?(:creator) + @description = args[:description] if args.key?(:description) + @end = args[:end] if args.key?(:end) + @end_time_unspecified = args[:end_time_unspecified] if args.key?(:end_time_unspecified) + @etag = args[:etag] if args.key?(:etag) + @extended_properties = args[:extended_properties] if args.key?(:extended_properties) + @gadget = args[:gadget] if args.key?(:gadget) + @guests_can_invite_others = args[:guests_can_invite_others] if args.key?(:guests_can_invite_others) + @guests_can_modify = args[:guests_can_modify] if args.key?(:guests_can_modify) + @guests_can_see_other_guests = args[:guests_can_see_other_guests] if args.key?(:guests_can_see_other_guests) + @hangout_link = args[:hangout_link] if args.key?(:hangout_link) + @html_link = args[:html_link] if args.key?(:html_link) + @i_cal_uid = args[:i_cal_uid] if args.key?(:i_cal_uid) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @location = args[:location] if args.key?(:location) + @locked = args[:locked] if args.key?(:locked) + @organizer = args[:organizer] if args.key?(:organizer) + @original_start_time = args[:original_start_time] if args.key?(:original_start_time) + @private_copy = args[:private_copy] if args.key?(:private_copy) + @recurrence = args[:recurrence] if args.key?(:recurrence) + @recurring_event_id = args[:recurring_event_id] if args.key?(:recurring_event_id) + @reminders = args[:reminders] if args.key?(:reminders) + @sequence = args[:sequence] if args.key?(:sequence) + @source = args[:source] if args.key?(:source) + @start = args[:start] if args.key?(:start) + @status = args[:status] if args.key?(:status) + @summary = args[:summary] if args.key?(:summary) + @transparency = args[:transparency] if args.key?(:transparency) + @updated = args[:updated] if args.key?(:updated) + @visibility = args[:visibility] if args.key?(:visibility) end # The creator of the event. Read-only. @@ -972,10 +972,10 @@ module Google # Update properties of this object def update!(**args) - @display_name = args[:display_name] unless args[:display_name].nil? - @email = args[:email] unless args[:email].nil? - @id = args[:id] unless args[:id].nil? - @self = args[:self] unless args[:self].nil? + @display_name = args[:display_name] if args.key?(:display_name) + @email = args[:email] if args.key?(:email) + @id = args[:id] if args.key?(:id) + @self = args[:self] if args.key?(:self) end end @@ -1001,8 +1001,8 @@ module Google # Update properties of this object def update!(**args) - @private = args[:private] unless args[:private].nil? - @shared = args[:shared] unless args[:shared].nil? + @private = args[:private] if args.key?(:private) + @shared = args[:shared] if args.key?(:shared) end end @@ -1060,14 +1060,14 @@ module Google # Update properties of this object def update!(**args) - @display_mode = args[:display_mode] unless args[:display_mode].nil? - @height = args[:height] unless args[:height].nil? - @icon_link = args[:icon_link] unless args[:icon_link].nil? - @link = args[:link] unless args[:link].nil? - @preferences = args[:preferences] unless args[:preferences].nil? - @title = args[:title] unless args[:title].nil? - @type = args[:type] unless args[:type].nil? - @width = args[:width] unless args[:width].nil? + @display_mode = args[:display_mode] if args.key?(:display_mode) + @height = args[:height] if args.key?(:height) + @icon_link = args[:icon_link] if args.key?(:icon_link) + @link = args[:link] if args.key?(:link) + @preferences = args[:preferences] if args.key?(:preferences) + @title = args[:title] if args.key?(:title) + @type = args[:type] if args.key?(:type) + @width = args[:width] if args.key?(:width) end end @@ -1108,10 +1108,10 @@ module Google # Update properties of this object def update!(**args) - @display_name = args[:display_name] unless args[:display_name].nil? - @email = args[:email] unless args[:email].nil? - @id = args[:id] unless args[:id].nil? - @self = args[:self] unless args[:self].nil? + @display_name = args[:display_name] if args.key?(:display_name) + @email = args[:email] if args.key?(:email) + @id = args[:id] if args.key?(:id) + @self = args[:self] if args.key?(:self) end end @@ -1138,8 +1138,8 @@ module Google # Update properties of this object def update!(**args) - @overrides = args[:overrides] unless args[:overrides].nil? - @use_default = args[:use_default] unless args[:use_default].nil? + @overrides = args[:overrides] if args.key?(:overrides) + @use_default = args[:use_default] if args.key?(:use_default) end end @@ -1165,8 +1165,8 @@ module Google # Update properties of this object def update!(**args) - @title = args[:title] unless args[:title].nil? - @url = args[:url] unless args[:url].nil? + @title = args[:title] if args.key?(:title) + @url = args[:url] if args.key?(:url) end end end @@ -1210,11 +1210,11 @@ module Google # Update properties of this object def update!(**args) - @file_id = args[:file_id] unless args[:file_id].nil? - @file_url = args[:file_url] unless args[:file_url].nil? - @icon_link = args[:icon_link] unless args[:icon_link].nil? - @mime_type = args[:mime_type] unless args[:mime_type].nil? - @title = args[:title] unless args[:title].nil? + @file_id = args[:file_id] if args.key?(:file_id) + @file_url = args[:file_url] if args.key?(:file_url) + @icon_link = args[:icon_link] if args.key?(:icon_link) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @title = args[:title] if args.key?(:title) end end @@ -1290,16 +1290,16 @@ module Google # Update properties of this object def update!(**args) - @additional_guests = args[:additional_guests] unless args[:additional_guests].nil? - @comment = args[:comment] unless args[:comment].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @email = args[:email] unless args[:email].nil? - @id = args[:id] unless args[:id].nil? - @optional = args[:optional] unless args[:optional].nil? - @organizer = args[:organizer] unless args[:organizer].nil? - @resource = args[:resource] unless args[:resource].nil? - @response_status = args[:response_status] unless args[:response_status].nil? - @self = args[:self] unless args[:self].nil? + @additional_guests = args[:additional_guests] if args.key?(:additional_guests) + @comment = args[:comment] if args.key?(:comment) + @display_name = args[:display_name] if args.key?(:display_name) + @email = args[:email] if args.key?(:email) + @id = args[:id] if args.key?(:id) + @optional = args[:optional] if args.key?(:optional) + @organizer = args[:organizer] if args.key?(:organizer) + @resource = args[:resource] if args.key?(:resource) + @response_status = args[:response_status] if args.key?(:response_status) + @self = args[:self] if args.key?(:self) end end @@ -1334,9 +1334,9 @@ module Google # Update properties of this object def update!(**args) - @date = args[:date] unless args[:date].nil? - @date_time = args[:date_time] unless args[:date_time].nil? - @time_zone = args[:time_zone] unless args[:time_zone].nil? + @date = args[:date] if args.key?(:date) + @date_time = args[:date_time] if args.key?(:date_time) + @time_zone = args[:time_zone] if args.key?(:time_zone) end end @@ -1366,8 +1366,8 @@ module Google # Update properties of this object def update!(**args) - @reminder_method = args[:reminder_method] unless args[:reminder_method].nil? - @minutes = args[:minutes] unless args[:minutes].nil? + @reminder_method = args[:reminder_method] if args.key?(:reminder_method) + @minutes = args[:minutes] if args.key?(:minutes) end end @@ -1451,17 +1451,17 @@ module Google # Update properties of this object def update!(**args) - @access_role = args[:access_role] unless args[:access_role].nil? - @default_reminders = args[:default_reminders] unless args[:default_reminders].nil? - @description = args[:description] unless args[:description].nil? - @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? - @next_sync_token = args[:next_sync_token] unless args[:next_sync_token].nil? - @summary = args[:summary] unless args[:summary].nil? - @time_zone = args[:time_zone] unless args[:time_zone].nil? - @updated = args[:updated] unless args[:updated].nil? + @access_role = args[:access_role] if args.key?(:access_role) + @default_reminders = args[:default_reminders] if args.key?(:default_reminders) + @description = args[:description] if args.key?(:description) + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token) + @summary = args[:summary] if args.key?(:summary) + @time_zone = args[:time_zone] if args.key?(:time_zone) + @updated = args[:updated] if args.key?(:updated) end end @@ -1485,8 +1485,8 @@ module Google # Update properties of this object def update!(**args) - @busy = args[:busy] unless args[:busy].nil? - @errors = args[:errors] unless args[:errors].nil? + @busy = args[:busy] if args.key?(:busy) + @errors = args[:errors] if args.key?(:errors) end end @@ -1510,8 +1510,8 @@ module Google # Update properties of this object def update!(**args) - @calendars = args[:calendars] unless args[:calendars].nil? - @errors = args[:errors] unless args[:errors].nil? + @calendars = args[:calendars] if args.key?(:calendars) + @errors = args[:errors] if args.key?(:errors) end end @@ -1558,12 +1558,12 @@ module Google # Update properties of this object def update!(**args) - @calendar_expansion_max = args[:calendar_expansion_max] unless args[:calendar_expansion_max].nil? - @group_expansion_max = args[:group_expansion_max] unless args[:group_expansion_max].nil? - @items = args[:items] unless args[:items].nil? - @time_max = args[:time_max] unless args[:time_max].nil? - @time_min = args[:time_min] unless args[:time_min].nil? - @time_zone = args[:time_zone] unless args[:time_zone].nil? + @calendar_expansion_max = args[:calendar_expansion_max] if args.key?(:calendar_expansion_max) + @group_expansion_max = args[:group_expansion_max] if args.key?(:group_expansion_max) + @items = args[:items] if args.key?(:items) + @time_max = args[:time_max] if args.key?(:time_max) + @time_min = args[:time_min] if args.key?(:time_min) + @time_zone = args[:time_zone] if args.key?(:time_zone) end end @@ -1582,7 +1582,7 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? + @id = args[:id] if args.key?(:id) end end @@ -1621,11 +1621,11 @@ module Google # Update properties of this object def update!(**args) - @calendars = args[:calendars] unless args[:calendars].nil? - @groups = args[:groups] unless args[:groups].nil? - @kind = args[:kind] unless args[:kind].nil? - @time_max = args[:time_max] unless args[:time_max].nil? - @time_min = args[:time_min] unless args[:time_min].nil? + @calendars = args[:calendars] if args.key?(:calendars) + @groups = args[:groups] if args.key?(:groups) + @kind = args[:kind] if args.key?(:kind) + @time_max = args[:time_max] if args.key?(:time_max) + @time_min = args[:time_min] if args.key?(:time_min) end end @@ -1660,10 +1660,10 @@ module Google # 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? - @value = args[:value] unless args[:value].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @value = args[:value] if args.key?(:value) end end @@ -1705,11 +1705,11 @@ module Google # 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? - @next_sync_token = args[:next_sync_token] unless args[:next_sync_token].nil? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @next_sync_token = args[:next_sync_token] if args.key?(:next_sync_token) end end @@ -1733,8 +1733,8 @@ module Google # Update properties of this object def update!(**args) - @end = args[:end] unless args[:end].nil? - @start = args[:start] unless args[:start].nil? + @end = args[:end] if args.key?(:end) + @start = args[:start] if args.key?(:start) end end end diff --git a/generated/google/apis/civicinfo_v2/classes.rb b/generated/google/apis/civicinfo_v2/classes.rb index 9f309ba79..607f375a2 100644 --- a/generated/google/apis/civicinfo_v2/classes.rb +++ b/generated/google/apis/civicinfo_v2/classes.rb @@ -61,11 +61,11 @@ module Google # Update properties of this object def update!(**args) - @election_administration_body = args[:election_administration_body] unless args[:election_administration_body].nil? - @id = args[:id] unless args[:id].nil? - @local_jurisdiction = args[:local_jurisdiction] unless args[:local_jurisdiction].nil? - @name = args[:name] unless args[:name].nil? - @sources = args[:sources] unless args[:sources].nil? + @election_administration_body = args[:election_administration_body] if args.key?(:election_administration_body) + @id = args[:id] if args.key?(:id) + @local_jurisdiction = args[:local_jurisdiction] if args.key?(:local_jurisdiction) + @name = args[:name] if args.key?(:name) + @sources = args[:sources] if args.key?(:sources) end end @@ -150,19 +150,19 @@ module Google # Update properties of this object def update!(**args) - @absentee_voting_info_url = args[:absentee_voting_info_url] unless args[:absentee_voting_info_url].nil? - @ballot_info_url = args[:ballot_info_url] unless args[:ballot_info_url].nil? - @correspondence_address = args[:correspondence_address] unless args[:correspondence_address].nil? - @election_info_url = args[:election_info_url] unless args[:election_info_url].nil? - @election_officials = args[:election_officials] unless args[:election_officials].nil? - @election_registration_confirmation_url = args[:election_registration_confirmation_url] unless args[:election_registration_confirmation_url].nil? - @election_registration_url = args[:election_registration_url] unless args[:election_registration_url].nil? - @election_rules_url = args[:election_rules_url] unless args[:election_rules_url].nil? - @hours_of_operation = args[:hours_of_operation] unless args[:hours_of_operation].nil? - @name = args[:name] unless args[:name].nil? - @physical_address = args[:physical_address] unless args[:physical_address].nil? - @voter_services = args[:voter_services] unless args[:voter_services].nil? - @voting_location_finder_url = args[:voting_location_finder_url] unless args[:voting_location_finder_url].nil? + @absentee_voting_info_url = args[:absentee_voting_info_url] if args.key?(:absentee_voting_info_url) + @ballot_info_url = args[:ballot_info_url] if args.key?(:ballot_info_url) + @correspondence_address = args[:correspondence_address] if args.key?(:correspondence_address) + @election_info_url = args[:election_info_url] if args.key?(:election_info_url) + @election_officials = args[:election_officials] if args.key?(:election_officials) + @election_registration_confirmation_url = args[:election_registration_confirmation_url] if args.key?(:election_registration_confirmation_url) + @election_registration_url = args[:election_registration_url] if args.key?(:election_registration_url) + @election_rules_url = args[:election_rules_url] if args.key?(:election_rules_url) + @hours_of_operation = args[:hours_of_operation] if args.key?(:hours_of_operation) + @name = args[:name] if args.key?(:name) + @physical_address = args[:physical_address] if args.key?(:physical_address) + @voter_services = args[:voter_services] if args.key?(:voter_services) + @voting_location_finder_url = args[:voting_location_finder_url] if args.key?(:voting_location_finder_url) end end @@ -216,14 +216,14 @@ module Google # Update properties of this object def update!(**args) - @candidate_url = args[:candidate_url] unless args[:candidate_url].nil? - @channels = args[:channels] unless args[:channels].nil? - @email = args[:email] unless args[:email].nil? - @name = args[:name] unless args[:name].nil? - @order_on_ballot = args[:order_on_ballot] unless args[:order_on_ballot].nil? - @party = args[:party] unless args[:party].nil? - @phone = args[:phone] unless args[:phone].nil? - @photo_url = args[:photo_url] unless args[:photo_url].nil? + @candidate_url = args[:candidate_url] if args.key?(:candidate_url) + @channels = args[:channels] if args.key?(:channels) + @email = args[:email] if args.key?(:email) + @name = args[:name] if args.key?(:name) + @order_on_ballot = args[:order_on_ballot] if args.key?(:order_on_ballot) + @party = args[:party] if args.key?(:party) + @phone = args[:phone] if args.key?(:phone) + @photo_url = args[:photo_url] if args.key?(:photo_url) end end @@ -249,8 +249,8 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @type = args[:type] unless args[:type].nil? + @id = args[:id] if args.key?(:id) + @type = args[:type] if args.key?(:type) end end @@ -408,30 +408,30 @@ module Google # Update properties of this object def update!(**args) - @ballot_placement = args[:ballot_placement] unless args[:ballot_placement].nil? - @candidates = args[:candidates] unless args[:candidates].nil? - @district = args[:district] unless args[:district].nil? - @electorate_specifications = args[:electorate_specifications] unless args[:electorate_specifications].nil? - @id = args[:id] unless args[:id].nil? - @level = args[:level] unless args[:level].nil? - @number_elected = args[:number_elected] unless args[:number_elected].nil? - @number_voting_for = args[:number_voting_for] unless args[:number_voting_for].nil? - @office = args[:office] unless args[:office].nil? - @primary_party = args[:primary_party] unless args[:primary_party].nil? - @referendum_ballot_responses = args[:referendum_ballot_responses] unless args[:referendum_ballot_responses].nil? - @referendum_brief = args[:referendum_brief] unless args[:referendum_brief].nil? - @referendum_con_statement = args[:referendum_con_statement] unless args[:referendum_con_statement].nil? - @referendum_effect_of_abstain = args[:referendum_effect_of_abstain] unless args[:referendum_effect_of_abstain].nil? - @referendum_passage_threshold = args[:referendum_passage_threshold] unless args[:referendum_passage_threshold].nil? - @referendum_pro_statement = args[:referendum_pro_statement] unless args[:referendum_pro_statement].nil? - @referendum_subtitle = args[:referendum_subtitle] unless args[:referendum_subtitle].nil? - @referendum_text = args[:referendum_text] unless args[:referendum_text].nil? - @referendum_title = args[:referendum_title] unless args[:referendum_title].nil? - @referendum_url = args[:referendum_url] unless args[:referendum_url].nil? - @roles = args[:roles] unless args[:roles].nil? - @sources = args[:sources] unless args[:sources].nil? - @special = args[:special] unless args[:special].nil? - @type = args[:type] unless args[:type].nil? + @ballot_placement = args[:ballot_placement] if args.key?(:ballot_placement) + @candidates = args[:candidates] if args.key?(:candidates) + @district = args[:district] if args.key?(:district) + @electorate_specifications = args[:electorate_specifications] if args.key?(:electorate_specifications) + @id = args[:id] if args.key?(:id) + @level = args[:level] if args.key?(:level) + @number_elected = args[:number_elected] if args.key?(:number_elected) + @number_voting_for = args[:number_voting_for] if args.key?(:number_voting_for) + @office = args[:office] if args.key?(:office) + @primary_party = args[:primary_party] if args.key?(:primary_party) + @referendum_ballot_responses = args[:referendum_ballot_responses] if args.key?(:referendum_ballot_responses) + @referendum_brief = args[:referendum_brief] if args.key?(:referendum_brief) + @referendum_con_statement = args[:referendum_con_statement] if args.key?(:referendum_con_statement) + @referendum_effect_of_abstain = args[:referendum_effect_of_abstain] if args.key?(:referendum_effect_of_abstain) + @referendum_passage_threshold = args[:referendum_passage_threshold] if args.key?(:referendum_passage_threshold) + @referendum_pro_statement = args[:referendum_pro_statement] if args.key?(:referendum_pro_statement) + @referendum_subtitle = args[:referendum_subtitle] if args.key?(:referendum_subtitle) + @referendum_text = args[:referendum_text] if args.key?(:referendum_text) + @referendum_title = args[:referendum_title] if args.key?(:referendum_title) + @referendum_url = args[:referendum_url] if args.key?(:referendum_url) + @roles = args[:roles] if args.key?(:roles) + @sources = args[:sources] if args.key?(:sources) + @special = args[:special] if args.key?(:special) + @type = args[:type] if args.key?(:type) end end @@ -456,8 +456,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @results = args[:results] unless args[:results].nil? + @kind = args[:kind] if args.key?(:kind) + @results = args[:results] if args.key?(:results) end end @@ -490,9 +490,9 @@ module Google # Update properties of this object def update!(**args) - @aliases = args[:aliases] unless args[:aliases].nil? - @name = args[:name] unless args[:name].nil? - @ocd_id = args[:ocd_id] unless args[:ocd_id].nil? + @aliases = args[:aliases] if args.key?(:aliases) + @name = args[:name] if args.key?(:name) + @ocd_id = args[:ocd_id] if args.key?(:ocd_id) end end @@ -529,10 +529,10 @@ module Google # Update properties of this object def update!(**args) - @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? + @election_day = args[:election_day] if args.key?(:election_day) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @ocd_division_id = args[:ocd_division_id] if args.key?(:ocd_division_id) end end @@ -571,11 +571,11 @@ module Google # Update properties of this object def update!(**args) - @email_address = args[:email_address] unless args[:email_address].nil? - @fax_number = args[:fax_number] unless args[:fax_number].nil? - @name = args[:name] unless args[:name].nil? - @office_phone_number = args[:office_phone_number] unless args[:office_phone_number].nil? - @title = args[:title] unless args[:title].nil? + @email_address = args[:email_address] if args.key?(:email_address) + @fax_number = args[:fax_number] if args.key?(:fax_number) + @name = args[:name] if args.key?(:name) + @office_phone_number = args[:office_phone_number] if args.key?(:office_phone_number) + @title = args[:title] if args.key?(:title) end end @@ -600,8 +600,8 @@ module Google # Update properties of this object def update!(**args) - @elections = args[:elections] unless args[:elections].nil? - @kind = args[:kind] unless args[:kind].nil? + @elections = args[:elections] if args.key?(:elections) + @kind = args[:kind] if args.key?(:kind) end end @@ -634,9 +634,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @name = args[:name] unless args[:name].nil? - @scope = args[:scope] unless args[:scope].nil? + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @scope = args[:scope] if args.key?(:scope) end end @@ -675,9 +675,9 @@ module Google # Update properties of this object def update!(**args) - @also_known_as = args[:also_known_as] unless args[:also_known_as].nil? - @name = args[:name] unless args[:name].nil? - @office_indices = args[:office_indices] unless args[:office_indices].nil? + @also_known_as = args[:also_known_as] if args.key?(:also_known_as) + @name = args[:name] if args.key?(:name) + @office_indices = args[:office_indices] if args.key?(:office_indices) end end @@ -730,12 +730,12 @@ module Google # Update properties of this object def update!(**args) - @division_id = args[:division_id] unless args[:division_id].nil? - @levels = args[:levels] unless args[:levels].nil? - @name = args[:name] unless args[:name].nil? - @official_indices = args[:official_indices] unless args[:official_indices].nil? - @roles = args[:roles] unless args[:roles].nil? - @sources = args[:sources] unless args[:sources].nil? + @division_id = args[:division_id] if args.key?(:division_id) + @levels = args[:levels] if args.key?(:levels) + @name = args[:name] if args.key?(:name) + @official_indices = args[:official_indices] if args.key?(:official_indices) + @roles = args[:roles] if args.key?(:roles) + @sources = args[:sources] if args.key?(:sources) end end @@ -789,14 +789,14 @@ module Google # Update properties of this object def update!(**args) - @address = args[:address] unless args[:address].nil? - @channels = args[:channels] unless args[:channels].nil? - @emails = args[:emails] unless args[:emails].nil? - @name = args[:name] unless args[:name].nil? - @party = args[:party] unless args[:party].nil? - @phones = args[:phones] unless args[:phones].nil? - @photo_url = args[:photo_url] unless args[:photo_url].nil? - @urls = args[:urls] unless args[:urls].nil? + @address = args[:address] if args.key?(:address) + @channels = args[:channels] if args.key?(:channels) + @emails = args[:emails] if args.key?(:emails) + @name = args[:name] if args.key?(:name) + @party = args[:party] if args.key?(:party) + @phones = args[:phones] if args.key?(:phones) + @photo_url = args[:photo_url] if args.key?(:photo_url) + @urls = args[:urls] if args.key?(:urls) end end @@ -863,15 +863,15 @@ module Google # Update properties of this object def update!(**args) - @address = args[:address] unless args[:address].nil? - @end_date = args[:end_date] unless args[:end_date].nil? - @id = args[:id] unless args[:id].nil? - @name = args[:name] unless args[:name].nil? - @notes = args[:notes] unless args[:notes].nil? - @polling_hours = args[:polling_hours] unless args[:polling_hours].nil? - @sources = args[:sources] unless args[:sources].nil? - @start_date = args[:start_date] unless args[:start_date].nil? - @voter_services = args[:voter_services] unless args[:voter_services].nil? + @address = args[:address] if args.key?(:address) + @end_date = args[:end_date] if args.key?(:end_date) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @notes = args[:notes] if args.key?(:notes) + @polling_hours = args[:polling_hours] if args.key?(:polling_hours) + @sources = args[:sources] if args.key?(:sources) + @start_date = args[:start_date] if args.key?(:start_date) + @voter_services = args[:voter_services] if args.key?(:voter_services) end end @@ -902,9 +902,9 @@ module Google # Update properties of this object def update!(**args) - @divisions = args[:divisions] unless args[:divisions].nil? - @offices = args[:offices] unless args[:offices].nil? - @officials = args[:officials] unless args[:officials].nil? + @divisions = args[:divisions] if args.key?(:divisions) + @offices = args[:offices] if args.key?(:offices) + @officials = args[:officials] if args.key?(:officials) end end @@ -946,11 +946,11 @@ module Google # Update properties of this object def update!(**args) - @divisions = args[:divisions] unless args[:divisions].nil? - @kind = args[:kind] unless args[:kind].nil? - @normalized_input = args[:normalized_input] unless args[:normalized_input].nil? - @offices = args[:offices] unless args[:offices].nil? - @officials = args[:officials] unless args[:officials].nil? + @divisions = args[:divisions] if args.key?(:divisions) + @kind = args[:kind] if args.key?(:kind) + @normalized_input = args[:normalized_input] if args.key?(:normalized_input) + @offices = args[:offices] if args.key?(:offices) + @officials = args[:officials] if args.key?(:officials) end end @@ -999,13 +999,13 @@ module Google # Update properties of this object def update!(**args) - @city = args[:city] unless args[:city].nil? - @line1 = args[:line1] unless args[:line1].nil? - @line2 = args[:line2] unless args[:line2].nil? - @line3 = args[:line3] unless args[:line3].nil? - @location_name = args[:location_name] unless args[:location_name].nil? - @state = args[:state] unless args[:state].nil? - @zip = args[:zip] unless args[:zip].nil? + @city = args[:city] if args.key?(:city) + @line1 = args[:line1] if args.key?(:line1) + @line2 = args[:line2] if args.key?(:line2) + @line3 = args[:line3] if args.key?(:line3) + @location_name = args[:location_name] if args.key?(:location_name) + @state = args[:state] if args.key?(:state) + @zip = args[:zip] if args.key?(:zip) end end @@ -1030,8 +1030,8 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @official = args[:official] unless args[:official].nil? + @name = args[:name] if args.key?(:name) + @official = args[:official] if args.key?(:official) end end @@ -1109,17 +1109,17 @@ module Google # Update properties of this object def update!(**args) - @contests = args[:contests] unless args[:contests].nil? - @drop_off_locations = args[:drop_off_locations] unless args[:drop_off_locations].nil? - @early_vote_sites = args[:early_vote_sites] unless args[:early_vote_sites].nil? - @election = args[:election] unless args[:election].nil? - @kind = args[:kind] unless args[:kind].nil? - @mail_only = args[:mail_only] unless args[:mail_only].nil? - @normalized_input = args[:normalized_input] unless args[:normalized_input].nil? - @other_elections = args[:other_elections] unless args[:other_elections].nil? - @polling_locations = args[:polling_locations] unless args[:polling_locations].nil? - @precinct_id = args[:precinct_id] unless args[:precinct_id].nil? - @state = args[:state] unless args[:state].nil? + @contests = args[:contests] if args.key?(:contests) + @drop_off_locations = args[:drop_off_locations] if args.key?(:drop_off_locations) + @early_vote_sites = args[:early_vote_sites] if args.key?(:early_vote_sites) + @election = args[:election] if args.key?(:election) + @kind = args[:kind] if args.key?(:kind) + @mail_only = args[:mail_only] if args.key?(:mail_only) + @normalized_input = args[:normalized_input] if args.key?(:normalized_input) + @other_elections = args[:other_elections] if args.key?(:other_elections) + @polling_locations = args[:polling_locations] if args.key?(:polling_locations) + @precinct_id = args[:precinct_id] if args.key?(:precinct_id) + @state = args[:state] if args.key?(:state) end end end diff --git a/generated/google/apis/classroom_v1/classes.rb b/generated/google/apis/classroom_v1/classes.rb index 894881a25..cd9bbc572 100644 --- a/generated/google/apis/classroom_v1/classes.rb +++ b/generated/google/apis/classroom_v1/classes.rb @@ -112,18 +112,18 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @section = args[:section] if args.key?(:section) + @description_heading = args[:description_heading] if args.key?(:description_heading) + @description = args[:description] if args.key?(:description) + @room = args[:room] if args.key?(:room) + @owner_id = args[:owner_id] if args.key?(:owner_id) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @update_time = args[:update_time] if args.key?(:update_time) + @enrollment_code = args[:enrollment_code] if args.key?(:enrollment_code) + @course_state = args[:course_state] if args.key?(:course_state) + @alternate_link = args[:alternate_link] if args.key?(:alternate_link) end end @@ -165,8 +165,8 @@ module Google # 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? + @courses = args[:courses] if args.key?(:courses) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -198,7 +198,7 @@ module Google # Update properties of this object def update!(**args) - @alias = args[:alias] unless args[:alias].nil? + @alias = args[:alias] if args.key?(:alias) end end @@ -223,8 +223,8 @@ module Google # 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? + @aliases = args[:aliases] if args.key?(:aliases) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -261,10 +261,10 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @user_id = args[:user_id] if args.key?(:user_id) + @course_id = args[:course_id] if args.key?(:course_id) + @role = args[:role] if args.key?(:role) end end @@ -289,8 +289,8 @@ module Google # 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? + @invitations = args[:invitations] if args.key?(:invitations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -329,11 +329,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @email_address = args[:email_address] if args.key?(:email_address) + @photo_url = args[:photo_url] if args.key?(:photo_url) + @permissions = args[:permissions] if args.key?(:permissions) end end @@ -363,9 +363,9 @@ module Google # 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? + @given_name = args[:given_name] if args.key?(:given_name) + @family_name = args[:family_name] if args.key?(:family_name) + @full_name = args[:full_name] if args.key?(:full_name) end end @@ -384,7 +384,7 @@ module Google # Update properties of this object def update!(**args) - @permission = args[:permission] unless args[:permission].nil? + @permission = args[:permission] if args.key?(:permission) end end @@ -416,9 +416,9 @@ module Google # 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? + @course_id = args[:course_id] if args.key?(:course_id) + @user_id = args[:user_id] if args.key?(:user_id) + @profile = args[:profile] if args.key?(:profile) end end @@ -443,8 +443,8 @@ module Google # 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? + @teachers = args[:teachers] if args.key?(:teachers) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -476,9 +476,9 @@ module Google # 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? + @course_id = args[:course_id] if args.key?(:course_id) + @user_id = args[:user_id] if args.key?(:user_id) + @profile = args[:profile] if args.key?(:profile) end end @@ -503,8 +503,8 @@ module Google # 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? + @students = args[:students] if args.key?(:students) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end end diff --git a/generated/google/apis/cloudbilling_v1/classes.rb b/generated/google/apis/cloudbilling_v1/classes.rb index cd93583cd..5653dd55c 100644 --- a/generated/google/apis/cloudbilling_v1/classes.rb +++ b/generated/google/apis/cloudbilling_v1/classes.rb @@ -55,9 +55,9 @@ module Google # 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? + @name = args[:name] if args.key?(:name) + @open = args[:open] if args.key?(:open) + @display_name = args[:display_name] if args.key?(:display_name) end end @@ -83,8 +83,8 @@ module Google # 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? + @billing_accounts = args[:billing_accounts] if args.key?(:billing_accounts) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -111,8 +111,8 @@ module Google # 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? + @project_billing_info = args[:project_billing_info] if args.key?(:project_billing_info) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -158,10 +158,10 @@ module Google # 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? + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) + @billing_account_name = args[:billing_account_name] if args.key?(:billing_account_name) + @billing_enabled = args[:billing_enabled] if args.key?(:billing_enabled) end end end diff --git a/generated/google/apis/cloudbuild_v1.rb b/generated/google/apis/cloudbuild_v1.rb new file mode 100644 index 000000000..3fff9e108 --- /dev/null +++ b/generated/google/apis/cloudbuild_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/cloudbuild_v1/service.rb' +require 'google/apis/cloudbuild_v1/classes.rb' +require 'google/apis/cloudbuild_v1/representations.rb' + +module Google + module Apis + # Google Cloud Container Builder API + # + # The Google Cloud Container Builder API lets you build container images in the + # cloud. + # + # @see https://cloud.google.com/container-builder/docs/ + module CloudbuildV1 + VERSION = 'V1' + REVISION = '20160128' + + # 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/cloudbuild_v1/classes.rb b/generated/google/apis/cloudbuild_v1/classes.rb new file mode 100644 index 000000000..2b944e121 --- /dev/null +++ b/generated/google/apis/cloudbuild_v1/classes.rb @@ -0,0 +1,521 @@ +# 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 CloudbuildV1 + + # 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 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + @details = args[:details] if args.key?(:details) + @message = args[:message] if args.key?(:message) + end + end + + # Metadata for build operations. + class BuildOperationMetadata + include Google::Apis::Core::Hashable + + # A build resource in the Container Builder API. + # At a high level, a Build describes where to find source code, how to build + # it (for example, the builder image to run on the source), and what tag to + # apply to the built image when it is pushed to Google Container Registry. + # Corresponds to the JSON property `build` + # @return [Google::Apis::CloudbuildV1::Build] + attr_accessor :build + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @build = args[:build] if args.key?(:build) + end + end + + # Source describes the location of the source in a supported storage + # service. + class Source + include Google::Apis::Core::Hashable + + # StorageSource describes the location of the source in an archive file in + # Google Cloud Storage. + # Corresponds to the JSON property `storageSource` + # @return [Google::Apis::CloudbuildV1::StorageSource] + attr_accessor :storage_source + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @storage_source = args[:storage_source] if args.key?(:storage_source) + 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 `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::CloudbuildV1::Status] + attr_accessor :error + + # 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 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 + + # 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 + + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error = args[:error] if args.key?(:error) + @done = args[:done] if args.key?(:done) + @response = args[:response] if args.key?(:response) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + end + end + + # BuiltImage describes an image built by the pipeline. + class BuiltImage + include Google::Apis::Core::Hashable + + # Docker Registry 2.0 digest. + # Corresponds to the JSON property `digest` + # @return [String] + attr_accessor :digest + + # Name used to push the container image to Google Container Registry, as + # presented to `docker push`. + # 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) + @digest = args[:digest] if args.key?(:digest) + @name = args[:name] if args.key?(:name) + end + end + + # StorageSource describes the location of the source in an archive file in + # Google Cloud Storage. + class StorageSource + include Google::Apis::Core::Hashable + + # Google Cloud Storage bucket containing source (see + # [Bucket Name + # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements) + # ). + # Corresponds to the JSON property `bucket` + # @return [String] + attr_accessor :bucket + + # Google Cloud Storage object containing source. + # This object must be a gzipped archive file (.tar.gz) containing source to + # build. + # Corresponds to the JSON property `object` + # @return [String] + attr_accessor :object + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bucket = args[:bucket] if args.key?(:bucket) + @object = args[:object] if args.key?(:object) + end + end + + # Results describes the artifacts created by the build pipeline. + class Results + include Google::Apis::Core::Hashable + + # Images that were built as a part of the build. + # Corresponds to the JSON property `images` + # @return [Array] + attr_accessor :images + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @images = args[:images] if args.key?(:images) + end + end + + # A build resource in the Container Builder API. + # At a high level, a Build describes where to find source code, how to build + # it (for example, the builder image to run on the source), and what tag to + # apply to the built image when it is pushed to Google Container Registry. + class Build + include Google::Apis::Core::Hashable + + # Unique identifier of the build. + # @OutputOnly + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Results describes the artifacts created by the build pipeline. + # Corresponds to the JSON property `results` + # @return [Google::Apis::CloudbuildV1::Results] + attr_accessor :results + + # Status of the build. + # @OutputOnly + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # Time at whihc execution of the build was finished. + # @OutputOnly + # Corresponds to the JSON property `finishTime` + # @return [String] + attr_accessor :finish_time + + # Amount of time that this build should be allowed to run, to second + # granularity. If this amount of time elapses, work on the build will cease + # and the build status will be TIMEOUT. + # Default time is ten minutes. + # Corresponds to the JSON property `timeout` + # @return [String] + attr_accessor :timeout + + # Describes the operations to be performed on the workspace. + # Corresponds to the JSON property `steps` + # @return [Array] + attr_accessor :steps + + # Source describes the location of the source in a supported storage + # service. + # Corresponds to the JSON property `source` + # @return [Google::Apis::CloudbuildV1::Source] + attr_accessor :source + + # Time at which the build was created. + # @OutputOnly + # Corresponds to the JSON property `createTime` + # @return [String] + attr_accessor :create_time + + # List of images expected to be built and pushed to Google Container + # Registry. If an image is listed here and the image is not produced by + # one of the build steps, the build will fail. Any images present when + # the build steps are complete will be pushed to Container Registry. + # Corresponds to the JSON property `images` + # @return [Array] + attr_accessor :images + + # Time at which execution of the build was started. + # @OutputOnly + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # Google Cloud Storage bucket where logs should be written (see + # [Bucket Name + # Requirements](https://cloud.google.com/storage/docs/bucket-naming#requirements) + # ). + # Logs file names will be of the format `$`logs_bucket`/log-$`build_id`.txt`. + # Corresponds to the JSON property `logsBucket` + # @return [String] + attr_accessor :logs_bucket + + # ID of the project. + # @OutputOnly. + # 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) + @id = args[:id] if args.key?(:id) + @results = args[:results] if args.key?(:results) + @status = args[:status] if args.key?(:status) + @finish_time = args[:finish_time] if args.key?(:finish_time) + @timeout = args[:timeout] if args.key?(:timeout) + @steps = args[:steps] if args.key?(:steps) + @source = args[:source] if args.key?(:source) + @create_time = args[:create_time] if args.key?(:create_time) + @images = args[:images] if args.key?(:images) + @start_time = args[:start_time] if args.key?(:start_time) + @logs_bucket = args[:logs_bucket] if args.key?(:logs_bucket) + @project_id = args[:project_id] if args.key?(:project_id) + end + end + + # Request to cancel an ongoing build. + class CancelBuildRequest + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The response message for Operations.ListOperations. + class ListOperationsResponse + include Google::Apis::Core::Hashable + + # The standard List next-page token. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # A list of operations that matches the specified filter in the request. + # 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] if args.key?(:next_page_token) + @operations = args[:operations] if args.key?(:operations) + end + end + + # BuildStep describes a step to perform in the build pipeline. + class BuildStep + include Google::Apis::Core::Hashable + + # Command-line arguments to use when running this step's container. + # Corresponds to the JSON property `args` + # @return [Array] + attr_accessor :args + + # Working directory (relative to project source root) to use when running + # this operation's container. + # Corresponds to the JSON property `dir` + # @return [String] + attr_accessor :dir + + # Additional environment variables to set for this step's container. + # Corresponds to the JSON property `env` + # @return [Array] + attr_accessor :env + + # Name of the container image to use for creating this stage in the + # pipeline, as presented to `docker pull`. + # 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) + @args = args[:args] if args.key?(:args) + @dir = args[:dir] if args.key?(:dir) + @env = args[:env] if args.key?(:env) + @name = args[:name] if args.key?(:name) + end + end + + # Response including listed builds. + class ListBuildsResponse + include Google::Apis::Core::Hashable + + # Token to receive the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # Builds will be sorted by create_time, descending. + # Corresponds to the JSON property `builds` + # @return [Array] + attr_accessor :builds + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @builds = args[:builds] if args.key?(:builds) + end + end + end + end +end diff --git a/generated/google/apis/cloudbuild_v1/representations.rb b/generated/google/apis/cloudbuild_v1/representations.rb new file mode 100644 index 000000000..17f5f0d89 --- /dev/null +++ b/generated/google/apis/cloudbuild_v1/representations.rb @@ -0,0 +1,190 @@ +# 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 CloudbuildV1 + + class Status + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class BuildOperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Source + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Operation + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class BuiltImage + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class StorageSource + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Results + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Build + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class CancelBuildRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListOperationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class BuildStep + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListBuildsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Status + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :details, as: 'details' + property :message, as: 'message' + end + end + + class BuildOperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :build, as: 'build', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation + + end + end + + class Source + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :storage_source, as: 'storageSource', class: Google::Apis::CloudbuildV1::StorageSource, decorator: Google::Apis::CloudbuildV1::StorageSource::Representation + + end + end + + class Operation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error, as: 'error', class: Google::Apis::CloudbuildV1::Status, decorator: Google::Apis::CloudbuildV1::Status::Representation + + property :done, as: 'done' + hash :response, as: 'response' + hash :metadata, as: 'metadata' + property :name, as: 'name' + end + end + + class BuiltImage + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :digest, as: 'digest' + property :name, as: 'name' + end + end + + class StorageSource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :bucket, as: 'bucket' + property :object, as: 'object' + end + end + + class Results + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :images, as: 'images', class: Google::Apis::CloudbuildV1::BuiltImage, decorator: Google::Apis::CloudbuildV1::BuiltImage::Representation + + end + end + + class Build + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :results, as: 'results', class: Google::Apis::CloudbuildV1::Results, decorator: Google::Apis::CloudbuildV1::Results::Representation + + property :status, as: 'status' + property :finish_time, as: 'finishTime' + property :timeout, as: 'timeout' + collection :steps, as: 'steps', class: Google::Apis::CloudbuildV1::BuildStep, decorator: Google::Apis::CloudbuildV1::BuildStep::Representation + + property :source, as: 'source', class: Google::Apis::CloudbuildV1::Source, decorator: Google::Apis::CloudbuildV1::Source::Representation + + property :create_time, as: 'createTime' + collection :images, as: 'images' + property :start_time, as: 'startTime' + property :logs_bucket, as: 'logsBucket' + property :project_id, as: 'projectId' + end + end + + class CancelBuildRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ListOperationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :operations, as: 'operations', class: Google::Apis::CloudbuildV1::Operation, decorator: Google::Apis::CloudbuildV1::Operation::Representation + + end + end + + class BuildStep + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :args, as: 'args' + property :dir, as: 'dir' + collection :env, as: 'env' + property :name, as: 'name' + end + end + + class ListBuildsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :builds, as: 'builds', class: Google::Apis::CloudbuildV1::Build, decorator: Google::Apis::CloudbuildV1::Build::Representation + + end + end + end + end +end diff --git a/generated/google/apis/cloudbuild_v1/service.rb b/generated/google/apis/cloudbuild_v1/service.rb new file mode 100644 index 000000000..bf52cf5f6 --- /dev/null +++ b/generated/google/apis/cloudbuild_v1/service.rb @@ -0,0 +1,278 @@ +# 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 CloudbuildV1 + # Google Cloud Container Builder API + # + # The Google Cloud Container Builder API lets you build container images in the + # cloud. + # + # @example + # require 'google/apis/cloudbuild_v1' + # + # Cloudbuild = Google::Apis::CloudbuildV1 # Alias the module + # service = Cloudbuild::CloudbuildService.new + # + # @see https://cloud.google.com/container-builder/docs/ + class CloudbuildService < 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://cloudbuild.googleapis.com/', '') + end + + # Returns information about a previously requested build. + # The Build that is returned includes its status (e.g., success or failure, + # or in-progress), and timing information. + # @param [String] project_id + # ID of the project. + # @param [String] id + # ID of the build. + # @param [String] quota_user + # Available 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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbuildV1::Build] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_build(project_id, id, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/builds/{id}', options) + command.response_representation = Google::Apis::CloudbuildV1::Build::Representation + command.response_class = Google::Apis::CloudbuildV1::Build + command.params['projectId'] = project_id unless project_id.nil? + command.params['id'] = id unless id.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Starts a build with the specified configuration. + # The long-running Operation returned by this method will include the ID of + # the build, which can be passed to GetBuild to determine its status (e.g., + # success or failure). + # @param [String] project_id + # ID of the project. + # @param [Google::Apis::CloudbuildV1::Build] build_object + # @param [String] quota_user + # Available 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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbuildV1::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_project_build(project_id, build_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/builds', options) + command.request_representation = Google::Apis::CloudbuildV1::Build::Representation + command.request_object = build_object + command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation + command.response_class = Google::Apis::CloudbuildV1::Operation + command.params['projectId'] = project_id unless project_id.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Lists previously requested builds. + # Previously requested builds may still be in-progress, or may have finished + # successfully or unsuccessfully. + # @param [String] project_id + # ID of the project. + # @param [Fixnum] page_size + # Number of results to return in the list. + # @param [String] page_token + # Token to provide to skip to a particular spot in the list. + # @param [String] quota_user + # Available 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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudbuildV1::ListBuildsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbuildV1::ListBuildsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_builds(project_id, page_size: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/projects/{projectId}/builds', options) + command.response_representation = Google::Apis::CloudbuildV1::ListBuildsResponse::Representation + command.response_class = Google::Apis::CloudbuildV1::ListBuildsResponse + command.params['projectId'] = project_id unless project_id.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.nil? + execute_or_queue_command(command, &block) + end + + # Cancels a requested build in progress. + # @param [String] project_id + # ID of the project. + # @param [String] id + # ID of the build. + # @param [Google::Apis::CloudbuildV1::CancelBuildRequest] cancel_build_request_object + # @param [String] quota_user + # Available 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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudbuildV1::Build] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbuildV1::Build] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_build(project_id, id, cancel_build_request_object = nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/projects/{projectId}/builds/{id}:cancel', options) + command.request_representation = Google::Apis::CloudbuildV1::CancelBuildRequest::Representation + command.request_object = cancel_build_request_object + command.response_representation = Google::Apis::CloudbuildV1::Build::Representation + command.response_class = Google::Apis::CloudbuildV1::Build + command.params['projectId'] = project_id unless project_id.nil? + command.params['id'] = id unless id.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.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] quota_user + # Available 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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudbuildV1::Operation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbuildV1::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(name, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::CloudbuildV1::Operation::Representation + command.response_class = Google::Apis::CloudbuildV1::Operation + command.params['name'] = name unless name.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.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 name of the operation collection. + # @param [Fixnum] page_size + # The standard list page size. + # @param [String] filter + # The standard list filter. + # @param [String] page_token + # The standard list page token. + # @param [String] quota_user + # Available 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 [String] fields + # Selector specifying which fields to include in a partial response. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::CloudbuildV1::ListOperationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudbuildV1::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(name, page_size: nil, filter: nil, page_token: nil, quota_user: nil, fields: nil, options: nil, &block) + command = make_simple_command(:get, 'v1/{+name}', options) + command.response_representation = Google::Apis::CloudbuildV1::ListOperationsResponse::Representation + command.response_class = Google::Apis::CloudbuildV1::ListOperationsResponse + command.params['name'] = name unless name.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['filter'] = filter unless filter.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + command.query['fields'] = fields unless fields.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/classes.rb b/generated/google/apis/clouddebugger_v2/classes.rb index 139c6b3d5..778354b36 100644 --- a/generated/google/apis/clouddebugger_v2/classes.rb +++ b/generated/google/apis/clouddebugger_v2/classes.rb @@ -41,7 +41,7 @@ module Google # Update properties of this object def update!(**args) - @debuggee = args[:debuggee] unless args[:debuggee].nil? + @debuggee = args[:debuggee] if args.key?(:debuggee) end end @@ -133,17 +133,17 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @project = args[:project] if args.key?(:project) + @uniquifier = args[:uniquifier] if args.key?(:uniquifier) + @description = args[:description] if args.key?(:description) + @is_inactive = args[:is_inactive] if args.key?(:is_inactive) + @agent_version = args[:agent_version] if args.key?(:agent_version) + @is_disabled = args[:is_disabled] if args.key?(:is_disabled) + @status = args[:status] if args.key?(:status) + @source_contexts = args[:source_contexts] if args.key?(:source_contexts) + @ext_source_contexts = args[:ext_source_contexts] if args.key?(:ext_source_contexts) + @labels = args[:labels] if args.key?(:labels) end end @@ -176,9 +176,9 @@ module Google # 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? + @is_error = args[:is_error] if args.key?(:is_error) + @refers_to = args[:refers_to] if args.key?(:refers_to) + @description = args[:description] if args.key?(:description) end end @@ -206,8 +206,8 @@ module Google # Update properties of this object def update!(**args) - @format = args[:format] unless args[:format].nil? - @parameters = args[:parameters] unless args[:parameters].nil? + @format = args[:format] if args.key?(:format) + @parameters = args[:parameters] if args.key?(:parameters) end end @@ -244,10 +244,10 @@ module Google # 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? + @cloud_repo = args[:cloud_repo] if args.key?(:cloud_repo) + @cloud_workspace = args[:cloud_workspace] if args.key?(:cloud_workspace) + @gerrit = args[:gerrit] if args.key?(:gerrit) + @git = args[:git] if args.key?(:git) end end @@ -282,10 +282,10 @@ module Google # 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? + @repo_id = args[:repo_id] if args.key?(:repo_id) + @revision_id = args[:revision_id] if args.key?(:revision_id) + @alias_name = args[:alias_name] if args.key?(:alias_name) + @alias_context = args[:alias_context] if args.key?(:alias_context) end end @@ -310,8 +310,8 @@ module Google # 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? + @project_repo_id = args[:project_repo_id] if args.key?(:project_repo_id) + @uid = args[:uid] if args.key?(:uid) end end @@ -336,8 +336,8 @@ module Google # 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? + @project_id = args[:project_id] if args.key?(:project_id) + @repo_name = args[:repo_name] if args.key?(:repo_name) end end @@ -361,8 +361,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -389,8 +389,8 @@ module Google # 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? + @workspace_id = args[:workspace_id] if args.key?(:workspace_id) + @snapshot_id = args[:snapshot_id] if args.key?(:snapshot_id) end end @@ -417,8 +417,8 @@ module Google # 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? + @repo_id = args[:repo_id] if args.key?(:repo_id) + @name = args[:name] if args.key?(:name) end end @@ -458,11 +458,11 @@ module Google # 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? + @host_uri = args[:host_uri] if args.key?(:host_uri) + @gerrit_project = args[:gerrit_project] if args.key?(:gerrit_project) + @revision_id = args[:revision_id] if args.key?(:revision_id) + @alias_name = args[:alias_name] if args.key?(:alias_name) + @alias_context = args[:alias_context] if args.key?(:alias_context) end end @@ -487,8 +487,8 @@ module Google # 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? + @url = args[:url] if args.key?(:url) + @revision_id = args[:revision_id] if args.key?(:revision_id) end end @@ -514,8 +514,8 @@ module Google # Update properties of this object def update!(**args) - @context = args[:context] unless args[:context].nil? - @labels = args[:labels] unless args[:labels].nil? + @context = args[:context] if args.key?(:context) + @labels = args[:labels] if args.key?(:labels) end end @@ -538,7 +538,7 @@ module Google # Update properties of this object def update!(**args) - @debuggee = args[:debuggee] unless args[:debuggee].nil? + @debuggee = args[:debuggee] if args.key?(:debuggee) end end @@ -571,9 +571,9 @@ module Google # 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? + @breakpoints = args[:breakpoints] if args.key?(:breakpoints) + @next_wait_token = args[:next_wait_token] if args.key?(:next_wait_token) + @wait_expired = args[:wait_expired] if args.key?(:wait_expired) end end @@ -692,21 +692,21 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @action = args[:action] if args.key?(:action) + @location = args[:location] if args.key?(:location) + @condition = args[:condition] if args.key?(:condition) + @expressions = args[:expressions] if args.key?(:expressions) + @log_message_format = args[:log_message_format] if args.key?(:log_message_format) + @log_level = args[:log_level] if args.key?(:log_level) + @is_final_state = args[:is_final_state] if args.key?(:is_final_state) + @create_time = args[:create_time] if args.key?(:create_time) + @final_time = args[:final_time] if args.key?(:final_time) + @user_email = args[:user_email] if args.key?(:user_email) + @status = args[:status] if args.key?(:status) + @stack_frames = args[:stack_frames] if args.key?(:stack_frames) + @evaluated_expressions = args[:evaluated_expressions] if args.key?(:evaluated_expressions) + @variable_table = args[:variable_table] if args.key?(:variable_table) end end @@ -730,8 +730,8 @@ module Google # Update properties of this object def update!(**args) - @path = args[:path] unless args[:path].nil? - @line = args[:line] unless args[:line].nil? + @path = args[:path] if args.key?(:path) + @line = args[:line] if args.key?(:line) end end @@ -767,10 +767,10 @@ module Google # 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? + @function = args[:function] if args.key?(:function) + @location = args[:location] if args.key?(:location) + @arguments = args[:arguments] if args.key?(:arguments) + @locals = args[:locals] if args.key?(:locals) end end @@ -854,12 +854,12 @@ module Google # 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? + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) + @type = args[:type] if args.key?(:type) + @members = args[:members] if args.key?(:members) + @var_table_index = args[:var_table_index] if args.key?(:var_table_index) + @status = args[:status] if args.key?(:status) end end @@ -878,7 +878,7 @@ module Google # Update properties of this object def update!(**args) - @breakpoint = args[:breakpoint] unless args[:breakpoint].nil? + @breakpoint = args[:breakpoint] if args.key?(:breakpoint) end end @@ -911,7 +911,7 @@ module Google # Update properties of this object def update!(**args) - @breakpoint = args[:breakpoint] unless args[:breakpoint].nil? + @breakpoint = args[:breakpoint] if args.key?(:breakpoint) end end @@ -930,7 +930,7 @@ module Google # Update properties of this object def update!(**args) - @breakpoint = args[:breakpoint] unless args[:breakpoint].nil? + @breakpoint = args[:breakpoint] if args.key?(:breakpoint) end end @@ -973,8 +973,8 @@ module Google # 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? + @breakpoints = args[:breakpoints] if args.key?(:breakpoints) + @next_wait_token = args[:next_wait_token] if args.key?(:next_wait_token) end end @@ -996,7 +996,7 @@ module Google # Update properties of this object def update!(**args) - @debuggees = args[:debuggees] unless args[:debuggees].nil? + @debuggees = args[:debuggees] if args.key?(:debuggees) end end end diff --git a/generated/google/apis/cloudlatencytest_v2.rb b/generated/google/apis/cloudlatencytest_v2.rb new file mode 100644 index 000000000..9d88b316d --- /dev/null +++ b/generated/google/apis/cloudlatencytest_v2.rb @@ -0,0 +1,34 @@ +# 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/cloudlatencytest_v2/service.rb' +require 'google/apis/cloudlatencytest_v2/classes.rb' +require 'google/apis/cloudlatencytest_v2/representations.rb' + +module Google + module Apis + # Google Cloud Network Performance Monitoring API + # + # A Test API to report latency data. + # + # @see + module CloudlatencytestV2 + VERSION = 'V2' + REVISION = '20150508' + + # View monitoring data for all of your Google Cloud and API projects + AUTH_MONITORING_READONLY = 'https://www.googleapis.com/auth/monitoring.readonly' + end + end +end diff --git a/generated/google/apis/cloudlatencytest_v2/classes.rb b/generated/google/apis/cloudlatencytest_v2/classes.rb new file mode 100644 index 000000000..58038c5d6 --- /dev/null +++ b/generated/google/apis/cloudlatencytest_v2/classes.rb @@ -0,0 +1,195 @@ +# 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 CloudlatencytestV2 + + # + class AggregatedStats + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `stats` + # @return [Array] + attr_accessor :stats + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @stats = args[:stats] if args.key?(:stats) + end + end + + # + class AggregatedStatsReply + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `testValue` + # @return [String] + attr_accessor :test_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @test_value = args[:test_value] if args.key?(:test_value) + end + end + + # + class DoubleValue + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `label` + # @return [String] + attr_accessor :label + + # + # 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) + @label = args[:label] if args.key?(:label) + @value = args[:value] if args.key?(:value) + end + end + + # + class IntValue + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `label` + # @return [String] + attr_accessor :label + + # + # 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) + @label = args[:label] if args.key?(:label) + @value = args[:value] if args.key?(:value) + end + end + + # + class Stats + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `doubleValues` + # @return [Array] + attr_accessor :double_values + + # + # Corresponds to the JSON property `intValues` + # @return [Array] + attr_accessor :int_values + + # + # Corresponds to the JSON property `stringValues` + # @return [Array] + attr_accessor :string_values + + # + # Corresponds to the JSON property `time` + # @return [Float] + attr_accessor :time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @double_values = args[:double_values] if args.key?(:double_values) + @int_values = args[:int_values] if args.key?(:int_values) + @string_values = args[:string_values] if args.key?(:string_values) + @time = args[:time] if args.key?(:time) + end + end + + # + class StatsReply + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `testValue` + # @return [String] + attr_accessor :test_value + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @test_value = args[:test_value] if args.key?(:test_value) + end + end + + # + class StringValue + include Google::Apis::Core::Hashable + + # + # Corresponds to the JSON property `label` + # @return [String] + attr_accessor :label + + # + # 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) + @label = args[:label] if args.key?(:label) + @value = args[:value] if args.key?(:value) + end + end + end + end +end diff --git a/generated/google/apis/cloudlatencytest_v2/representations.rb b/generated/google/apis/cloudlatencytest_v2/representations.rb new file mode 100644 index 000000000..3cbd4c4ce --- /dev/null +++ b/generated/google/apis/cloudlatencytest_v2/representations.rb @@ -0,0 +1,113 @@ +# 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 CloudlatencytestV2 + + class AggregatedStats + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AggregatedStatsReply + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DoubleValue + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class IntValue + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class Stats + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class StatsReply + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class StringValue + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class AggregatedStats + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :stats, as: 'stats', class: Google::Apis::CloudlatencytestV2::Stats, decorator: Google::Apis::CloudlatencytestV2::Stats::Representation + + end + end + + class AggregatedStatsReply + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :test_value, as: 'testValue' + end + end + + class DoubleValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :label, as: 'label' + property :value, as: 'value' + end + end + + class IntValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :label, as: 'label' + property :value, as: 'value' + end + end + + class Stats + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :double_values, as: 'doubleValues', class: Google::Apis::CloudlatencytestV2::DoubleValue, decorator: Google::Apis::CloudlatencytestV2::DoubleValue::Representation + + collection :int_values, as: 'intValues', class: Google::Apis::CloudlatencytestV2::IntValue, decorator: Google::Apis::CloudlatencytestV2::IntValue::Representation + + collection :string_values, as: 'stringValues', class: Google::Apis::CloudlatencytestV2::StringValue, decorator: Google::Apis::CloudlatencytestV2::StringValue::Representation + + property :time, as: 'time' + end + end + + class StatsReply + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :test_value, as: 'testValue' + end + end + + class StringValue + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :label, as: 'label' + property :value, as: 'value' + end + end + end + end +end diff --git a/generated/google/apis/cloudlatencytest_v2/service.rb b/generated/google/apis/cloudlatencytest_v2/service.rb new file mode 100644 index 000000000..c5c1c738f --- /dev/null +++ b/generated/google/apis/cloudlatencytest_v2/service.rb @@ -0,0 +1,135 @@ +# 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 CloudlatencytestV2 + # Google Cloud Network Performance Monitoring API + # + # A Test API to report latency data. + # + # @example + # require 'google/apis/cloudlatencytest_v2' + # + # Cloudlatencytest = Google::Apis::CloudlatencytestV2 # Alias the module + # service = Cloudlatencytest::CloudlatencytestService.new + # + # @see + class CloudlatencytestService < 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://cloudlatencytest-pa.googleapis.com/', 'v2/statscollection/') + end + + # RPC to update the new TCP stats. + # @param [Google::Apis::CloudlatencytestV2::AggregatedStats] aggregated_stats_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::CloudlatencytestV2::AggregatedStatsReply] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudlatencytestV2::AggregatedStatsReply] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_aggregated_stats(aggregated_stats_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'updateaggregatedstats', options) + command.request_representation = Google::Apis::CloudlatencytestV2::AggregatedStats::Representation + command.request_object = aggregated_stats_object + command.response_representation = Google::Apis::CloudlatencytestV2::AggregatedStatsReply::Representation + command.response_class = Google::Apis::CloudlatencytestV2::AggregatedStatsReply + 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 + + # RPC to update the new TCP stats. + # @param [Google::Apis::CloudlatencytestV2::Stats] stats_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::CloudlatencytestV2::StatsReply] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::CloudlatencytestV2::StatsReply] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_stats(stats_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, 'updatestats', options) + command.request_representation = Google::Apis::CloudlatencytestV2::Stats::Representation + command.request_object = stats_object + command.response_representation = Google::Apis::CloudlatencytestV2::StatsReply::Representation + command.response_class = Google::Apis::CloudlatencytestV2::StatsReply + 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/cloudmonitoring_v2beta2.rb b/generated/google/apis/cloudmonitoring_v2beta2.rb index 2b5ec387a..3e89a3f9b 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 = '20160120' + REVISION = '20160124' # 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/classes.rb b/generated/google/apis/cloudmonitoring_v2beta2/classes.rb index 9623ab0ca..a850b62b7 100644 --- a/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +++ b/generated/google/apis/cloudmonitoring_v2beta2/classes.rb @@ -38,7 +38,7 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? + @kind = args[:kind] if args.key?(:kind) end end @@ -58,7 +58,7 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? + @kind = args[:kind] if args.key?(:kind) end end @@ -90,9 +90,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @metrics = args[:metrics] unless args[:metrics].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @kind = args[:kind] if args.key?(:kind) + @metrics = args[:metrics] if args.key?(:metrics) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -112,7 +112,7 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? + @kind = args[:kind] if args.key?(:kind) end end @@ -154,11 +154,11 @@ module Google # 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? - @oldest = args[:oldest] unless args[:oldest].nil? - @timeseries = args[:timeseries] unless args[:timeseries].nil? - @youngest = args[:youngest] unless args[:youngest].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @oldest = args[:oldest] if args.key?(:oldest) + @timeseries = args[:timeseries] if args.key?(:timeseries) + @youngest = args[:youngest] if args.key?(:youngest) end end @@ -178,7 +178,7 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? + @kind = args[:kind] if args.key?(:kind) end end @@ -221,11 +221,11 @@ module Google # 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? - @oldest = args[:oldest] unless args[:oldest].nil? - @timeseries = args[:timeseries] unless args[:timeseries].nil? - @youngest = args[:youngest] unless args[:youngest].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @oldest = args[:oldest] if args.key?(:oldest) + @timeseries = args[:timeseries] if args.key?(:timeseries) + @youngest = args[:youngest] if args.key?(:youngest) end end @@ -266,11 +266,11 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @labels = args[:labels] unless args[:labels].nil? - @name = args[:name] unless args[:name].nil? - @project = args[:project] unless args[:project].nil? - @type_descriptor = args[:type_descriptor] unless args[:type_descriptor].nil? + @description = args[:description] if args.key?(:description) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @project = args[:project] if args.key?(:project) + @type_descriptor = args[:type_descriptor] if args.key?(:type_descriptor) end end @@ -295,8 +295,8 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @key = args[:key] unless args[:key].nil? + @description = args[:description] if args.key?(:description) + @key = args[:key] if args.key?(:key) end end @@ -322,8 +322,8 @@ module Google # Update properties of this object def update!(**args) - @metric_type = args[:metric_type] unless args[:metric_type].nil? - @value_type = args[:value_type] unless args[:value_type].nil? + @metric_type = args[:metric_type] if args.key?(:metric_type) + @value_type = args[:value_type] if args.key?(:value_type) end end @@ -385,13 +385,13 @@ module Google # Update properties of this object def update!(**args) - @bool_value = args[:bool_value] unless args[:bool_value].nil? - @distribution_value = args[:distribution_value] unless args[:distribution_value].nil? - @double_value = args[:double_value] unless args[:double_value].nil? - @end = args[:end] unless args[:end].nil? - @int64_value = args[:int64_value] unless args[:int64_value].nil? - @start = args[:start] unless args[:start].nil? - @string_value = args[:string_value] unless args[:string_value].nil? + @bool_value = args[:bool_value] if args.key?(:bool_value) + @distribution_value = args[:distribution_value] if args.key?(:distribution_value) + @double_value = args[:double_value] if args.key?(:double_value) + @end = args[:end] if args.key?(:end) + @int64_value = args[:int64_value] if args.key?(:int64_value) + @start = args[:start] if args.key?(:start) + @string_value = args[:string_value] if args.key?(:string_value) end end @@ -425,9 +425,9 @@ module Google # Update properties of this object def update!(**args) - @buckets = args[:buckets] unless args[:buckets].nil? - @overflow_bucket = args[:overflow_bucket] unless args[:overflow_bucket].nil? - @underflow_bucket = args[:underflow_bucket] unless args[:underflow_bucket].nil? + @buckets = args[:buckets] if args.key?(:buckets) + @overflow_bucket = args[:overflow_bucket] if args.key?(:overflow_bucket) + @underflow_bucket = args[:underflow_bucket] if args.key?(:underflow_bucket) end end @@ -458,9 +458,9 @@ module Google # Update properties of this object def update!(**args) - @count = args[:count] unless args[:count].nil? - @lower_bound = args[:lower_bound] unless args[:lower_bound].nil? - @upper_bound = args[:upper_bound] unless args[:upper_bound].nil? + @count = args[:count] if args.key?(:count) + @lower_bound = args[:lower_bound] if args.key?(:lower_bound) + @upper_bound = args[:upper_bound] if args.key?(:upper_bound) end end @@ -485,8 +485,8 @@ module Google # Update properties of this object def update!(**args) - @count = args[:count] unless args[:count].nil? - @lower_bound = args[:lower_bound] unless args[:lower_bound].nil? + @count = args[:count] if args.key?(:count) + @lower_bound = args[:lower_bound] if args.key?(:lower_bound) end end @@ -511,8 +511,8 @@ module Google # Update properties of this object def update!(**args) - @count = args[:count] unless args[:count].nil? - @upper_bound = args[:upper_bound] unless args[:upper_bound].nil? + @count = args[:count] if args.key?(:count) + @upper_bound = args[:upper_bound] if args.key?(:upper_bound) end end @@ -540,8 +540,8 @@ module Google # Update properties of this object def update!(**args) - @points = args[:points] unless args[:points].nil? - @timeseries_desc = args[:timeseries_desc] unless args[:timeseries_desc].nil? + @points = args[:points] if args.key?(:points) + @timeseries_desc = args[:timeseries_desc] if args.key?(:timeseries_desc) end end @@ -570,9 +570,9 @@ module Google # Update properties of this object def update!(**args) - @labels = args[:labels] unless args[:labels].nil? - @metric = args[:metric] unless args[:metric].nil? - @project = args[:project] unless args[:project].nil? + @labels = args[:labels] if args.key?(:labels) + @metric = args[:metric] if args.key?(:metric) + @project = args[:project] if args.key?(:project) end end @@ -596,8 +596,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end @@ -623,8 +623,8 @@ module Google # Update properties of this object def update!(**args) - @point = args[:point] unless args[:point].nil? - @timeseries_desc = args[:timeseries_desc] unless args[:timeseries_desc].nil? + @point = args[:point] if args.key?(:point) + @timeseries_desc = args[:timeseries_desc] if args.key?(:timeseries_desc) end end @@ -650,8 +650,8 @@ module Google # Update properties of this object def update!(**args) - @common_labels = args[:common_labels] unless args[:common_labels].nil? - @timeseries = args[:timeseries] unless args[:timeseries].nil? + @common_labels = args[:common_labels] if args.key?(:common_labels) + @timeseries = args[:timeseries] if args.key?(:timeseries) end end @@ -671,7 +671,7 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? + @kind = args[:kind] if args.key?(:kind) end end end diff --git a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb index f8ffbaee0..04a45a9ac 100644 --- a/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +++ b/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb @@ -82,13 +82,13 @@ module Google # Update properties of this object def update!(**args) - @project_number = args[:project_number] unless args[:project_number].nil? - @project_id = args[:project_id] unless args[:project_id].nil? - @lifecycle_state = args[:lifecycle_state] unless args[:lifecycle_state].nil? - @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? + @project_number = args[:project_number] if args.key?(:project_number) + @project_id = args[:project_id] if args.key?(:project_id) + @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state) + @name = args[:name] if args.key?(:name) + @create_time = args[:create_time] if args.key?(:create_time) + @labels = args[:labels] if args.key?(:labels) + @parent = args[:parent] if args.key?(:parent) end end @@ -117,8 +117,8 @@ module Google # Update properties of this object def update!(**args) - @type = args[:type] unless args[:type].nil? - @id = args[:id] unless args[:id].nil? + @type = args[:type] if args.key?(:type) + @id = args[:id] if args.key?(:id) end end @@ -149,8 +149,8 @@ module Google # Update properties of this object def update!(**args) - @projects = args[:projects] unless args[:projects].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @projects = args[:projects] if args.key?(:projects) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -227,9 +227,9 @@ module Google # 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? + @version = args[:version] if args.key?(:version) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) end end @@ -265,8 +265,8 @@ module Google # Update properties of this object def update!(**args) - @role = args[:role] unless args[:role].nil? - @members = args[:members] unless args[:members].nil? + @role = args[:role] if args.key?(:role) + @members = args[:members] if args.key?(:members) end end @@ -294,7 +294,7 @@ module Google # Update properties of this object def update!(**args) - @policy = args[:policy] unless args[:policy].nil? + @policy = args[:policy] if args.key?(:policy) end end @@ -315,7 +315,7 @@ module Google # Update properties of this object def update!(**args) - @permissions = args[:permissions] unless args[:permissions].nil? + @permissions = args[:permissions] if args.key?(:permissions) end end @@ -334,7 +334,7 @@ module Google # Update properties of this object def update!(**args) - @permissions = args[:permissions] unless args[:permissions].nil? + @permissions = args[:permissions] if args.key?(:permissions) end end @@ -362,8 +362,8 @@ module Google # 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? + @organizations = args[:organizations] if args.key?(:organizations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -404,10 +404,10 @@ module Google # 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? + @organization_id = args[:organization_id] if args.key?(:organization_id) + @display_name = args[:display_name] if args.key?(:display_name) + @owner = args[:owner] if args.key?(:owner) + @creation_time = args[:creation_time] if args.key?(:creation_time) end end @@ -429,7 +429,7 @@ module Google # Update properties of this object def update!(**args) - @directory_customer_id = args[:directory_customer_id] unless args[:directory_customer_id].nil? + @directory_customer_id = args[:directory_customer_id] if args.key?(:directory_customer_id) end end end diff --git a/generated/google/apis/cloudtrace_v1/classes.rb b/generated/google/apis/cloudtrace_v1/classes.rb index 719458a3b..2d1ac3f95 100644 --- a/generated/google/apis/cloudtrace_v1/classes.rb +++ b/generated/google/apis/cloudtrace_v1/classes.rb @@ -44,8 +44,8 @@ module Google # 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? + @traces = args[:traces] if args.key?(:traces) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -77,9 +77,9 @@ module Google # 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? + @project_id = args[:project_id] if args.key?(:project_id) + @trace_id = args[:trace_id] if args.key?(:trace_id) + @spans = args[:spans] if args.key?(:spans) end end @@ -138,13 +138,13 @@ module Google # 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? + @span_id = args[:span_id] if args.key?(:span_id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @start_time = args[:start_time] if args.key?(:start_time) + @end_time = args[:end_time] if args.key?(:end_time) + @parent_span_id = args[:parent_span_id] if args.key?(:parent_span_id) + @labels = args[:labels] if args.key?(:labels) end end @@ -163,7 +163,7 @@ module Google # Update properties of this object def update!(**args) - @traces = args[:traces] unless args[:traces].nil? + @traces = args[:traces] if args.key?(:traces) end end diff --git a/generated/google/apis/clouduseraccounts_beta/classes.rb b/generated/google/apis/clouduseraccounts_beta/classes.rb index 80df1bed2..9484802dd 100644 --- a/generated/google/apis/clouduseraccounts_beta/classes.rb +++ b/generated/google/apis/clouduseraccounts_beta/classes.rb @@ -44,8 +44,8 @@ module Google # Update properties of this object def update!(**args) - @keys = args[:keys] unless args[:keys].nil? - @sudoer = args[:sudoer] unless args[:sudoer].nil? + @keys = args[:keys] if args.key?(:keys) + @sudoer = args[:sudoer] if args.key?(:sudoer) end end @@ -96,13 +96,13 @@ module Google # 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? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @members = args[:members] if args.key?(:members) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -142,11 +142,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -165,7 +165,7 @@ module Google # Update properties of this object def update!(**args) - @users = args[:users] unless args[:users].nil? + @users = args[:users] if args.key?(:users) end end @@ -184,7 +184,7 @@ module Google # Update properties of this object def update!(**args) - @users = args[:users] unless args[:users].nil? + @users = args[:users] if args.key?(:users) end end @@ -217,9 +217,9 @@ module Google # 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? + @group_views = args[:group_views] if args.key?(:group_views) + @kind = args[:kind] if args.key?(:kind) + @user_views = args[:user_views] if args.key?(:user_views) end end @@ -238,7 +238,7 @@ module Google # Update properties of this object def update!(**args) - @resource = args[:resource] unless args[:resource].nil? + @resource = args[:resource] if args.key?(:resource) end end @@ -260,7 +260,7 @@ module Google # Update properties of this object def update!(**args) - @resource = args[:resource] unless args[:resource].nil? + @resource = args[:resource] if args.key?(:resource) end end @@ -289,9 +289,9 @@ module Google # 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? + @gid = args[:gid] if args.key?(:gid) + @group_name = args[:group_name] if args.key?(:group_name) + @members = args[:members] if args.key?(:members) end end @@ -335,12 +335,12 @@ module Google # 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? + @gecos = args[:gecos] if args.key?(:gecos) + @gid = args[:gid] if args.key?(:gid) + @home_directory = args[:home_directory] if args.key?(:home_directory) + @shell = args[:shell] if args.key?(:shell) + @uid = args[:uid] if args.key?(:uid) + @username = args[:username] if args.key?(:username) end end @@ -481,28 +481,28 @@ module Google # 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? + @client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @end_time = args[:end_time] if args.key?(:end_time) + @error = args[:error] if args.key?(:error) + @http_error_message = args[:http_error_message] if args.key?(:http_error_message) + @http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code) + @id = args[:id] if args.key?(:id) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @progress = args[:progress] if args.key?(:progress) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @start_time = args[:start_time] if args.key?(:start_time) + @status = args[:status] if args.key?(:status) + @status_message = args[:status_message] if args.key?(:status_message) + @target_id = args[:target_id] if args.key?(:target_id) + @target_link = args[:target_link] if args.key?(:target_link) + @user = args[:user] if args.key?(:user) + @warnings = args[:warnings] if args.key?(:warnings) + @zone = args[:zone] if args.key?(:zone) end # [Output Only] If errors are generated during processing of the operation, this @@ -521,7 +521,7 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? + @errors = args[:errors] if args.key?(:errors) end # @@ -550,9 +550,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @location = args[:location] if args.key?(:location) + @message = args[:message] if args.key?(:message) end end end @@ -582,9 +582,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -607,8 +607,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -650,11 +650,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -696,11 +696,11 @@ module Google # 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? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @expiration_timestamp = args[:expiration_timestamp] if args.key?(:expiration_timestamp) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @key = args[:key] if args.key?(:key) end end @@ -763,15 +763,15 @@ module Google # 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? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @groups = args[:groups] if args.key?(:groups) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @owner = args[:owner] if args.key?(:owner) + @public_keys = args[:public_keys] if args.key?(:public_keys) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -811,11 +811,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end end diff --git a/generated/google/apis/compute_beta.rb b/generated/google/apis/compute_beta.rb index f5800f899..1f89ad5ba 100644 --- a/generated/google/apis/compute_beta.rb +++ b/generated/google/apis/compute_beta.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/compute/docs/reference/latest/ module ComputeBeta VERSION = 'Beta' - REVISION = '20160112' + REVISION = '20160120' # 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_beta/classes.rb b/generated/google/apis/compute_beta/classes.rb index f9776474b..71aa15077 100644 --- a/generated/google/apis/compute_beta/classes.rb +++ b/generated/google/apis/compute_beta/classes.rb @@ -57,10 +57,10 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @nat_ip = args[:nat_ip] unless args[:nat_ip].nil? - @type = args[:type] unless args[:type].nil? + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @nat_ip = args[:nat_ip] if args.key?(:nat_ip) + @type = args[:type] if args.key?(:type) end end @@ -135,16 +135,16 @@ module Google # Update properties of this object def update!(**args) - @address = args[:address] unless args[:address].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? - @region = args[:region] unless args[:region].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @status = args[:status] unless args[:status].nil? - @users = args[:users] unless args[:users].nil? + @address = args[:address] if args.key?(:address) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) + @users = args[:users] if args.key?(:users) end end @@ -188,11 +188,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -237,11 +237,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -266,8 +266,8 @@ module Google # Update properties of this object def update!(**args) - @addresses = args[:addresses] unless args[:addresses].nil? - @warning = args[:warning] unless args[:warning].nil? + @addresses = args[:addresses] if args.key?(:addresses) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] Informational warning which replaces the list of addresses when @@ -298,9 +298,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -329,8 +329,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -429,18 +429,18 @@ module Google # Update properties of this object def update!(**args) - @auto_delete = args[:auto_delete] unless args[:auto_delete].nil? - @boot = args[:boot] unless args[:boot].nil? - @device_name = args[:device_name] unless args[:device_name].nil? - @disk_encryption_key = args[:disk_encryption_key] unless args[:disk_encryption_key].nil? - @index = args[:index] unless args[:index].nil? - @initialize_params = args[:initialize_params] unless args[:initialize_params].nil? - @interface = args[:interface] unless args[:interface].nil? - @kind = args[:kind] unless args[:kind].nil? - @licenses = args[:licenses] unless args[:licenses].nil? - @mode = args[:mode] unless args[:mode].nil? - @source = args[:source] unless args[:source].nil? - @type = args[:type] unless args[:type].nil? + @auto_delete = args[:auto_delete] if args.key?(:auto_delete) + @boot = args[:boot] if args.key?(:boot) + @device_name = args[:device_name] if args.key?(:device_name) + @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) + @index = args[:index] if args.key?(:index) + @initialize_params = args[:initialize_params] if args.key?(:initialize_params) + @interface = args[:interface] if args.key?(:interface) + @kind = args[:kind] if args.key?(:kind) + @licenses = args[:licenses] if args.key?(:licenses) + @mode = args[:mode] if args.key?(:mode) + @source = args[:source] if args.key?(:source) + @type = args[:type] if args.key?(:type) end end @@ -508,12 +508,12 @@ module Google # Update properties of this object def update!(**args) - @disk_name = args[:disk_name] unless args[:disk_name].nil? - @disk_size_gb = args[:disk_size_gb] unless args[:disk_size_gb].nil? - @disk_storage_type = args[:disk_storage_type] unless args[:disk_storage_type].nil? - @disk_type = args[:disk_type] unless args[:disk_type].nil? - @source_image = args[:source_image] unless args[:source_image].nil? - @source_image_encryption_key = args[:source_image_encryption_key] unless args[:source_image_encryption_key].nil? + @disk_name = args[:disk_name] if args.key?(:disk_name) + @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @disk_storage_type = args[:disk_storage_type] if args.key?(:disk_storage_type) + @disk_type = args[:disk_type] if args.key?(:disk_type) + @source_image = args[:source_image] if args.key?(:source_image) + @source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key) end end @@ -580,15 +580,15 @@ module Google # Update properties of this object def update!(**args) - @autoscaling_policy = args[:autoscaling_policy] unless args[:autoscaling_policy].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? - @self_link = args[:self_link] unless args[:self_link].nil? - @target = args[:target] unless args[:target].nil? - @zone = args[:zone] unless args[:zone].nil? + @autoscaling_policy = args[:autoscaling_policy] if args.key?(:autoscaling_policy) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @target = args[:target] if args.key?(:target) + @zone = args[:zone] if args.key?(:zone) end end @@ -632,11 +632,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -680,11 +680,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -709,8 +709,8 @@ module Google # Update properties of this object def update!(**args) - @autoscalers = args[:autoscalers] unless args[:autoscalers].nil? - @warning = args[:warning] unless args[:warning].nil? + @autoscalers = args[:autoscalers] if args.key?(:autoscalers) + @warning = args[:warning] if args.key?(:warning) end # Informational warning which replaces the list of autoscalers when the list is @@ -741,9 +741,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -772,8 +772,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -828,12 +828,12 @@ module Google # Update properties of this object def update!(**args) - @cool_down_period_sec = args[:cool_down_period_sec] unless args[:cool_down_period_sec].nil? - @cpu_utilization = args[:cpu_utilization] unless args[:cpu_utilization].nil? - @custom_metric_utilizations = args[:custom_metric_utilizations] unless args[:custom_metric_utilizations].nil? - @load_balancing_utilization = args[:load_balancing_utilization] unless args[:load_balancing_utilization].nil? - @max_num_replicas = args[:max_num_replicas] unless args[:max_num_replicas].nil? - @min_num_replicas = args[:min_num_replicas] unless args[:min_num_replicas].nil? + @cool_down_period_sec = args[:cool_down_period_sec] if args.key?(:cool_down_period_sec) + @cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization) + @custom_metric_utilizations = args[:custom_metric_utilizations] if args.key?(:custom_metric_utilizations) + @load_balancing_utilization = args[:load_balancing_utilization] if args.key?(:load_balancing_utilization) + @max_num_replicas = args[:max_num_replicas] if args.key?(:max_num_replicas) + @min_num_replicas = args[:min_num_replicas] if args.key?(:min_num_replicas) end end @@ -855,7 +855,7 @@ module Google # Update properties of this object def update!(**args) - @utilization_target = args[:utilization_target] unless args[:utilization_target].nil? + @utilization_target = args[:utilization_target] if args.key?(:utilization_target) end end @@ -889,9 +889,9 @@ module Google # Update properties of this object def update!(**args) - @metric = args[:metric] unless args[:metric].nil? - @utilization_target = args[:utilization_target] unless args[:utilization_target].nil? - @utilization_target_type = args[:utilization_target_type] unless args[:utilization_target_type].nil? + @metric = args[:metric] if args.key?(:metric) + @utilization_target = args[:utilization_target] if args.key?(:utilization_target) + @utilization_target_type = args[:utilization_target_type] if args.key?(:utilization_target_type) end end @@ -915,7 +915,7 @@ module Google # Update properties of this object def update!(**args) - @utilization_target = args[:utilization_target] unless args[:utilization_target].nil? + @utilization_target = args[:utilization_target] if args.key?(:utilization_target) end end @@ -982,13 +982,13 @@ module Google # Update properties of this object def update!(**args) - @balancing_mode = args[:balancing_mode] unless args[:balancing_mode].nil? - @capacity_scaler = args[:capacity_scaler] unless args[:capacity_scaler].nil? - @description = args[:description] unless args[:description].nil? - @group = args[:group] unless args[:group].nil? - @max_rate = args[:max_rate] unless args[:max_rate].nil? - @max_rate_per_instance = args[:max_rate_per_instance] unless args[:max_rate_per_instance].nil? - @max_utilization = args[:max_utilization] unless args[:max_utilization].nil? + @balancing_mode = args[:balancing_mode] if args.key?(:balancing_mode) + @capacity_scaler = args[:capacity_scaler] if args.key?(:capacity_scaler) + @description = args[:description] if args.key?(:description) + @group = args[:group] if args.key?(:group) + @max_rate = args[:max_rate] if args.key?(:max_rate) + @max_rate_per_instance = args[:max_rate_per_instance] if args.key?(:max_rate_per_instance) + @max_utilization = args[:max_utilization] if args.key?(:max_utilization) end end @@ -1073,7 +1073,7 @@ module Google attr_accessor :self_link # How many seconds to wait for the backend before considering it a failed - # request. Default is 30 seconds. + # request. Default is 30 seconds. Valid range is [1, 86400]. # Corresponds to the JSON property `timeoutSec` # @return [Fixnum] attr_accessor :timeout_sec @@ -1084,19 +1084,19 @@ module Google # Update properties of this object def update!(**args) - @backends = args[:backends] unless args[:backends].nil? - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @description = args[:description] unless args[:description].nil? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @health_checks = args[:health_checks] unless args[:health_checks].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? - @port_name = args[:port_name] unless args[:port_name].nil? - @protocol = args[:protocol] unless args[:protocol].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @timeout_sec = args[:timeout_sec] unless args[:timeout_sec].nil? + @backends = args[:backends] if args.key?(:backends) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @health_checks = args[:health_checks] if args.key?(:health_checks) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @port = args[:port] if args.key?(:port) + @port_name = args[:port_name] if args.key?(:port_name) + @protocol = args[:protocol] if args.key?(:protocol) + @self_link = args[:self_link] if args.key?(:self_link) + @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec) end end @@ -1121,8 +1121,8 @@ module Google # Update properties of this object def update!(**args) - @health_status = args[:health_status] unless args[:health_status].nil? - @kind = args[:kind] unless args[:kind].nil? + @health_status = args[:health_status] if args.key?(:health_status) + @kind = args[:kind] if args.key?(:kind) end end @@ -1167,11 +1167,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -1209,9 +1209,9 @@ module Google # Update properties of this object def update!(**args) - @raw_key = args[:raw_key] unless args[:raw_key].nil? - @rsa_encrypted_key = args[:rsa_encrypted_key] unless args[:rsa_encrypted_key].nil? - @sha256 = args[:sha256] unless args[:sha256].nil? + @raw_key = args[:raw_key] if args.key?(:raw_key) + @rsa_encrypted_key = args[:rsa_encrypted_key] if args.key?(:rsa_encrypted_key) + @sha256 = args[:sha256] if args.key?(:sha256) end end @@ -1259,11 +1259,11 @@ module Google # Update properties of this object def update!(**args) - @deleted = args[:deleted] unless args[:deleted].nil? - @deprecated = args[:deprecated] unless args[:deprecated].nil? - @obsolete = args[:obsolete] unless args[:obsolete].nil? - @replacement = args[:replacement] unless args[:replacement].nil? - @state = args[:state] unless args[:state].nil? + @deleted = args[:deleted] if args.key?(:deleted) + @deprecated = args[:deprecated] if args.key?(:deprecated) + @obsolete = args[:obsolete] if args.key?(:obsolete) + @replacement = args[:replacement] if args.key?(:replacement) + @state = args[:state] if args.key?(:state) end end @@ -1433,29 +1433,29 @@ module Google # 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? - @disk_encryption_key = args[:disk_encryption_key] unless args[:disk_encryption_key].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_attach_timestamp = args[:last_attach_timestamp] unless args[:last_attach_timestamp].nil? - @last_detach_timestamp = args[:last_detach_timestamp] unless args[:last_detach_timestamp].nil? - @licenses = args[:licenses] unless args[:licenses].nil? - @name = args[:name] unless args[:name].nil? - @options = args[:options] unless args[:options].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @size_gb = args[:size_gb] unless args[:size_gb].nil? - @source_image = args[:source_image] unless args[:source_image].nil? - @source_image_encryption_key = args[:source_image_encryption_key] unless args[:source_image_encryption_key].nil? - @source_image_id = args[:source_image_id] unless args[:source_image_id].nil? - @source_snapshot = args[:source_snapshot] unless args[:source_snapshot].nil? - @source_snapshot_encryption_key = args[:source_snapshot_encryption_key] unless args[:source_snapshot_encryption_key].nil? - @source_snapshot_id = args[:source_snapshot_id] unless args[:source_snapshot_id].nil? - @status = args[:status] unless args[:status].nil? - @storage_type = args[:storage_type] unless args[:storage_type].nil? - @type = args[:type] unless args[:type].nil? - @users = args[:users] unless args[:users].nil? - @zone = args[:zone] unless args[:zone].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @disk_encryption_key = args[:disk_encryption_key] if args.key?(:disk_encryption_key) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @last_attach_timestamp = args[:last_attach_timestamp] if args.key?(:last_attach_timestamp) + @last_detach_timestamp = args[:last_detach_timestamp] if args.key?(:last_detach_timestamp) + @licenses = args[:licenses] if args.key?(:licenses) + @name = args[:name] if args.key?(:name) + @options = args[:options] if args.key?(:options) + @self_link = args[:self_link] if args.key?(:self_link) + @size_gb = args[:size_gb] if args.key?(:size_gb) + @source_image = args[:source_image] if args.key?(:source_image) + @source_image_encryption_key = args[:source_image_encryption_key] if args.key?(:source_image_encryption_key) + @source_image_id = args[:source_image_id] if args.key?(:source_image_id) + @source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot) + @source_snapshot_encryption_key = args[:source_snapshot_encryption_key] if args.key?(:source_snapshot_encryption_key) + @source_snapshot_id = args[:source_snapshot_id] if args.key?(:source_snapshot_id) + @status = args[:status] if args.key?(:status) + @storage_type = args[:storage_type] if args.key?(:storage_type) + @type = args[:type] if args.key?(:type) + @users = args[:users] if args.key?(:users) + @zone = args[:zone] if args.key?(:zone) end end @@ -1500,11 +1500,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -1548,11 +1548,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -1618,16 +1618,16 @@ module Google # Update properties of this object def update!(**args) - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @default_disk_size_gb = args[:default_disk_size_gb] unless args[:default_disk_size_gb].nil? - @deprecated = args[:deprecated] unless args[:deprecated].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? - @valid_disk_size = args[:valid_disk_size] unless args[:valid_disk_size].nil? - @zone = args[:zone] unless args[:zone].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @default_disk_size_gb = args[:default_disk_size_gb] if args.key?(:default_disk_size_gb) + @deprecated = args[:deprecated] if args.key?(:deprecated) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @valid_disk_size = args[:valid_disk_size] if args.key?(:valid_disk_size) + @zone = args[:zone] if args.key?(:zone) end end @@ -1671,11 +1671,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -1719,11 +1719,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -1748,8 +1748,8 @@ module Google # Update properties of this object def update!(**args) - @disk_types = args[:disk_types] unless args[:disk_types].nil? - @warning = args[:warning] unless args[:warning].nil? + @disk_types = args[:disk_types] if args.key?(:disk_types) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] Informational warning which replaces the list of disk types when @@ -1780,9 +1780,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -1811,8 +1811,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -1833,7 +1833,7 @@ module Google # Update properties of this object def update!(**args) - @size_gb = args[:size_gb] unless args[:size_gb].nil? + @size_gb = args[:size_gb] if args.key?(:size_gb) end end @@ -1858,8 +1858,8 @@ module Google # Update properties of this object def update!(**args) - @disks = args[:disks] unless args[:disks].nil? - @warning = args[:warning] unless args[:warning].nil? + @disks = args[:disks] if args.key?(:disks) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] Informational warning which replaces the list of disks when the @@ -1890,9 +1890,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -1921,8 +1921,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -2020,17 +2020,17 @@ module Google # Update properties of this object def update!(**args) - @allowed = args[:allowed] unless args[:allowed].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? - @network = args[:network] unless args[:network].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @source_ranges = args[:source_ranges] unless args[:source_ranges].nil? - @source_tags = args[:source_tags] unless args[:source_tags].nil? - @target_tags = args[:target_tags] unless args[:target_tags].nil? + @allowed = args[:allowed] if args.key?(:allowed) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @self_link = args[:self_link] if args.key?(:self_link) + @source_ranges = args[:source_ranges] if args.key?(:source_ranges) + @source_tags = args[:source_tags] if args.key?(:source_tags) + @target_tags = args[:target_tags] if args.key?(:target_tags) end # @@ -2059,8 +2059,8 @@ module Google # Update properties of this object def update!(**args) - @ip_protocol = args[:ip_protocol] unless args[:ip_protocol].nil? - @ports = args[:ports] unless args[:ports].nil? + @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol) + @ports = args[:ports] if args.key?(:ports) end end end @@ -2106,11 +2106,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -2202,17 +2202,17 @@ module Google # Update properties of this object def update!(**args) - @ip_address = args[:ip_address] unless args[:ip_address].nil? - @ip_protocol = args[:ip_protocol] unless args[:ip_protocol].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? - @port_range = args[:port_range] unless args[:port_range].nil? - @region = args[:region] unless args[:region].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @target = args[:target] unless args[:target].nil? + @ip_address = args[:ip_address] if args.key?(:ip_address) + @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @port_range = args[:port_range] if args.key?(:port_range) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @target = args[:target] if args.key?(:target) end end @@ -2256,11 +2256,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -2303,11 +2303,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -2332,8 +2332,8 @@ module Google # Update properties of this object def update!(**args) - @forwarding_rules = args[:forwarding_rules] unless args[:forwarding_rules].nil? - @warning = args[:warning] unless args[:warning].nil? + @forwarding_rules = args[:forwarding_rules] if args.key?(:forwarding_rules) + @warning = args[:warning] if args.key?(:warning) end # Informational warning which replaces the list of forwarding rules when the @@ -2364,9 +2364,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -2395,8 +2395,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -2417,7 +2417,7 @@ module Google # Update properties of this object def update!(**args) - @health_check = args[:health_check] unless args[:health_check].nil? + @health_check = args[:health_check] if args.key?(:health_check) end end @@ -2451,10 +2451,10 @@ module Google # Update properties of this object def update!(**args) - @health_state = args[:health_state] unless args[:health_state].nil? - @instance = args[:instance] unless args[:instance].nil? - @ip_address = args[:ip_address] unless args[:ip_address].nil? - @port = args[:port] unless args[:port].nil? + @health_state = args[:health_state] if args.key?(:health_state) + @instance = args[:instance] if args.key?(:instance) + @ip_address = args[:ip_address] if args.key?(:ip_address) + @port = args[:port] if args.key?(:port) end end @@ -2488,9 +2488,9 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @hosts = args[:hosts] unless args[:hosts].nil? - @path_matcher = args[:path_matcher] unless args[:path_matcher].nil? + @description = args[:description] if args.key?(:description) + @hosts = args[:hosts] if args.key?(:hosts) + @path_matcher = args[:path_matcher] if args.key?(:path_matcher) end end @@ -2583,19 +2583,19 @@ module Google # 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? + @check_interval_sec = args[:check_interval_sec] if args.key?(:check_interval_sec) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold) + @host = args[:host] if args.key?(:host) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @port = args[:port] if args.key?(:port) + @request_path = args[:request_path] if args.key?(:request_path) + @self_link = args[:self_link] if args.key?(:self_link) + @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec) + @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold) end end @@ -2638,11 +2638,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -2736,19 +2736,19 @@ module Google # 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? + @check_interval_sec = args[:check_interval_sec] if args.key?(:check_interval_sec) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold) + @host = args[:host] if args.key?(:host) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @port = args[:port] if args.key?(:port) + @request_path = args[:request_path] if args.key?(:request_path) + @self_link = args[:self_link] if args.key?(:self_link) + @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec) + @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold) end end @@ -2791,11 +2791,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -2913,23 +2913,23 @@ module Google # Update properties of this object def update!(**args) - @archive_size_bytes = args[:archive_size_bytes] unless args[:archive_size_bytes].nil? - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @deprecated = args[:deprecated] unless args[:deprecated].nil? - @description = args[:description] unless args[:description].nil? - @disk_size_gb = args[:disk_size_gb] unless args[:disk_size_gb].nil? - @id = args[:id] unless args[:id].nil? - @image_encryption_key = args[:image_encryption_key] unless args[:image_encryption_key].nil? - @kind = args[:kind] unless args[:kind].nil? - @licenses = args[:licenses] unless args[:licenses].nil? - @name = args[:name] unless args[:name].nil? - @raw_disk = args[:raw_disk] unless args[:raw_disk].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @source_disk = args[:source_disk] unless args[:source_disk].nil? - @source_disk_encryption_key = args[:source_disk_encryption_key] unless args[:source_disk_encryption_key].nil? - @source_disk_id = args[:source_disk_id] unless args[:source_disk_id].nil? - @source_type = args[:source_type] unless args[:source_type].nil? - @status = args[:status] unless args[:status].nil? + @archive_size_bytes = args[:archive_size_bytes] if args.key?(:archive_size_bytes) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @deprecated = args[:deprecated] if args.key?(:deprecated) + @description = args[:description] if args.key?(:description) + @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @id = args[:id] if args.key?(:id) + @image_encryption_key = args[:image_encryption_key] if args.key?(:image_encryption_key) + @kind = args[:kind] if args.key?(:kind) + @licenses = args[:licenses] if args.key?(:licenses) + @name = args[:name] if args.key?(:name) + @raw_disk = args[:raw_disk] if args.key?(:raw_disk) + @self_link = args[:self_link] if args.key?(:self_link) + @source_disk = args[:source_disk] if args.key?(:source_disk) + @source_disk_encryption_key = args[:source_disk_encryption_key] if args.key?(:source_disk_encryption_key) + @source_disk_id = args[:source_disk_id] if args.key?(:source_disk_id) + @source_type = args[:source_type] if args.key?(:source_type) + @status = args[:status] if args.key?(:status) end # The parameters of the raw disk image. @@ -2961,9 +2961,9 @@ module Google # Update properties of this object def update!(**args) - @container_type = args[:container_type] unless args[:container_type].nil? - @sha1_checksum = args[:sha1_checksum] unless args[:sha1_checksum].nil? - @source = args[:source] unless args[:source].nil? + @container_type = args[:container_type] if args.key?(:container_type) + @sha1_checksum = args[:sha1_checksum] if args.key?(:sha1_checksum) + @source = args[:source] if args.key?(:source) end end end @@ -3008,11 +3008,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -3162,26 +3162,26 @@ module Google # Update properties of this object def update!(**args) - @can_ip_forward = args[:can_ip_forward] unless args[:can_ip_forward].nil? - @cpu_platform = args[:cpu_platform] unless args[:cpu_platform].nil? - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @description = args[:description] unless args[:description].nil? - @disks = args[:disks] unless args[:disks].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @label_fingerprint = args[:label_fingerprint] unless args[:label_fingerprint].nil? - @labels = args[:labels] unless args[:labels].nil? - @machine_type = args[:machine_type] unless args[:machine_type].nil? - @metadata = args[:metadata] unless args[:metadata].nil? - @name = args[:name] unless args[:name].nil? - @network_interfaces = args[:network_interfaces] unless args[:network_interfaces].nil? - @scheduling = args[:scheduling] unless args[:scheduling].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @service_accounts = args[:service_accounts] unless args[:service_accounts].nil? - @status = args[:status] unless args[:status].nil? - @status_message = args[:status_message] unless args[:status_message].nil? - @tags = args[:tags] unless args[:tags].nil? - @zone = args[:zone] unless args[:zone].nil? + @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward) + @cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @disks = args[:disks] if args.key?(:disks) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) + @labels = args[:labels] if args.key?(:labels) + @machine_type = args[:machine_type] if args.key?(:machine_type) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) + @scheduling = args[:scheduling] if args.key?(:scheduling) + @self_link = args[:self_link] if args.key?(:self_link) + @service_accounts = args[:service_accounts] if args.key?(:service_accounts) + @status = args[:status] if args.key?(:status) + @status_message = args[:status_message] if args.key?(:status_message) + @tags = args[:tags] if args.key?(:tags) + @zone = args[:zone] if args.key?(:zone) end end @@ -3226,11 +3226,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -3317,18 +3317,18 @@ module Google # 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? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @id = args[:id] unless args[:id].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? - @network = args[:network] unless args[:network].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @size = args[:size] unless args[:size].nil? - @subnetwork = args[:subnetwork] unless args[:subnetwork].nil? - @zone = args[:zone] unless args[:zone].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @named_ports = args[:named_ports] if args.key?(:named_ports) + @network = args[:network] if args.key?(:network) + @self_link = args[:self_link] if args.key?(:self_link) + @size = args[:size] if args.key?(:size) + @subnetwork = args[:subnetwork] if args.key?(:subnetwork) + @zone = args[:zone] if args.key?(:zone) end end @@ -3373,11 +3373,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -3422,11 +3422,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -3541,22 +3541,22 @@ 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? - @description = args[:description] unless args[:description].nil? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @id = args[:id] unless args[:id].nil? - @instance_group = args[:instance_group] unless args[:instance_group].nil? - @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? - @zone = args[:zone] unless args[:zone].nil? + @auto_healing_policies = args[:auto_healing_policies] if args.key?(:auto_healing_policies) + @base_instance_name = args[:base_instance_name] if args.key?(:base_instance_name) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @current_actions = args[:current_actions] if args.key?(:current_actions) + @description = args[:description] if args.key?(:description) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @id = args[:id] if args.key?(:id) + @instance_group = args[:instance_group] if args.key?(:instance_group) + @instance_template = args[:instance_template] if args.key?(:instance_template) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @named_ports = args[:named_ports] if args.key?(:named_ports) + @self_link = args[:self_link] if args.key?(:self_link) + @target_pools = args[:target_pools] if args.key?(:target_pools) + @target_size = args[:target_size] if args.key?(:target_size) + @zone = args[:zone] if args.key?(:zone) end end @@ -3618,13 +3618,13 @@ module Google # Update properties of this object def update!(**args) - @abandoning = args[:abandoning] unless args[:abandoning].nil? - @creating = args[:creating] unless args[:creating].nil? - @deleting = args[:deleting] unless args[:deleting].nil? - @none = args[:none] unless args[:none].nil? - @recreating = args[:recreating] unless args[:recreating].nil? - @refreshing = args[:refreshing] unless args[:refreshing].nil? - @restarting = args[:restarting] unless args[:restarting].nil? + @abandoning = args[:abandoning] if args.key?(:abandoning) + @creating = args[:creating] if args.key?(:creating) + @deleting = args[:deleting] if args.key?(:deleting) + @none = args[:none] if args.key?(:none) + @recreating = args[:recreating] if args.key?(:recreating) + @refreshing = args[:refreshing] if args.key?(:refreshing) + @restarting = args[:restarting] if args.key?(:restarting) end end @@ -3670,11 +3670,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -3702,8 +3702,8 @@ module Google # Update properties of this object def update!(**args) - @health_check = args[:health_check] unless args[:health_check].nil? - @initial_delay_sec = args[:initial_delay_sec] unless args[:initial_delay_sec].nil? + @health_check = args[:health_check] if args.key?(:health_check) + @initial_delay_sec = args[:initial_delay_sec] if args.key?(:initial_delay_sec) end end @@ -3748,11 +3748,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -3771,7 +3771,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -3791,7 +3791,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -3810,7 +3810,7 @@ module Google # Update properties of this object def update!(**args) - @managed_instances = args[:managed_instances] unless args[:managed_instances].nil? + @managed_instances = args[:managed_instances] if args.key?(:managed_instances) end end @@ -3829,7 +3829,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -3855,8 +3855,8 @@ module Google # Update properties of this object def update!(**args) - @instance_group_managers = args[:instance_group_managers] unless args[:instance_group_managers].nil? - @warning = args[:warning] unless args[:warning].nil? + @instance_group_managers = args[:instance_group_managers] if args.key?(:instance_group_managers) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] The warning that replaces the list of managed instance groups @@ -3887,9 +3887,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -3918,8 +3918,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -3940,7 +3940,7 @@ module Google # Update properties of this object def update!(**args) - @auto_healing_policies = args[:auto_healing_policies] unless args[:auto_healing_policies].nil? + @auto_healing_policies = args[:auto_healing_policies] if args.key?(:auto_healing_policies) end end @@ -3961,7 +3961,7 @@ module Google # Update properties of this object def update!(**args) - @instance_template = args[:instance_template] unless args[:instance_template].nil? + @instance_template = args[:instance_template] if args.key?(:instance_template) end end @@ -3992,8 +3992,8 @@ module Google # Update properties of this object def update!(**args) - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @target_pools = args[:target_pools] unless args[:target_pools].nil? + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @target_pools = args[:target_pools] if args.key?(:target_pools) end end @@ -4012,7 +4012,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -4059,11 +4059,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -4084,7 +4084,7 @@ module Google # Update properties of this object def update!(**args) - @instance_state = args[:instance_state] unless args[:instance_state].nil? + @instance_state = args[:instance_state] if args.key?(:instance_state) end end @@ -4103,7 +4103,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -4128,8 +4128,8 @@ module Google # Update properties of this object def update!(**args) - @instance_groups = args[:instance_groups] unless args[:instance_groups].nil? - @warning = args[:warning] unless args[:warning].nil? + @instance_groups = args[:instance_groups] if args.key?(:instance_groups) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] An informational warning that replaces the list of instance @@ -4160,9 +4160,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -4191,8 +4191,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -4223,8 +4223,8 @@ module Google # Update properties of this object def update!(**args) - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @named_ports = args[:named_ports] unless args[:named_ports].nil? + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @named_ports = args[:named_ports] if args.key?(:named_ports) end end @@ -4269,11 +4269,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -4342,15 +4342,15 @@ module Google # Update properties of this object def update!(**args) - @can_ip_forward = args[:can_ip_forward] unless args[:can_ip_forward].nil? - @description = args[:description] unless args[:description].nil? - @disks = args[:disks] unless args[:disks].nil? - @machine_type = args[:machine_type] unless args[:machine_type].nil? - @metadata = args[:metadata] unless args[:metadata].nil? - @network_interfaces = args[:network_interfaces] unless args[:network_interfaces].nil? - @scheduling = args[:scheduling] unless args[:scheduling].nil? - @service_accounts = args[:service_accounts] unless args[:service_accounts].nil? - @tags = args[:tags] unless args[:tags].nil? + @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward) + @description = args[:description] if args.key?(:description) + @disks = args[:disks] if args.key?(:disks) + @machine_type = args[:machine_type] if args.key?(:machine_type) + @metadata = args[:metadata] if args.key?(:metadata) + @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) + @scheduling = args[:scheduling] if args.key?(:scheduling) + @service_accounts = args[:service_accounts] if args.key?(:service_accounts) + @tags = args[:tags] if args.key?(:tags) end end @@ -4369,7 +4369,7 @@ module Google # Update properties of this object def update!(**args) - @instance = args[:instance] unless args[:instance].nil? + @instance = args[:instance] if args.key?(:instance) end end @@ -4427,13 +4427,13 @@ module Google # 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? - @properties = args[:properties] unless args[:properties].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @properties = args[:properties] if args.key?(:properties) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -4479,11 +4479,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -4512,9 +4512,9 @@ module Google # Update properties of this object def update!(**args) - @instance = args[:instance] unless args[:instance].nil? - @named_ports = args[:named_ports] unless args[:named_ports].nil? - @status = args[:status] unless args[:status].nil? + @instance = args[:instance] if args.key?(:instance) + @named_ports = args[:named_ports] if args.key?(:named_ports) + @status = args[:status] if args.key?(:status) end end @@ -4539,8 +4539,8 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? - @warning = args[:warning] unless args[:warning].nil? + @instances = args[:instances] if args.key?(:instances) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] Informational warning which replaces the list of instances when @@ -4571,9 +4571,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -4602,8 +4602,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -4631,8 +4631,8 @@ module Google # Update properties of this object def update!(**args) - @label_fingerprint = args[:label_fingerprint] unless args[:label_fingerprint].nil? - @labels = args[:labels] unless args[:labels].nil? + @label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint) + @labels = args[:labels] if args.key?(:labels) end end @@ -4653,7 +4653,7 @@ module Google # Update properties of this object def update!(**args) - @machine_type = args[:machine_type] unless args[:machine_type].nil? + @machine_type = args[:machine_type] if args.key?(:machine_type) end end @@ -4690,10 +4690,10 @@ module Google # Update properties of this object def update!(**args) - @charges_use_fee = args[:charges_use_fee] unless args[:charges_use_fee].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? + @charges_use_fee = args[:charges_use_fee] if args.key?(:charges_use_fee) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -4771,18 +4771,18 @@ module Google # Update properties of this object def update!(**args) - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @deprecated = args[:deprecated] unless args[:deprecated].nil? - @description = args[:description] unless args[:description].nil? - @guest_cpus = args[:guest_cpus] unless args[:guest_cpus].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @maximum_persistent_disks = args[:maximum_persistent_disks] unless args[:maximum_persistent_disks].nil? - @maximum_persistent_disks_size_gb = args[:maximum_persistent_disks_size_gb] unless args[:maximum_persistent_disks_size_gb].nil? - @memory_mb = args[:memory_mb] unless args[:memory_mb].nil? - @name = args[:name] unless args[:name].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @zone = args[:zone] unless args[:zone].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @deprecated = args[:deprecated] if args.key?(:deprecated) + @description = args[:description] if args.key?(:description) + @guest_cpus = args[:guest_cpus] if args.key?(:guest_cpus) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @maximum_persistent_disks = args[:maximum_persistent_disks] if args.key?(:maximum_persistent_disks) + @maximum_persistent_disks_size_gb = args[:maximum_persistent_disks_size_gb] if args.key?(:maximum_persistent_disks_size_gb) + @memory_mb = args[:memory_mb] if args.key?(:memory_mb) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @zone = args[:zone] if args.key?(:zone) end end @@ -4827,11 +4827,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -4876,11 +4876,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -4905,8 +4905,8 @@ module Google # Update properties of this object def update!(**args) - @machine_types = args[:machine_types] unless args[:machine_types].nil? - @warning = args[:warning] unless args[:warning].nil? + @machine_types = args[:machine_types] if args.key?(:machine_types) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] An informational warning that appears when the machine types @@ -4937,9 +4937,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -4968,8 +4968,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -5031,11 +5031,11 @@ module Google # Update properties of this object def update!(**args) - @current_action = args[:current_action] unless args[:current_action].nil? - @id = args[:id] unless args[:id].nil? - @instance = args[:instance] unless args[:instance].nil? - @instance_status = args[:instance_status] unless args[:instance_status].nil? - @last_attempt = args[:last_attempt] unless args[:last_attempt].nil? + @current_action = args[:current_action] if args.key?(:current_action) + @id = args[:id] if args.key?(:id) + @instance = args[:instance] if args.key?(:instance) + @instance_status = args[:instance_status] if args.key?(:instance_status) + @last_attempt = args[:last_attempt] if args.key?(:last_attempt) end end @@ -5055,7 +5055,7 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? + @errors = args[:errors] if args.key?(:errors) end # [Output Only] Encountered errors during the last attempt to create or delete @@ -5074,7 +5074,7 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? + @errors = args[:errors] if args.key?(:errors) end # @@ -5103,9 +5103,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @location = args[:location] if args.key?(:location) + @message = args[:message] if args.key?(:message) end end end @@ -5141,9 +5141,9 @@ module Google # Update properties of this object def update!(**args) - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end # @@ -5172,8 +5172,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -5199,8 +5199,8 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @port = args[:port] unless args[:port].nil? + @name = args[:name] if args.key?(:name) + @port = args[:port] if args.key?(:port) end end @@ -5280,16 +5280,16 @@ module Google # Update properties of this object def update!(**args) - @i_pv4_range = args[:i_pv4_range] unless args[:i_pv4_range].nil? - @auto_create_subnetworks = args[:auto_create_subnetworks] unless args[:auto_create_subnetworks].nil? - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @description = args[:description] unless args[:description].nil? - @gateway_i_pv4 = args[:gateway_i_pv4] unless args[:gateway_i_pv4].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? - @subnetworks = args[:subnetworks] unless args[:subnetworks].nil? + @i_pv4_range = args[:i_pv4_range] if args.key?(:i_pv4_range) + @auto_create_subnetworks = args[:auto_create_subnetworks] if args.key?(:auto_create_subnetworks) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @gateway_i_pv4 = args[:gateway_i_pv4] if args.key?(:gateway_i_pv4) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @subnetworks = args[:subnetworks] if args.key?(:subnetworks) end end @@ -5349,11 +5349,11 @@ module Google # Update properties of this object def update!(**args) - @access_configs = args[:access_configs] unless args[:access_configs].nil? - @name = args[:name] unless args[:name].nil? - @network = args[:network] unless args[:network].nil? - @network_ip = args[:network_ip] unless args[:network_ip].nil? - @subnetwork = args[:subnetwork] unless args[:subnetwork].nil? + @access_configs = args[:access_configs] if args.key?(:access_configs) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @network_ip = args[:network_ip] if args.key?(:network_ip) + @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end end @@ -5398,11 +5398,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -5550,29 +5550,29 @@ module Google # 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? - @description = args[:description] unless args[:description].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? + @client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @end_time = args[:end_time] if args.key?(:end_time) + @error = args[:error] if args.key?(:error) + @http_error_message = args[:http_error_message] if args.key?(:http_error_message) + @http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code) + @id = args[:id] if args.key?(:id) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @progress = args[:progress] if args.key?(:progress) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @start_time = args[:start_time] if args.key?(:start_time) + @status = args[:status] if args.key?(:status) + @status_message = args[:status_message] if args.key?(:status_message) + @target_id = args[:target_id] if args.key?(:target_id) + @target_link = args[:target_link] if args.key?(:target_link) + @user = args[:user] if args.key?(:user) + @warnings = args[:warnings] if args.key?(:warnings) + @zone = args[:zone] if args.key?(:zone) end # [Output Only] If errors are generated during processing of the operation, this @@ -5591,7 +5591,7 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? + @errors = args[:errors] if args.key?(:errors) end # @@ -5620,9 +5620,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @location = args[:location] if args.key?(:location) + @message = args[:message] if args.key?(:message) end end end @@ -5654,9 +5654,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -5685,8 +5685,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -5733,11 +5733,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -5782,11 +5782,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -5811,8 +5811,8 @@ module Google # Update properties of this object def update!(**args) - @operations = args[:operations] unless args[:operations].nil? - @warning = args[:warning] unless args[:warning].nil? + @operations = args[:operations] if args.key?(:operations) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] Informational warning which replaces the list of operations when @@ -5843,9 +5843,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -5874,8 +5874,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -5921,10 +5921,10 @@ module Google # Update properties of this object def update!(**args) - @default_service = args[:default_service] unless args[:default_service].nil? - @description = args[:description] unless args[:description].nil? - @name = args[:name] unless args[:name].nil? - @path_rules = args[:path_rules] unless args[:path_rules].nil? + @default_service = args[:default_service] if args.key?(:default_service) + @description = args[:description] if args.key?(:description) + @name = args[:name] if args.key?(:name) + @path_rules = args[:path_rules] if args.key?(:path_rules) end end @@ -5952,8 +5952,8 @@ module Google # Update properties of this object def update!(**args) - @paths = args[:paths] unless args[:paths].nil? - @service = args[:service] unless args[:service].nil? + @paths = args[:paths] if args.key?(:paths) + @service = args[:service] if args.key?(:service) end end @@ -6022,16 +6022,16 @@ module Google # Update properties of this object def update!(**args) - @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? - @quotas = args[:quotas] unless args[:quotas].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @usage_export_location = args[:usage_export_location] unless args[:usage_export_location].nil? + @common_instance_metadata = args[:common_instance_metadata] if args.key?(:common_instance_metadata) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @enabled_features = args[:enabled_features] if args.key?(:enabled_features) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @quotas = args[:quotas] if args.key?(:quotas) + @self_link = args[:self_link] if args.key?(:self_link) + @usage_export_location = args[:usage_export_location] if args.key?(:usage_export_location) end end @@ -6060,9 +6060,9 @@ module Google # Update properties of this object def update!(**args) - @limit = args[:limit] unless args[:limit].nil? - @metric = args[:metric] unless args[:metric].nil? - @usage = args[:usage] unless args[:usage].nil? + @limit = args[:limit] if args.key?(:limit) + @metric = args[:metric] if args.key?(:metric) + @usage = args[:usage] if args.key?(:usage) end end @@ -6128,16 +6128,16 @@ module Google # Update properties of this object def update!(**args) - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @deprecated = args[:deprecated] unless args[:deprecated].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? - @quotas = args[:quotas] unless args[:quotas].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @status = args[:status] unless args[:status].nil? - @zones = args[:zones] unless args[:zones].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @deprecated = args[:deprecated] if args.key?(:deprecated) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @quotas = args[:quotas] if args.key?(:quotas) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) + @zones = args[:zones] if args.key?(:zones) end end @@ -6181,11 +6181,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -6204,7 +6204,7 @@ module Google # Update properties of this object def update!(**args) - @group = args[:group] unless args[:group].nil? + @group = args[:group] if args.key?(:group) end end @@ -6325,22 +6325,22 @@ module Google # 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? - @dest_range = args[:dest_range] unless args[:dest_range].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @network = args[:network] unless args[:network].nil? - @next_hop_gateway = args[:next_hop_gateway] unless args[:next_hop_gateway].nil? - @next_hop_instance = args[:next_hop_instance] unless args[:next_hop_instance].nil? - @next_hop_ip = args[:next_hop_ip] unless args[:next_hop_ip].nil? - @next_hop_network = args[:next_hop_network] unless args[:next_hop_network].nil? - @next_hop_vpn_tunnel = args[:next_hop_vpn_tunnel] unless args[:next_hop_vpn_tunnel].nil? - @priority = args[:priority] unless args[:priority].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @tags = args[:tags] unless args[:tags].nil? - @warnings = args[:warnings] unless args[:warnings].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @dest_range = args[:dest_range] if args.key?(:dest_range) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @next_hop_gateway = args[:next_hop_gateway] if args.key?(:next_hop_gateway) + @next_hop_instance = args[:next_hop_instance] if args.key?(:next_hop_instance) + @next_hop_ip = args[:next_hop_ip] if args.key?(:next_hop_ip) + @next_hop_network = args[:next_hop_network] if args.key?(:next_hop_network) + @next_hop_vpn_tunnel = args[:next_hop_vpn_tunnel] if args.key?(:next_hop_vpn_tunnel) + @priority = args[:priority] if args.key?(:priority) + @self_link = args[:self_link] if args.key?(:self_link) + @tags = args[:tags] if args.key?(:tags) + @warnings = args[:warnings] if args.key?(:warnings) end # @@ -6370,9 +6370,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -6401,8 +6401,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -6447,11 +6447,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -6488,9 +6488,9 @@ module Google # Update properties of this object def update!(**args) - @automatic_restart = args[:automatic_restart] unless args[:automatic_restart].nil? - @on_host_maintenance = args[:on_host_maintenance] unless args[:on_host_maintenance].nil? - @preemptible = args[:preemptible] unless args[:preemptible].nil? + @automatic_restart = args[:automatic_restart] if args.key?(:automatic_restart) + @on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance) + @preemptible = args[:preemptible] if args.key?(:preemptible) end end @@ -6520,9 +6520,9 @@ module Google # Update properties of this object def update!(**args) - @contents = args[:contents] unless args[:contents].nil? - @kind = args[:kind] unless args[:kind].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @contents = args[:contents] if args.key?(:contents) + @kind = args[:kind] if args.key?(:kind) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -6546,8 +6546,8 @@ module Google # Update properties of this object def update!(**args) - @email = args[:email] unless args[:email].nil? - @scopes = args[:scopes] unless args[:scopes].nil? + @email = args[:email] if args.key?(:email) + @scopes = args[:scopes] if args.key?(:scopes) end end @@ -6649,21 +6649,21 @@ module Google # 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? - @disk_size_gb = args[:disk_size_gb] unless args[:disk_size_gb].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @licenses = args[:licenses] unless args[:licenses].nil? - @name = args[:name] unless args[:name].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @snapshot_encryption_key = args[:snapshot_encryption_key] unless args[:snapshot_encryption_key].nil? - @source_disk = args[:source_disk] unless args[:source_disk].nil? - @source_disk_encryption_key = args[:source_disk_encryption_key] unless args[:source_disk_encryption_key].nil? - @source_disk_id = args[:source_disk_id] unless args[:source_disk_id].nil? - @status = args[:status] unless args[:status].nil? - @storage_bytes = args[:storage_bytes] unless args[:storage_bytes].nil? - @storage_bytes_status = args[:storage_bytes_status] unless args[:storage_bytes_status].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @licenses = args[:licenses] if args.key?(:licenses) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @snapshot_encryption_key = args[:snapshot_encryption_key] if args.key?(:snapshot_encryption_key) + @source_disk = args[:source_disk] if args.key?(:source_disk) + @source_disk_encryption_key = args[:source_disk_encryption_key] if args.key?(:source_disk_encryption_key) + @source_disk_id = args[:source_disk_id] if args.key?(:source_disk_id) + @status = args[:status] if args.key?(:status) + @storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes) + @storage_bytes_status = args[:storage_bytes_status] if args.key?(:storage_bytes_status) end end @@ -6707,11 +6707,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -6778,14 +6778,14 @@ module Google # 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? + @certificate = args[:certificate] if args.key?(:certificate) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @private_key = args[:private_key] if args.key?(:private_key) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -6828,11 +6828,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -6909,16 +6909,16 @@ module Google # 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? - @gateway_address = args[:gateway_address] unless args[:gateway_address].nil? - @id = args[:id] unless args[:id].nil? - @ip_cidr_range = args[:ip_cidr_range] unless args[:ip_cidr_range].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @network = args[:network] unless args[:network].nil? - @region = args[:region] unless args[:region].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @gateway_address = args[:gateway_address] if args.key?(:gateway_address) + @id = args[:id] if args.key?(:id) + @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -6963,11 +6963,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -7012,11 +7012,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -7040,8 +7040,8 @@ module Google # Update properties of this object def update!(**args) - @subnetworks = args[:subnetworks] unless args[:subnetworks].nil? - @warning = args[:warning] unless args[:warning].nil? + @subnetworks = args[:subnetworks] if args.key?(:subnetworks) + @warning = args[:warning] if args.key?(:warning) end # An informational warning that appears when the list of addresses is empty. @@ -7071,9 +7071,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -7102,8 +7102,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -7135,8 +7135,8 @@ module Google # Update properties of this object def update!(**args) - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @items = args[:items] unless args[:items].nil? + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @items = args[:items] if args.key?(:items) end end @@ -7194,13 +7194,13 @@ module Google # 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? - @url_map = args[:url_map] unless args[:url_map].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @url_map = args[:url_map] if args.key?(:url_map) end end @@ -7245,11 +7245,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -7269,7 +7269,7 @@ module Google # Update properties of this object def update!(**args) - @ssl_certificates = args[:ssl_certificates] unless args[:ssl_certificates].nil? + @ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates) end end @@ -7334,14 +7334,14 @@ module Google # 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? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates) + @url_map = args[:url_map] if args.key?(:url_map) end end @@ -7385,11 +7385,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -7458,15 +7458,15 @@ module Google # 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? - @instance = args[:instance] unless args[:instance].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @nat_policy = args[:nat_policy] unless args[:nat_policy].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @zone = args[:zone] unless args[:zone].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @instance = args[:instance] if args.key?(:instance) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @nat_policy = args[:nat_policy] if args.key?(:nat_policy) + @self_link = args[:self_link] if args.key?(:self_link) + @zone = args[:zone] if args.key?(:zone) end end @@ -7509,11 +7509,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -7557,11 +7557,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -7586,8 +7586,8 @@ module Google # Update properties of this object def update!(**args) - @target_instances = args[:target_instances] unless args[:target_instances].nil? - @warning = args[:warning] unless args[:warning].nil? + @target_instances = args[:target_instances] if args.key?(:target_instances) + @warning = args[:warning] if args.key?(:warning) end # Informational warning which replaces the list of addresses when the list is @@ -7618,9 +7618,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -7649,8 +7649,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -7763,18 +7763,18 @@ module Google # Update properties of this object def update!(**args) - @backup_pool = args[:backup_pool] unless args[:backup_pool].nil? - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @description = args[:description] unless args[:description].nil? - @failover_ratio = args[:failover_ratio] unless args[:failover_ratio].nil? - @health_checks = args[:health_checks] unless args[:health_checks].nil? - @id = args[:id] unless args[:id].nil? - @instances = args[:instances] unless args[:instances].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @region = args[:region] unless args[:region].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @session_affinity = args[:session_affinity] unless args[:session_affinity].nil? + @backup_pool = args[:backup_pool] if args.key?(:backup_pool) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @failover_ratio = args[:failover_ratio] if args.key?(:failover_ratio) + @health_checks = args[:health_checks] if args.key?(:health_checks) + @id = args[:id] if args.key?(:id) + @instances = args[:instances] if args.key?(:instances) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @session_affinity = args[:session_affinity] if args.key?(:session_affinity) end end @@ -7817,11 +7817,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -7845,8 +7845,8 @@ module Google # Update properties of this object def update!(**args) - @health_status = args[:health_status] unless args[:health_status].nil? - @kind = args[:kind] unless args[:kind].nil? + @health_status = args[:health_status] if args.key?(:health_status) + @kind = args[:kind] if args.key?(:kind) end end @@ -7889,11 +7889,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -7912,7 +7912,7 @@ module Google # Update properties of this object def update!(**args) - @health_checks = args[:health_checks] unless args[:health_checks].nil? + @health_checks = args[:health_checks] if args.key?(:health_checks) end end @@ -7931,7 +7931,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -7950,7 +7950,7 @@ module Google # Update properties of this object def update!(**args) - @health_checks = args[:health_checks] unless args[:health_checks].nil? + @health_checks = args[:health_checks] if args.key?(:health_checks) end end @@ -7969,7 +7969,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -7994,8 +7994,8 @@ module Google # Update properties of this object def update!(**args) - @target_pools = args[:target_pools] unless args[:target_pools].nil? - @warning = args[:warning] unless args[:warning].nil? + @target_pools = args[:target_pools] if args.key?(:target_pools) + @warning = args[:warning] if args.key?(:warning) end # Informational warning which replaces the list of addresses when the list is @@ -8026,9 +8026,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -8057,8 +8057,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -8079,7 +8079,7 @@ module Google # Update properties of this object def update!(**args) - @target = args[:target] unless args[:target].nil? + @target = args[:target] if args.key?(:target) end end @@ -8160,17 +8160,17 @@ module Google # 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? - @forwarding_rules = args[:forwarding_rules] unless args[:forwarding_rules].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @network = args[:network] unless args[:network].nil? - @region = args[:region] unless args[:region].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @status = args[:status] unless args[:status].nil? - @tunnels = args[:tunnels] unless args[:tunnels].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @forwarding_rules = args[:forwarding_rules] if args.key?(:forwarding_rules) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) + @tunnels = args[:tunnels] if args.key?(:tunnels) end end @@ -8215,11 +8215,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -8264,11 +8264,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -8293,8 +8293,8 @@ module Google # Update properties of this object def update!(**args) - @target_vpn_gateways = args[:target_vpn_gateways] unless args[:target_vpn_gateways].nil? - @warning = args[:warning] unless args[:warning].nil? + @target_vpn_gateways = args[:target_vpn_gateways] if args.key?(:target_vpn_gateways) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] Informational warning which replaces the list of addresses when @@ -8325,9 +8325,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -8356,8 +8356,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -8393,10 +8393,10 @@ module Google # Update properties of this object def update!(**args) - @actual_service = args[:actual_service] unless args[:actual_service].nil? - @expected_service = args[:expected_service] unless args[:expected_service].nil? - @host = args[:host] unless args[:host].nil? - @path = args[:path] unless args[:path].nil? + @actual_service = args[:actual_service] if args.key?(:actual_service) + @expected_service = args[:expected_service] if args.key?(:expected_service) + @host = args[:host] if args.key?(:host) + @path = args[:path] if args.key?(:path) end end @@ -8478,17 +8478,17 @@ module Google # Update properties of this object def update!(**args) - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @default_service = args[:default_service] unless args[:default_service].nil? - @description = args[:description] unless args[:description].nil? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @host_rules = args[:host_rules] unless args[:host_rules].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @path_matchers = args[:path_matchers] unless args[:path_matchers].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @tests = args[:tests] unless args[:tests].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @default_service = args[:default_service] if args.key?(:default_service) + @description = args[:description] if args.key?(:description) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @host_rules = args[:host_rules] if args.key?(:host_rules) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @path_matchers = args[:path_matchers] if args.key?(:path_matchers) + @self_link = args[:self_link] if args.key?(:self_link) + @tests = args[:tests] if args.key?(:tests) end end @@ -8531,11 +8531,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -8554,7 +8554,7 @@ module Google # Update properties of this object def update!(**args) - @url_map = args[:url_map] unless args[:url_map].nil? + @url_map = args[:url_map] if args.key?(:url_map) end end @@ -8588,10 +8588,10 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @host = args[:host] unless args[:host].nil? - @path = args[:path] unless args[:path].nil? - @service = args[:service] unless args[:service].nil? + @description = args[:description] if args.key?(:description) + @host = args[:host] if args.key?(:host) + @path = args[:path] if args.key?(:path) + @service = args[:service] if args.key?(:service) end end @@ -8629,10 +8629,10 @@ module Google # Update properties of this object def update!(**args) - @load_errors = args[:load_errors] unless args[:load_errors].nil? - @load_succeeded = args[:load_succeeded] unless args[:load_succeeded].nil? - @test_failures = args[:test_failures] unless args[:test_failures].nil? - @test_passed = args[:test_passed] unless args[:test_passed].nil? + @load_errors = args[:load_errors] if args.key?(:load_errors) + @load_succeeded = args[:load_succeeded] if args.key?(:load_succeeded) + @test_failures = args[:test_failures] if args.key?(:test_failures) + @test_passed = args[:test_passed] if args.key?(:test_passed) end end @@ -8653,7 +8653,7 @@ module Google # Update properties of this object def update!(**args) - @resource = args[:resource] unless args[:resource].nil? + @resource = args[:resource] if args.key?(:resource) end end @@ -8672,7 +8672,7 @@ module Google # Update properties of this object def update!(**args) - @result = args[:result] unless args[:result].nil? + @result = args[:result] if args.key?(:result) end end @@ -8705,8 +8705,8 @@ module Google # Update properties of this object def update!(**args) - @bucket_name = args[:bucket_name] unless args[:bucket_name].nil? - @report_name_prefix = args[:report_name_prefix] unless args[:report_name_prefix].nil? + @bucket_name = args[:bucket_name] if args.key?(:bucket_name) + @report_name_prefix = args[:report_name_prefix] if args.key?(:report_name_prefix) end end @@ -8747,9 +8747,9 @@ module Google # @return [String] attr_accessor :kind - # IKE networks to use when establishing the VPN tunnel with peer VPN gateway. - # The value should be a CIDR formatted string, for example: 192.168.0.0/16. The - # ranges should be disjoint. + # Local traffic selector to use when establishing the VPN tunnel with peer VPN + # gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/ + # 16. The ranges should be disjoint. # Corresponds to the JSON property `localTrafficSelector` # @return [Array] attr_accessor :local_traffic_selector @@ -8807,21 +8807,21 @@ module Google # 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? - @detailed_status = args[:detailed_status] unless args[:detailed_status].nil? - @id = args[:id] unless args[:id].nil? - @ike_version = args[:ike_version] unless args[:ike_version].nil? - @kind = args[:kind] unless args[:kind].nil? - @local_traffic_selector = args[:local_traffic_selector] unless args[:local_traffic_selector].nil? - @name = args[:name] unless args[:name].nil? - @peer_ip = args[:peer_ip] unless args[:peer_ip].nil? - @region = args[:region] unless args[:region].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @shared_secret = args[:shared_secret] unless args[:shared_secret].nil? - @shared_secret_hash = args[:shared_secret_hash] unless args[:shared_secret_hash].nil? - @status = args[:status] unless args[:status].nil? - @target_vpn_gateway = args[:target_vpn_gateway] unless args[:target_vpn_gateway].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @detailed_status = args[:detailed_status] if args.key?(:detailed_status) + @id = args[:id] if args.key?(:id) + @ike_version = args[:ike_version] if args.key?(:ike_version) + @kind = args[:kind] if args.key?(:kind) + @local_traffic_selector = args[:local_traffic_selector] if args.key?(:local_traffic_selector) + @name = args[:name] if args.key?(:name) + @peer_ip = args[:peer_ip] if args.key?(:peer_ip) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @shared_secret = args[:shared_secret] if args.key?(:shared_secret) + @shared_secret_hash = args[:shared_secret_hash] if args.key?(:shared_secret_hash) + @status = args[:status] if args.key?(:status) + @target_vpn_gateway = args[:target_vpn_gateway] if args.key?(:target_vpn_gateway) end end @@ -8865,11 +8865,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -8913,11 +8913,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -8942,8 +8942,8 @@ module Google # Update properties of this object def update!(**args) - @vpn_tunnels = args[:vpn_tunnels] unless args[:vpn_tunnels].nil? - @warning = args[:warning] unless args[:warning].nil? + @vpn_tunnels = args[:vpn_tunnels] if args.key?(:vpn_tunnels) + @warning = args[:warning] if args.key?(:warning) end # Informational warning which replaces the list of addresses when the list is @@ -8974,9 +8974,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -9005,8 +9005,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -9075,16 +9075,16 @@ module Google # Update properties of this object def update!(**args) - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @deprecated = args[:deprecated] unless args[:deprecated].nil? - @description = args[:description] unless args[:description].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @maintenance_windows = args[:maintenance_windows] unless args[:maintenance_windows].nil? - @name = args[:name] unless args[:name].nil? - @region = args[:region] unless args[:region].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @status = args[:status] unless args[:status].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @deprecated = args[:deprecated] if args.key?(:deprecated) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @maintenance_windows = args[:maintenance_windows] if args.key?(:maintenance_windows) + @name = args[:name] if args.key?(:name) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) end # @@ -9117,10 +9117,10 @@ module Google # Update properties of this object def update!(**args) - @begin_time = args[:begin_time] unless args[:begin_time].nil? - @description = args[:description] unless args[:description].nil? - @end_time = args[:end_time] unless args[:end_time].nil? - @name = args[:name] unless args[:name].nil? + @begin_time = args[:begin_time] if args.key?(:begin_time) + @description = args[:description] if args.key?(:description) + @end_time = args[:end_time] if args.key?(:end_time) + @name = args[:name] if args.key?(:name) end end end @@ -9164,11 +9164,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end end diff --git a/generated/google/apis/compute_beta/service.rb b/generated/google/apis/compute_beta/service.rb index f47aa1d77..0535bcdb1 100644 --- a/generated/google/apis/compute_beta/service.rb +++ b/generated/google/apis/compute_beta/service.rb @@ -6499,44 +6499,6 @@ module Google execute_or_queue_command(command, &block) end - # [Deprecated] Use setUsageExportBucket instead. - # @param [String] project - # Project ID for this request. - # @param [Google::Apis::ComputeBeta::UsageExportLocation] usage_export_location_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::ComputeBeta::Operation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ComputeBeta::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_project_usage_export_cloud_storage_bucket(project, usage_export_location_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/setUsageExportCloudStorageBucket', options) - command.request_representation = Google::Apis::ComputeBeta::UsageExportLocation::Representation - command.request_object = usage_export_location_object - command.response_representation = Google::Apis::ComputeBeta::Operation::Representation - command.response_class = Google::Apis::ComputeBeta::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 - # Deletes the specified region-specific Operations resource. # @param [String] project # Project ID for this request. diff --git a/generated/google/apis/compute_v1.rb b/generated/google/apis/compute_v1.rb index 989d404d6..0dd5697a7 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 = '20160112' + REVISION = '20160120' # 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 afd3088df..17ab7e5a1 100644 --- a/generated/google/apis/compute_v1/classes.rb +++ b/generated/google/apis/compute_v1/classes.rb @@ -57,10 +57,10 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @nat_ip = args[:nat_ip] unless args[:nat_ip].nil? - @type = args[:type] unless args[:type].nil? + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @nat_ip = args[:nat_ip] if args.key?(:nat_ip) + @type = args[:type] if args.key?(:type) end end @@ -135,16 +135,16 @@ module Google # Update properties of this object def update!(**args) - @address = args[:address] unless args[:address].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? - @region = args[:region] unless args[:region].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @status = args[:status] unless args[:status].nil? - @users = args[:users] unless args[:users].nil? + @address = args[:address] if args.key?(:address) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) + @users = args[:users] if args.key?(:users) end end @@ -188,11 +188,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -237,11 +237,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -266,8 +266,8 @@ module Google # Update properties of this object def update!(**args) - @addresses = args[:addresses] unless args[:addresses].nil? - @warning = args[:warning] unless args[:warning].nil? + @addresses = args[:addresses] if args.key?(:addresses) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] Informational warning which replaces the list of addresses when @@ -298,9 +298,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -329,8 +329,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -424,17 +424,17 @@ module Google # Update properties of this object def update!(**args) - @auto_delete = args[:auto_delete] unless args[:auto_delete].nil? - @boot = args[:boot] unless args[:boot].nil? - @device_name = args[:device_name] unless args[:device_name].nil? - @index = args[:index] unless args[:index].nil? - @initialize_params = args[:initialize_params] unless args[:initialize_params].nil? - @interface = args[:interface] unless args[:interface].nil? - @kind = args[:kind] unless args[:kind].nil? - @licenses = args[:licenses] unless args[:licenses].nil? - @mode = args[:mode] unless args[:mode].nil? - @source = args[:source] unless args[:source].nil? - @type = args[:type] unless args[:type].nil? + @auto_delete = args[:auto_delete] if args.key?(:auto_delete) + @boot = args[:boot] if args.key?(:boot) + @device_name = args[:device_name] if args.key?(:device_name) + @index = args[:index] if args.key?(:index) + @initialize_params = args[:initialize_params] if args.key?(:initialize_params) + @interface = args[:interface] if args.key?(:interface) + @kind = args[:kind] if args.key?(:kind) + @licenses = args[:licenses] if args.key?(:licenses) + @mode = args[:mode] if args.key?(:mode) + @source = args[:source] if args.key?(:source) + @type = args[:type] if args.key?(:type) end end @@ -492,10 +492,10 @@ module Google # Update properties of this object def update!(**args) - @disk_name = args[:disk_name] unless args[:disk_name].nil? - @disk_size_gb = args[:disk_size_gb] unless args[:disk_size_gb].nil? - @disk_type = args[:disk_type] unless args[:disk_type].nil? - @source_image = args[:source_image] unless args[:source_image].nil? + @disk_name = args[:disk_name] if args.key?(:disk_name) + @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @disk_type = args[:disk_type] if args.key?(:disk_type) + @source_image = args[:source_image] if args.key?(:source_image) end end @@ -562,15 +562,15 @@ module Google # Update properties of this object def update!(**args) - @autoscaling_policy = args[:autoscaling_policy] unless args[:autoscaling_policy].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? - @self_link = args[:self_link] unless args[:self_link].nil? - @target = args[:target] unless args[:target].nil? - @zone = args[:zone] unless args[:zone].nil? + @autoscaling_policy = args[:autoscaling_policy] if args.key?(:autoscaling_policy) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @target = args[:target] if args.key?(:target) + @zone = args[:zone] if args.key?(:zone) end end @@ -614,11 +614,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -662,11 +662,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -691,8 +691,8 @@ module Google # Update properties of this object def update!(**args) - @autoscalers = args[:autoscalers] unless args[:autoscalers].nil? - @warning = args[:warning] unless args[:warning].nil? + @autoscalers = args[:autoscalers] if args.key?(:autoscalers) + @warning = args[:warning] if args.key?(:warning) end # Informational warning which replaces the list of autoscalers when the list is @@ -723,9 +723,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -754,8 +754,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -810,12 +810,12 @@ module Google # Update properties of this object def update!(**args) - @cool_down_period_sec = args[:cool_down_period_sec] unless args[:cool_down_period_sec].nil? - @cpu_utilization = args[:cpu_utilization] unless args[:cpu_utilization].nil? - @custom_metric_utilizations = args[:custom_metric_utilizations] unless args[:custom_metric_utilizations].nil? - @load_balancing_utilization = args[:load_balancing_utilization] unless args[:load_balancing_utilization].nil? - @max_num_replicas = args[:max_num_replicas] unless args[:max_num_replicas].nil? - @min_num_replicas = args[:min_num_replicas] unless args[:min_num_replicas].nil? + @cool_down_period_sec = args[:cool_down_period_sec] if args.key?(:cool_down_period_sec) + @cpu_utilization = args[:cpu_utilization] if args.key?(:cpu_utilization) + @custom_metric_utilizations = args[:custom_metric_utilizations] if args.key?(:custom_metric_utilizations) + @load_balancing_utilization = args[:load_balancing_utilization] if args.key?(:load_balancing_utilization) + @max_num_replicas = args[:max_num_replicas] if args.key?(:max_num_replicas) + @min_num_replicas = args[:min_num_replicas] if args.key?(:min_num_replicas) end end @@ -837,7 +837,7 @@ module Google # Update properties of this object def update!(**args) - @utilization_target = args[:utilization_target] unless args[:utilization_target].nil? + @utilization_target = args[:utilization_target] if args.key?(:utilization_target) end end @@ -871,9 +871,9 @@ module Google # Update properties of this object def update!(**args) - @metric = args[:metric] unless args[:metric].nil? - @utilization_target = args[:utilization_target] unless args[:utilization_target].nil? - @utilization_target_type = args[:utilization_target_type] unless args[:utilization_target_type].nil? + @metric = args[:metric] if args.key?(:metric) + @utilization_target = args[:utilization_target] if args.key?(:utilization_target) + @utilization_target_type = args[:utilization_target_type] if args.key?(:utilization_target_type) end end @@ -897,7 +897,7 @@ module Google # Update properties of this object def update!(**args) - @utilization_target = args[:utilization_target] unless args[:utilization_target].nil? + @utilization_target = args[:utilization_target] if args.key?(:utilization_target) end end @@ -964,13 +964,13 @@ module Google # Update properties of this object def update!(**args) - @balancing_mode = args[:balancing_mode] unless args[:balancing_mode].nil? - @capacity_scaler = args[:capacity_scaler] unless args[:capacity_scaler].nil? - @description = args[:description] unless args[:description].nil? - @group = args[:group] unless args[:group].nil? - @max_rate = args[:max_rate] unless args[:max_rate].nil? - @max_rate_per_instance = args[:max_rate_per_instance] unless args[:max_rate_per_instance].nil? - @max_utilization = args[:max_utilization] unless args[:max_utilization].nil? + @balancing_mode = args[:balancing_mode] if args.key?(:balancing_mode) + @capacity_scaler = args[:capacity_scaler] if args.key?(:capacity_scaler) + @description = args[:description] if args.key?(:description) + @group = args[:group] if args.key?(:group) + @max_rate = args[:max_rate] if args.key?(:max_rate) + @max_rate_per_instance = args[:max_rate_per_instance] if args.key?(:max_rate_per_instance) + @max_utilization = args[:max_utilization] if args.key?(:max_utilization) end end @@ -1055,7 +1055,7 @@ module Google attr_accessor :self_link # How many seconds to wait for the backend before considering it a failed - # request. Default is 30 seconds. + # request. Default is 30 seconds. Valid range is [1, 86400]. # Corresponds to the JSON property `timeoutSec` # @return [Fixnum] attr_accessor :timeout_sec @@ -1066,19 +1066,19 @@ module Google # Update properties of this object def update!(**args) - @backends = args[:backends] unless args[:backends].nil? - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @description = args[:description] unless args[:description].nil? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @health_checks = args[:health_checks] unless args[:health_checks].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? - @port_name = args[:port_name] unless args[:port_name].nil? - @protocol = args[:protocol] unless args[:protocol].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @timeout_sec = args[:timeout_sec] unless args[:timeout_sec].nil? + @backends = args[:backends] if args.key?(:backends) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @health_checks = args[:health_checks] if args.key?(:health_checks) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @port = args[:port] if args.key?(:port) + @port_name = args[:port_name] if args.key?(:port_name) + @protocol = args[:protocol] if args.key?(:protocol) + @self_link = args[:self_link] if args.key?(:self_link) + @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec) end end @@ -1103,8 +1103,8 @@ module Google # Update properties of this object def update!(**args) - @health_status = args[:health_status] unless args[:health_status].nil? - @kind = args[:kind] unless args[:kind].nil? + @health_status = args[:health_status] if args.key?(:health_status) + @kind = args[:kind] if args.key?(:kind) end end @@ -1149,11 +1149,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -1201,11 +1201,11 @@ module Google # Update properties of this object def update!(**args) - @deleted = args[:deleted] unless args[:deleted].nil? - @deprecated = args[:deprecated] unless args[:deprecated].nil? - @obsolete = args[:obsolete] unless args[:obsolete].nil? - @replacement = args[:replacement] unless args[:replacement].nil? - @state = args[:state] unless args[:state].nil? + @deleted = args[:deleted] if args.key?(:deleted) + @deprecated = args[:deprecated] if args.key?(:deprecated) + @obsolete = args[:obsolete] if args.key?(:obsolete) + @replacement = args[:replacement] if args.key?(:replacement) + @state = args[:state] if args.key?(:state) end end @@ -1355,25 +1355,25 @@ module Google # 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? - @last_attach_timestamp = args[:last_attach_timestamp] unless args[:last_attach_timestamp].nil? - @last_detach_timestamp = args[:last_detach_timestamp] unless args[:last_detach_timestamp].nil? - @licenses = args[:licenses] unless args[:licenses].nil? - @name = args[:name] unless args[:name].nil? - @options = args[:options] unless args[:options].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @size_gb = args[:size_gb] unless args[:size_gb].nil? - @source_image = args[:source_image] unless args[:source_image].nil? - @source_image_id = args[:source_image_id] unless args[:source_image_id].nil? - @source_snapshot = args[:source_snapshot] unless args[:source_snapshot].nil? - @source_snapshot_id = args[:source_snapshot_id] unless args[:source_snapshot_id].nil? - @status = args[:status] unless args[:status].nil? - @type = args[:type] unless args[:type].nil? - @users = args[:users] unless args[:users].nil? - @zone = args[:zone] unless args[:zone].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @last_attach_timestamp = args[:last_attach_timestamp] if args.key?(:last_attach_timestamp) + @last_detach_timestamp = args[:last_detach_timestamp] if args.key?(:last_detach_timestamp) + @licenses = args[:licenses] if args.key?(:licenses) + @name = args[:name] if args.key?(:name) + @options = args[:options] if args.key?(:options) + @self_link = args[:self_link] if args.key?(:self_link) + @size_gb = args[:size_gb] if args.key?(:size_gb) + @source_image = args[:source_image] if args.key?(:source_image) + @source_image_id = args[:source_image_id] if args.key?(:source_image_id) + @source_snapshot = args[:source_snapshot] if args.key?(:source_snapshot) + @source_snapshot_id = args[:source_snapshot_id] if args.key?(:source_snapshot_id) + @status = args[:status] if args.key?(:status) + @type = args[:type] if args.key?(:type) + @users = args[:users] if args.key?(:users) + @zone = args[:zone] if args.key?(:zone) end end @@ -1418,11 +1418,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -1466,11 +1466,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -1502,8 +1502,8 @@ module Google # Update properties of this object def update!(**args) - @destination_zone = args[:destination_zone] unless args[:destination_zone].nil? - @target_disk = args[:target_disk] unless args[:target_disk].nil? + @destination_zone = args[:destination_zone] if args.key?(:destination_zone) + @target_disk = args[:target_disk] if args.key?(:target_disk) end end @@ -1569,16 +1569,16 @@ module Google # Update properties of this object def update!(**args) - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @default_disk_size_gb = args[:default_disk_size_gb] unless args[:default_disk_size_gb].nil? - @deprecated = args[:deprecated] unless args[:deprecated].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? - @valid_disk_size = args[:valid_disk_size] unless args[:valid_disk_size].nil? - @zone = args[:zone] unless args[:zone].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @default_disk_size_gb = args[:default_disk_size_gb] if args.key?(:default_disk_size_gb) + @deprecated = args[:deprecated] if args.key?(:deprecated) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @valid_disk_size = args[:valid_disk_size] if args.key?(:valid_disk_size) + @zone = args[:zone] if args.key?(:zone) end end @@ -1622,11 +1622,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -1670,11 +1670,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -1699,8 +1699,8 @@ module Google # Update properties of this object def update!(**args) - @disk_types = args[:disk_types] unless args[:disk_types].nil? - @warning = args[:warning] unless args[:warning].nil? + @disk_types = args[:disk_types] if args.key?(:disk_types) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] Informational warning which replaces the list of disk types when @@ -1731,9 +1731,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -1762,8 +1762,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -1790,8 +1790,8 @@ module Google # Update properties of this object def update!(**args) - @disks = args[:disks] unless args[:disks].nil? - @warning = args[:warning] unless args[:warning].nil? + @disks = args[:disks] if args.key?(:disks) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] Informational warning which replaces the list of disks when the @@ -1822,9 +1822,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -1853,8 +1853,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -1952,17 +1952,17 @@ module Google # Update properties of this object def update!(**args) - @allowed = args[:allowed] unless args[:allowed].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? - @network = args[:network] unless args[:network].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @source_ranges = args[:source_ranges] unless args[:source_ranges].nil? - @source_tags = args[:source_tags] unless args[:source_tags].nil? - @target_tags = args[:target_tags] unless args[:target_tags].nil? + @allowed = args[:allowed] if args.key?(:allowed) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @self_link = args[:self_link] if args.key?(:self_link) + @source_ranges = args[:source_ranges] if args.key?(:source_ranges) + @source_tags = args[:source_tags] if args.key?(:source_tags) + @target_tags = args[:target_tags] if args.key?(:target_tags) end # @@ -1991,8 +1991,8 @@ module Google # Update properties of this object def update!(**args) - @ip_protocol = args[:ip_protocol] unless args[:ip_protocol].nil? - @ports = args[:ports] unless args[:ports].nil? + @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol) + @ports = args[:ports] if args.key?(:ports) end end end @@ -2038,11 +2038,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -2134,17 +2134,17 @@ module Google # Update properties of this object def update!(**args) - @ip_address = args[:ip_address] unless args[:ip_address].nil? - @ip_protocol = args[:ip_protocol] unless args[:ip_protocol].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? - @port_range = args[:port_range] unless args[:port_range].nil? - @region = args[:region] unless args[:region].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @target = args[:target] unless args[:target].nil? + @ip_address = args[:ip_address] if args.key?(:ip_address) + @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @port_range = args[:port_range] if args.key?(:port_range) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @target = args[:target] if args.key?(:target) end end @@ -2188,11 +2188,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -2235,11 +2235,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -2264,8 +2264,8 @@ module Google # Update properties of this object def update!(**args) - @forwarding_rules = args[:forwarding_rules] unless args[:forwarding_rules].nil? - @warning = args[:warning] unless args[:warning].nil? + @forwarding_rules = args[:forwarding_rules] if args.key?(:forwarding_rules) + @warning = args[:warning] if args.key?(:warning) end # Informational warning which replaces the list of forwarding rules when the @@ -2296,9 +2296,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -2327,8 +2327,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -2349,7 +2349,7 @@ module Google # Update properties of this object def update!(**args) - @health_check = args[:health_check] unless args[:health_check].nil? + @health_check = args[:health_check] if args.key?(:health_check) end end @@ -2383,10 +2383,10 @@ module Google # Update properties of this object def update!(**args) - @health_state = args[:health_state] unless args[:health_state].nil? - @instance = args[:instance] unless args[:instance].nil? - @ip_address = args[:ip_address] unless args[:ip_address].nil? - @port = args[:port] unless args[:port].nil? + @health_state = args[:health_state] if args.key?(:health_state) + @instance = args[:instance] if args.key?(:instance) + @ip_address = args[:ip_address] if args.key?(:ip_address) + @port = args[:port] if args.key?(:port) end end @@ -2420,9 +2420,9 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @hosts = args[:hosts] unless args[:hosts].nil? - @path_matcher = args[:path_matcher] unless args[:path_matcher].nil? + @description = args[:description] if args.key?(:description) + @hosts = args[:hosts] if args.key?(:hosts) + @path_matcher = args[:path_matcher] if args.key?(:path_matcher) end end @@ -2515,19 +2515,19 @@ module Google # 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? + @check_interval_sec = args[:check_interval_sec] if args.key?(:check_interval_sec) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold) + @host = args[:host] if args.key?(:host) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @port = args[:port] if args.key?(:port) + @request_path = args[:request_path] if args.key?(:request_path) + @self_link = args[:self_link] if args.key?(:self_link) + @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec) + @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold) end end @@ -2570,11 +2570,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -2668,19 +2668,19 @@ module Google # 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? + @check_interval_sec = args[:check_interval_sec] if args.key?(:check_interval_sec) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold) + @host = args[:host] if args.key?(:host) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @port = args[:port] if args.key?(:port) + @request_path = args[:request_path] if args.key?(:request_path) + @self_link = args[:self_link] if args.key?(:self_link) + @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec) + @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold) end end @@ -2723,11 +2723,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -2835,21 +2835,21 @@ module Google # Update properties of this object def update!(**args) - @archive_size_bytes = args[:archive_size_bytes] unless args[:archive_size_bytes].nil? - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @deprecated = args[:deprecated] unless args[:deprecated].nil? - @description = args[:description] unless args[:description].nil? - @disk_size_gb = args[:disk_size_gb] unless args[:disk_size_gb].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @licenses = args[:licenses] unless args[:licenses].nil? - @name = args[:name] unless args[:name].nil? - @raw_disk = args[:raw_disk] unless args[:raw_disk].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @source_disk = args[:source_disk] unless args[:source_disk].nil? - @source_disk_id = args[:source_disk_id] unless args[:source_disk_id].nil? - @source_type = args[:source_type] unless args[:source_type].nil? - @status = args[:status] unless args[:status].nil? + @archive_size_bytes = args[:archive_size_bytes] if args.key?(:archive_size_bytes) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @deprecated = args[:deprecated] if args.key?(:deprecated) + @description = args[:description] if args.key?(:description) + @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @licenses = args[:licenses] if args.key?(:licenses) + @name = args[:name] if args.key?(:name) + @raw_disk = args[:raw_disk] if args.key?(:raw_disk) + @self_link = args[:self_link] if args.key?(:self_link) + @source_disk = args[:source_disk] if args.key?(:source_disk) + @source_disk_id = args[:source_disk_id] if args.key?(:source_disk_id) + @source_type = args[:source_type] if args.key?(:source_type) + @status = args[:status] if args.key?(:status) end # The parameters of the raw disk image. @@ -2881,9 +2881,9 @@ module Google # Update properties of this object def update!(**args) - @container_type = args[:container_type] unless args[:container_type].nil? - @sha1_checksum = args[:sha1_checksum] unless args[:sha1_checksum].nil? - @source = args[:source] unless args[:source].nil? + @container_type = args[:container_type] if args.key?(:container_type) + @sha1_checksum = args[:sha1_checksum] if args.key?(:sha1_checksum) + @source = args[:source] if args.key?(:source) end end end @@ -2928,11 +2928,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -3065,24 +3065,24 @@ module Google # Update properties of this object def update!(**args) - @can_ip_forward = args[:can_ip_forward] unless args[:can_ip_forward].nil? - @cpu_platform = args[:cpu_platform] unless args[:cpu_platform].nil? - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @description = args[:description] unless args[:description].nil? - @disks = args[:disks] unless args[:disks].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @machine_type = args[:machine_type] unless args[:machine_type].nil? - @metadata = args[:metadata] unless args[:metadata].nil? - @name = args[:name] unless args[:name].nil? - @network_interfaces = args[:network_interfaces] unless args[:network_interfaces].nil? - @scheduling = args[:scheduling] unless args[:scheduling].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @service_accounts = args[:service_accounts] unless args[:service_accounts].nil? - @status = args[:status] unless args[:status].nil? - @status_message = args[:status_message] unless args[:status_message].nil? - @tags = args[:tags] unless args[:tags].nil? - @zone = args[:zone] unless args[:zone].nil? + @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward) + @cpu_platform = args[:cpu_platform] if args.key?(:cpu_platform) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @disks = args[:disks] if args.key?(:disks) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @machine_type = args[:machine_type] if args.key?(:machine_type) + @metadata = args[:metadata] if args.key?(:metadata) + @name = args[:name] if args.key?(:name) + @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) + @scheduling = args[:scheduling] if args.key?(:scheduling) + @self_link = args[:self_link] if args.key?(:self_link) + @service_accounts = args[:service_accounts] if args.key?(:service_accounts) + @status = args[:status] if args.key?(:status) + @status_message = args[:status_message] if args.key?(:status_message) + @tags = args[:tags] if args.key?(:tags) + @zone = args[:zone] if args.key?(:zone) end end @@ -3127,11 +3127,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -3201,6 +3201,12 @@ module Google # @return [Fixnum] attr_accessor :size + # [Output Only] The URL of the subnetwork to which all instances in the instance + # group belong. + # Corresponds to the JSON property `subnetwork` + # @return [String] + attr_accessor :subnetwork + # [Output Only] The URL of the zone where the instance group is located. # Corresponds to the JSON property `zone` # @return [String] @@ -3212,17 +3218,18 @@ module Google # 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? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @id = args[:id] unless args[:id].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? - @network = args[:network] unless args[:network].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @size = args[:size] unless args[:size].nil? - @zone = args[:zone] unless args[:zone].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @named_ports = args[:named_ports] if args.key?(:named_ports) + @network = args[:network] if args.key?(:network) + @self_link = args[:self_link] if args.key?(:self_link) + @size = args[:size] if args.key?(:size) + @subnetwork = args[:subnetwork] if args.key?(:subnetwork) + @zone = args[:zone] if args.key?(:zone) end end @@ -3267,11 +3274,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -3316,11 +3323,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -3429,21 +3436,21 @@ module Google # Update properties of this object def update!(**args) - @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? - @description = args[:description] unless args[:description].nil? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @id = args[:id] unless args[:id].nil? - @instance_group = args[:instance_group] unless args[:instance_group].nil? - @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? - @zone = args[:zone] unless args[:zone].nil? + @base_instance_name = args[:base_instance_name] if args.key?(:base_instance_name) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @current_actions = args[:current_actions] if args.key?(:current_actions) + @description = args[:description] if args.key?(:description) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @id = args[:id] if args.key?(:id) + @instance_group = args[:instance_group] if args.key?(:instance_group) + @instance_template = args[:instance_template] if args.key?(:instance_template) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @named_ports = args[:named_ports] if args.key?(:named_ports) + @self_link = args[:self_link] if args.key?(:self_link) + @target_pools = args[:target_pools] if args.key?(:target_pools) + @target_size = args[:target_size] if args.key?(:target_size) + @zone = args[:zone] if args.key?(:zone) end end @@ -3505,13 +3512,13 @@ module Google # Update properties of this object def update!(**args) - @abandoning = args[:abandoning] unless args[:abandoning].nil? - @creating = args[:creating] unless args[:creating].nil? - @deleting = args[:deleting] unless args[:deleting].nil? - @none = args[:none] unless args[:none].nil? - @recreating = args[:recreating] unless args[:recreating].nil? - @refreshing = args[:refreshing] unless args[:refreshing].nil? - @restarting = args[:restarting] unless args[:restarting].nil? + @abandoning = args[:abandoning] if args.key?(:abandoning) + @creating = args[:creating] if args.key?(:creating) + @deleting = args[:deleting] if args.key?(:deleting) + @none = args[:none] if args.key?(:none) + @recreating = args[:recreating] if args.key?(:recreating) + @refreshing = args[:refreshing] if args.key?(:refreshing) + @restarting = args[:restarting] if args.key?(:restarting) end end @@ -3557,11 +3564,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -3606,11 +3613,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -3629,7 +3636,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -3649,7 +3656,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -3668,7 +3675,7 @@ module Google # Update properties of this object def update!(**args) - @managed_instances = args[:managed_instances] unless args[:managed_instances].nil? + @managed_instances = args[:managed_instances] if args.key?(:managed_instances) end end @@ -3687,7 +3694,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -3713,8 +3720,8 @@ module Google # Update properties of this object def update!(**args) - @instance_group_managers = args[:instance_group_managers] unless args[:instance_group_managers].nil? - @warning = args[:warning] unless args[:warning].nil? + @instance_group_managers = args[:instance_group_managers] if args.key?(:instance_group_managers) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] The warning that replaces the list of managed instance groups @@ -3745,9 +3752,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -3776,8 +3783,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -3800,7 +3807,7 @@ module Google # Update properties of this object def update!(**args) - @instance_template = args[:instance_template] unless args[:instance_template].nil? + @instance_template = args[:instance_template] if args.key?(:instance_template) end end @@ -3831,8 +3838,8 @@ module Google # Update properties of this object def update!(**args) - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @target_pools = args[:target_pools] unless args[:target_pools].nil? + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @target_pools = args[:target_pools] if args.key?(:target_pools) end end @@ -3851,7 +3858,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -3898,11 +3905,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -3923,7 +3930,7 @@ module Google # Update properties of this object def update!(**args) - @instance_state = args[:instance_state] unless args[:instance_state].nil? + @instance_state = args[:instance_state] if args.key?(:instance_state) end end @@ -3942,7 +3949,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -3967,8 +3974,8 @@ module Google # Update properties of this object def update!(**args) - @instance_groups = args[:instance_groups] unless args[:instance_groups].nil? - @warning = args[:warning] unless args[:warning].nil? + @instance_groups = args[:instance_groups] if args.key?(:instance_groups) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] An informational warning that replaces the list of instance @@ -3999,9 +4006,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -4030,8 +4037,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -4062,8 +4069,8 @@ module Google # Update properties of this object def update!(**args) - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @named_ports = args[:named_ports] unless args[:named_ports].nil? + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @named_ports = args[:named_ports] if args.key?(:named_ports) end end @@ -4108,11 +4115,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -4145,8 +4152,8 @@ module Google # Update properties of this object def update!(**args) - @destination_zone = args[:destination_zone] unless args[:destination_zone].nil? - @target_instance = args[:target_instance] unless args[:target_instance].nil? + @destination_zone = args[:destination_zone] if args.key?(:destination_zone) + @target_instance = args[:target_instance] if args.key?(:target_instance) end end @@ -4215,15 +4222,15 @@ module Google # Update properties of this object def update!(**args) - @can_ip_forward = args[:can_ip_forward] unless args[:can_ip_forward].nil? - @description = args[:description] unless args[:description].nil? - @disks = args[:disks] unless args[:disks].nil? - @machine_type = args[:machine_type] unless args[:machine_type].nil? - @metadata = args[:metadata] unless args[:metadata].nil? - @network_interfaces = args[:network_interfaces] unless args[:network_interfaces].nil? - @scheduling = args[:scheduling] unless args[:scheduling].nil? - @service_accounts = args[:service_accounts] unless args[:service_accounts].nil? - @tags = args[:tags] unless args[:tags].nil? + @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward) + @description = args[:description] if args.key?(:description) + @disks = args[:disks] if args.key?(:disks) + @machine_type = args[:machine_type] if args.key?(:machine_type) + @metadata = args[:metadata] if args.key?(:metadata) + @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) + @scheduling = args[:scheduling] if args.key?(:scheduling) + @service_accounts = args[:service_accounts] if args.key?(:service_accounts) + @tags = args[:tags] if args.key?(:tags) end end @@ -4242,7 +4249,7 @@ module Google # Update properties of this object def update!(**args) - @instance = args[:instance] unless args[:instance].nil? + @instance = args[:instance] if args.key?(:instance) end end @@ -4300,13 +4307,13 @@ module Google # 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? - @properties = args[:properties] unless args[:properties].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @properties = args[:properties] if args.key?(:properties) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -4352,11 +4359,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -4385,9 +4392,9 @@ module Google # Update properties of this object def update!(**args) - @instance = args[:instance] unless args[:instance].nil? - @named_ports = args[:named_ports] unless args[:named_ports].nil? - @status = args[:status] unless args[:status].nil? + @instance = args[:instance] if args.key?(:instance) + @named_ports = args[:named_ports] if args.key?(:named_ports) + @status = args[:status] if args.key?(:status) end end @@ -4412,8 +4419,8 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? - @warning = args[:warning] unless args[:warning].nil? + @instances = args[:instances] if args.key?(:instances) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] Informational warning which replaces the list of instances when @@ -4444,9 +4451,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -4475,13 +4482,34 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end end + # + class InstancesSetMachineTypeRequest + include Google::Apis::Core::Hashable + + # Full or partial URL of the machine type resource. See Machine Types for a full + # list of machine types. For example: zones/us-central1-f/machineTypes/n1- + # standard-1 + # Corresponds to the JSON property `machineType` + # @return [String] + attr_accessor :machine_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @machine_type = args[:machine_type] if args.key?(:machine_type) + end + end + # A license resource. class License include Google::Apis::Core::Hashable @@ -4515,10 +4543,10 @@ module Google # Update properties of this object def update!(**args) - @charges_use_fee = args[:charges_use_fee] unless args[:charges_use_fee].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? + @charges_use_fee = args[:charges_use_fee] if args.key?(:charges_use_fee) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -4607,20 +4635,20 @@ module Google # Update properties of this object def update!(**args) - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @deprecated = args[:deprecated] unless args[:deprecated].nil? - @description = args[:description] unless args[:description].nil? - @guest_cpus = args[:guest_cpus] unless args[:guest_cpus].nil? - @id = args[:id] unless args[:id].nil? - @image_space_gb = args[:image_space_gb] unless args[:image_space_gb].nil? - @kind = args[:kind] unless args[:kind].nil? - @maximum_persistent_disks = args[:maximum_persistent_disks] unless args[:maximum_persistent_disks].nil? - @maximum_persistent_disks_size_gb = args[:maximum_persistent_disks_size_gb] unless args[:maximum_persistent_disks_size_gb].nil? - @memory_mb = args[:memory_mb] unless args[:memory_mb].nil? - @name = args[:name] unless args[:name].nil? - @scratch_disks = args[:scratch_disks] unless args[:scratch_disks].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @zone = args[:zone] unless args[:zone].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @deprecated = args[:deprecated] if args.key?(:deprecated) + @description = args[:description] if args.key?(:description) + @guest_cpus = args[:guest_cpus] if args.key?(:guest_cpus) + @id = args[:id] if args.key?(:id) + @image_space_gb = args[:image_space_gb] if args.key?(:image_space_gb) + @kind = args[:kind] if args.key?(:kind) + @maximum_persistent_disks = args[:maximum_persistent_disks] if args.key?(:maximum_persistent_disks) + @maximum_persistent_disks_size_gb = args[:maximum_persistent_disks_size_gb] if args.key?(:maximum_persistent_disks_size_gb) + @memory_mb = args[:memory_mb] if args.key?(:memory_mb) + @name = args[:name] if args.key?(:name) + @scratch_disks = args[:scratch_disks] if args.key?(:scratch_disks) + @self_link = args[:self_link] if args.key?(:self_link) + @zone = args[:zone] if args.key?(:zone) end # @@ -4638,7 +4666,7 @@ module Google # Update properties of this object def update!(**args) - @disk_gb = args[:disk_gb] unless args[:disk_gb].nil? + @disk_gb = args[:disk_gb] if args.key?(:disk_gb) end end end @@ -4684,11 +4712,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -4733,11 +4761,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -4762,8 +4790,8 @@ module Google # Update properties of this object def update!(**args) - @machine_types = args[:machine_types] unless args[:machine_types].nil? - @warning = args[:warning] unless args[:warning].nil? + @machine_types = args[:machine_types] if args.key?(:machine_types) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] An informational warning that appears when the machine types @@ -4794,9 +4822,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -4825,8 +4853,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -4888,11 +4916,11 @@ module Google # Update properties of this object def update!(**args) - @current_action = args[:current_action] unless args[:current_action].nil? - @id = args[:id] unless args[:id].nil? - @instance = args[:instance] unless args[:instance].nil? - @instance_status = args[:instance_status] unless args[:instance_status].nil? - @last_attempt = args[:last_attempt] unless args[:last_attempt].nil? + @current_action = args[:current_action] if args.key?(:current_action) + @id = args[:id] if args.key?(:id) + @instance = args[:instance] if args.key?(:instance) + @instance_status = args[:instance_status] if args.key?(:instance_status) + @last_attempt = args[:last_attempt] if args.key?(:last_attempt) end end @@ -4912,7 +4940,7 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? + @errors = args[:errors] if args.key?(:errors) end # [Output Only] Encountered errors during the last attempt to create or delete @@ -4931,7 +4959,7 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? + @errors = args[:errors] if args.key?(:errors) end # @@ -4960,9 +4988,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @location = args[:location] if args.key?(:location) + @message = args[:message] if args.key?(:message) end end end @@ -4998,9 +5026,9 @@ module Google # Update properties of this object def update!(**args) - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end # @@ -5029,8 +5057,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -5056,8 +5084,8 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @port = args[:port] unless args[:port].nil? + @name = args[:name] if args.key?(:name) + @port = args[:port] if args.key?(:port) end end @@ -5072,6 +5100,15 @@ module Google # @return [String] attr_accessor :i_pv4_range + # When set to true, the network is created in "auto subnet mode". When set to + # false, the network is in "custom subnet mode". + # In "auto subnet mode", a newly created network is assigned the default CIDR of + # 10.128.0.0/9 and it automatically creates one subnetwork per region. + # Corresponds to the JSON property `autoCreateSubnetworks` + # @return [Boolean] + attr_accessor :auto_create_subnetworks + alias_method :auto_create_subnetworks?, :auto_create_subnetworks + # [Output Only] Creation timestamp in RFC3339 text format. # Corresponds to the JSON property `creationTimestamp` # @return [String] @@ -5116,20 +5153,28 @@ module Google # @return [String] attr_accessor :self_link + # [Output Only] Server-defined fully-qualified URLs for all subnetworks in this + # network. + # Corresponds to the JSON property `subnetworks` + # @return [Array] + attr_accessor :subnetworks + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @i_pv4_range = args[:i_pv4_range] unless args[:i_pv4_range].nil? - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @description = args[:description] unless args[:description].nil? - @gateway_i_pv4 = args[:gateway_i_pv4] unless args[:gateway_i_pv4].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? + @i_pv4_range = args[:i_pv4_range] if args.key?(:i_pv4_range) + @auto_create_subnetworks = args[:auto_create_subnetworks] if args.key?(:auto_create_subnetworks) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @gateway_i_pv4 = args[:gateway_i_pv4] if args.key?(:gateway_i_pv4) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @subnetworks = args[:subnetworks] if args.key?(:subnetworks) end end @@ -5170,16 +5215,30 @@ module Google # @return [String] attr_accessor :network_ip + # The URL of the Subnetwork resource for this instance. If the network resource + # is in legacy mode, do not provide this property. If the network is in auto + # subnet mode, providing the subnetwork is optional. If the network is in custom + # subnet mode, then this field should be specified. If you specify this property, + # you can specify the subnetwork as a full or partial URL. For example, the + # following are all valid URLs: + # - https://www.googleapis.com/compute/v1/projects/project/zones/zone/ + # subnetworks/subnetwork + # - zones/zone/subnetworks/subnetwork + # Corresponds to the JSON property `subnetwork` + # @return [String] + attr_accessor :subnetwork + def initialize(**args) update!(**args) end # Update properties of this object def update!(**args) - @access_configs = args[:access_configs] unless args[:access_configs].nil? - @name = args[:name] unless args[:name].nil? - @network = args[:network] unless args[:network].nil? - @network_ip = args[:network_ip] unless args[:network_ip].nil? + @access_configs = args[:access_configs] if args.key?(:access_configs) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @network_ip = args[:network_ip] if args.key?(:network_ip) + @subnetwork = args[:subnetwork] if args.key?(:subnetwork) end end @@ -5224,11 +5283,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -5376,29 +5435,29 @@ module Google # 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? - @description = args[:description] unless args[:description].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? + @client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @end_time = args[:end_time] if args.key?(:end_time) + @error = args[:error] if args.key?(:error) + @http_error_message = args[:http_error_message] if args.key?(:http_error_message) + @http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code) + @id = args[:id] if args.key?(:id) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @progress = args[:progress] if args.key?(:progress) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @start_time = args[:start_time] if args.key?(:start_time) + @status = args[:status] if args.key?(:status) + @status_message = args[:status_message] if args.key?(:status_message) + @target_id = args[:target_id] if args.key?(:target_id) + @target_link = args[:target_link] if args.key?(:target_link) + @user = args[:user] if args.key?(:user) + @warnings = args[:warnings] if args.key?(:warnings) + @zone = args[:zone] if args.key?(:zone) end # [Output Only] If errors are generated during processing of the operation, this @@ -5417,7 +5476,7 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? + @errors = args[:errors] if args.key?(:errors) end # @@ -5446,9 +5505,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @location = args[:location] if args.key?(:location) + @message = args[:message] if args.key?(:message) end end end @@ -5480,9 +5539,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -5511,8 +5570,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -5559,11 +5618,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -5608,11 +5667,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -5637,8 +5696,8 @@ module Google # Update properties of this object def update!(**args) - @operations = args[:operations] unless args[:operations].nil? - @warning = args[:warning] unless args[:warning].nil? + @operations = args[:operations] if args.key?(:operations) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] Informational warning which replaces the list of operations when @@ -5669,9 +5728,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -5700,8 +5759,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -5747,10 +5806,10 @@ module Google # Update properties of this object def update!(**args) - @default_service = args[:default_service] unless args[:default_service].nil? - @description = args[:description] unless args[:description].nil? - @name = args[:name] unless args[:name].nil? - @path_rules = args[:path_rules] unless args[:path_rules].nil? + @default_service = args[:default_service] if args.key?(:default_service) + @description = args[:description] if args.key?(:description) + @name = args[:name] if args.key?(:name) + @path_rules = args[:path_rules] if args.key?(:path_rules) end end @@ -5778,8 +5837,8 @@ module Google # Update properties of this object def update!(**args) - @paths = args[:paths] unless args[:paths].nil? - @service = args[:service] unless args[:service].nil? + @paths = args[:paths] if args.key?(:paths) + @service = args[:service] if args.key?(:service) end end @@ -5848,16 +5907,16 @@ module Google # Update properties of this object def update!(**args) - @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? - @quotas = args[:quotas] unless args[:quotas].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @usage_export_location = args[:usage_export_location] unless args[:usage_export_location].nil? + @common_instance_metadata = args[:common_instance_metadata] if args.key?(:common_instance_metadata) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @enabled_features = args[:enabled_features] if args.key?(:enabled_features) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @quotas = args[:quotas] if args.key?(:quotas) + @self_link = args[:self_link] if args.key?(:self_link) + @usage_export_location = args[:usage_export_location] if args.key?(:usage_export_location) end end @@ -5886,9 +5945,9 @@ module Google # Update properties of this object def update!(**args) - @limit = args[:limit] unless args[:limit].nil? - @metric = args[:metric] unless args[:metric].nil? - @usage = args[:usage] unless args[:usage].nil? + @limit = args[:limit] if args.key?(:limit) + @metric = args[:metric] if args.key?(:metric) + @usage = args[:usage] if args.key?(:usage) end end @@ -5954,16 +6013,16 @@ module Google # Update properties of this object def update!(**args) - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @deprecated = args[:deprecated] unless args[:deprecated].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? - @quotas = args[:quotas] unless args[:quotas].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @status = args[:status] unless args[:status].nil? - @zones = args[:zones] unless args[:zones].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @deprecated = args[:deprecated] if args.key?(:deprecated) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @quotas = args[:quotas] if args.key?(:quotas) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) + @zones = args[:zones] if args.key?(:zones) end end @@ -6007,11 +6066,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -6030,7 +6089,7 @@ module Google # Update properties of this object def update!(**args) - @group = args[:group] unless args[:group].nil? + @group = args[:group] if args.key?(:group) end end @@ -6151,22 +6210,22 @@ module Google # 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? - @dest_range = args[:dest_range] unless args[:dest_range].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @network = args[:network] unless args[:network].nil? - @next_hop_gateway = args[:next_hop_gateway] unless args[:next_hop_gateway].nil? - @next_hop_instance = args[:next_hop_instance] unless args[:next_hop_instance].nil? - @next_hop_ip = args[:next_hop_ip] unless args[:next_hop_ip].nil? - @next_hop_network = args[:next_hop_network] unless args[:next_hop_network].nil? - @next_hop_vpn_tunnel = args[:next_hop_vpn_tunnel] unless args[:next_hop_vpn_tunnel].nil? - @priority = args[:priority] unless args[:priority].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @tags = args[:tags] unless args[:tags].nil? - @warnings = args[:warnings] unless args[:warnings].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @dest_range = args[:dest_range] if args.key?(:dest_range) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @next_hop_gateway = args[:next_hop_gateway] if args.key?(:next_hop_gateway) + @next_hop_instance = args[:next_hop_instance] if args.key?(:next_hop_instance) + @next_hop_ip = args[:next_hop_ip] if args.key?(:next_hop_ip) + @next_hop_network = args[:next_hop_network] if args.key?(:next_hop_network) + @next_hop_vpn_tunnel = args[:next_hop_vpn_tunnel] if args.key?(:next_hop_vpn_tunnel) + @priority = args[:priority] if args.key?(:priority) + @self_link = args[:self_link] if args.key?(:self_link) + @tags = args[:tags] if args.key?(:tags) + @warnings = args[:warnings] if args.key?(:warnings) end # @@ -6196,9 +6255,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -6227,8 +6286,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -6273,11 +6332,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -6314,9 +6373,9 @@ module Google # Update properties of this object def update!(**args) - @automatic_restart = args[:automatic_restart] unless args[:automatic_restart].nil? - @on_host_maintenance = args[:on_host_maintenance] unless args[:on_host_maintenance].nil? - @preemptible = args[:preemptible] unless args[:preemptible].nil? + @automatic_restart = args[:automatic_restart] if args.key?(:automatic_restart) + @on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance) + @preemptible = args[:preemptible] if args.key?(:preemptible) end end @@ -6346,9 +6405,9 @@ module Google # Update properties of this object def update!(**args) - @contents = args[:contents] unless args[:contents].nil? - @kind = args[:kind] unless args[:kind].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @contents = args[:contents] if args.key?(:contents) + @kind = args[:kind] if args.key?(:kind) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -6372,8 +6431,8 @@ module Google # Update properties of this object def update!(**args) - @email = args[:email] unless args[:email].nil? - @scopes = args[:scopes] unless args[:scopes].nil? + @email = args[:email] if args.key?(:email) + @scopes = args[:scopes] if args.key?(:scopes) end end @@ -6465,19 +6524,19 @@ module Google # 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? - @disk_size_gb = args[:disk_size_gb] unless args[:disk_size_gb].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @licenses = args[:licenses] unless args[:licenses].nil? - @name = args[:name] unless args[:name].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @source_disk = args[:source_disk] unless args[:source_disk].nil? - @source_disk_id = args[:source_disk_id] unless args[:source_disk_id].nil? - @status = args[:status] unless args[:status].nil? - @storage_bytes = args[:storage_bytes] unless args[:storage_bytes].nil? - @storage_bytes_status = args[:storage_bytes_status] unless args[:storage_bytes_status].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @licenses = args[:licenses] if args.key?(:licenses) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @source_disk = args[:source_disk] if args.key?(:source_disk) + @source_disk_id = args[:source_disk_id] if args.key?(:source_disk_id) + @status = args[:status] if args.key?(:status) + @storage_bytes = args[:storage_bytes] if args.key?(:storage_bytes) + @storage_bytes_status = args[:storage_bytes_status] if args.key?(:storage_bytes_status) end end @@ -6521,11 +6580,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -6592,14 +6651,14 @@ module Google # 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? + @certificate = args[:certificate] if args.key?(:certificate) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @private_key = args[:private_key] if args.key?(:private_key) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -6642,11 +6701,284 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + end + end + + # A Subnetwork resource. + class Subnetwork + 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 description of this resource. Provide this property when you + # create the resource. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # [Output Only] The gateway address for default routes to reach destination + # addresses outside this subnetwork. + # Corresponds to the JSON property `gatewayAddress` + # @return [String] + attr_accessor :gateway_address + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The range of internal addresses that are owned by this subnetwork. Provide + # this property when you create the subnetwork. For example, 10.0.0.0/8 or 192. + # 168.0.0/16. Ranges must be unique and non-overlapping within a network. + # Corresponds to the JSON property `ipCidrRange` + # @return [String] + attr_accessor :ip_cidr_range + + # [Output Only] Type of the resource. Always compute#subnetwork for Subnetwork + # resources. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # The name of the resource, provided by the client when initially creating the + # resource. 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 URL of the network to which this subnetwork belongs, provided by the + # client when initially creating the subnetwork. Only networks that are in the + # distributed mode can have subnetworks. + # Corresponds to the JSON property `network` + # @return [String] + attr_accessor :network + + # [Output Only] URL of the region where the Subnetwork resides. + # 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 + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @gateway_address = args[:gateway_address] if args.key?(:gateway_address) + @id = args[:id] if args.key?(:id) + @ip_cidr_range = args[:ip_cidr_range] if args.key?(:ip_cidr_range) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + end + end + + # + class SubnetworkAggregatedList + include Google::Apis::Core::Hashable + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # [Output] A map of scoped Subnetwork lists. + # Corresponds to the JSON property `items` + # @return [Hash] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#subnetworkAggregatedList for + # aggregated lists of subnetworks. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # 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] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + end + end + + # Contains a list of Subnetwork resources. + class SubnetworkList + include Google::Apis::Core::Hashable + + # [Output Only] The unique identifier for the resource. This identifier is + # defined by the server. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # The Subnetwork resources. + # Corresponds to the JSON property `items` + # @return [Array] + attr_accessor :items + + # [Output Only] Type of resource. Always compute#subnetworkList for lists of + # subnetworks. + # Corresponds to the JSON property `kind` + # @return [String] + attr_accessor :kind + + # [Output Only] This token allows you to get the next page of results for list + # requests. If the number of results is larger than maxResults, use the + # nextPageToken as a value for the query parameter pageToken in the next list + # request. Subsequent list requests will have their own nextPageToken to + # continue paging through the results. + # 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] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + end + end + + # + class SubnetworksScopedList + include Google::Apis::Core::Hashable + + # List of subnetworks contained in this scope. + # Corresponds to the JSON property `subnetworks` + # @return [Array] + attr_accessor :subnetworks + + # An informational warning that appears when the list of addresses is empty. + # Corresponds to the JSON property `warning` + # @return [Google::Apis::ComputeV1::SubnetworksScopedList::Warning] + attr_accessor :warning + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @subnetworks = args[:subnetworks] if args.key?(:subnetworks) + @warning = args[:warning] if args.key?(:warning) + end + + # An informational warning that appears when the list of addresses is empty. + class Warning + include Google::Apis::Core::Hashable + + # [Output Only] A warning code, if applicable. For example, Compute Engine + # returns NO_RESULTS_ON_PAGE if there are no results in the response. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + # [Output Only] Metadata about this warning in key: value format. For example: + # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # Corresponds to the JSON property `data` + # @return [Array] + attr_accessor :data + + # [Output Only] A human-readable description of the warning code. + # 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] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) + end + + # + class Datum + include Google::Apis::Core::Hashable + + # [Output Only] A key that provides more detail on the warning being returned. + # For example, for warnings where there are no results in a list request for a + # particular zone, this key might be scope and the key value might be the zone + # name. Other examples might be a key indicating a deprecated resource, and a + # suggested replacement, or a warning about invalid network settings (for + # example, if an instance attempts to perform IP forwarding but is not enabled + # for IP forwarding). + # 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] if args.key?(:key) + @value = args[:value] if args.key?(:value) + end + end end end @@ -6676,8 +7008,8 @@ module Google # Update properties of this object def update!(**args) - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @items = args[:items] unless args[:items].nil? + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @items = args[:items] if args.key?(:items) end end @@ -6735,13 +7067,13 @@ module Google # 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? - @url_map = args[:url_map] unless args[:url_map].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @url_map = args[:url_map] if args.key?(:url_map) end end @@ -6786,11 +7118,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -6810,7 +7142,7 @@ module Google # Update properties of this object def update!(**args) - @ssl_certificates = args[:ssl_certificates] unless args[:ssl_certificates].nil? + @ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates) end end @@ -6875,14 +7207,14 @@ module Google # 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? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @ssl_certificates = args[:ssl_certificates] if args.key?(:ssl_certificates) + @url_map = args[:url_map] if args.key?(:url_map) end end @@ -6926,11 +7258,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -6999,15 +7331,15 @@ module Google # 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? - @instance = args[:instance] unless args[:instance].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @nat_policy = args[:nat_policy] unless args[:nat_policy].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @zone = args[:zone] unless args[:zone].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @instance = args[:instance] if args.key?(:instance) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @nat_policy = args[:nat_policy] if args.key?(:nat_policy) + @self_link = args[:self_link] if args.key?(:self_link) + @zone = args[:zone] if args.key?(:zone) end end @@ -7050,11 +7382,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -7098,11 +7430,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -7127,8 +7459,8 @@ module Google # Update properties of this object def update!(**args) - @target_instances = args[:target_instances] unless args[:target_instances].nil? - @warning = args[:warning] unless args[:warning].nil? + @target_instances = args[:target_instances] if args.key?(:target_instances) + @warning = args[:warning] if args.key?(:warning) end # Informational warning which replaces the list of addresses when the list is @@ -7159,9 +7491,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -7190,8 +7522,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -7304,18 +7636,18 @@ module Google # Update properties of this object def update!(**args) - @backup_pool = args[:backup_pool] unless args[:backup_pool].nil? - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @description = args[:description] unless args[:description].nil? - @failover_ratio = args[:failover_ratio] unless args[:failover_ratio].nil? - @health_checks = args[:health_checks] unless args[:health_checks].nil? - @id = args[:id] unless args[:id].nil? - @instances = args[:instances] unless args[:instances].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @region = args[:region] unless args[:region].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @session_affinity = args[:session_affinity] unless args[:session_affinity].nil? + @backup_pool = args[:backup_pool] if args.key?(:backup_pool) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @failover_ratio = args[:failover_ratio] if args.key?(:failover_ratio) + @health_checks = args[:health_checks] if args.key?(:health_checks) + @id = args[:id] if args.key?(:id) + @instances = args[:instances] if args.key?(:instances) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @session_affinity = args[:session_affinity] if args.key?(:session_affinity) end end @@ -7358,11 +7690,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -7386,8 +7718,8 @@ module Google # Update properties of this object def update!(**args) - @health_status = args[:health_status] unless args[:health_status].nil? - @kind = args[:kind] unless args[:kind].nil? + @health_status = args[:health_status] if args.key?(:health_status) + @kind = args[:kind] if args.key?(:kind) end end @@ -7430,11 +7762,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -7453,7 +7785,7 @@ module Google # Update properties of this object def update!(**args) - @health_checks = args[:health_checks] unless args[:health_checks].nil? + @health_checks = args[:health_checks] if args.key?(:health_checks) end end @@ -7472,7 +7804,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -7491,7 +7823,7 @@ module Google # Update properties of this object def update!(**args) - @health_checks = args[:health_checks] unless args[:health_checks].nil? + @health_checks = args[:health_checks] if args.key?(:health_checks) end end @@ -7510,7 +7842,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -7535,8 +7867,8 @@ module Google # Update properties of this object def update!(**args) - @target_pools = args[:target_pools] unless args[:target_pools].nil? - @warning = args[:warning] unless args[:warning].nil? + @target_pools = args[:target_pools] if args.key?(:target_pools) + @warning = args[:warning] if args.key?(:warning) end # Informational warning which replaces the list of addresses when the list is @@ -7567,9 +7899,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -7598,8 +7930,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -7620,7 +7952,7 @@ module Google # Update properties of this object def update!(**args) - @target = args[:target] unless args[:target].nil? + @target = args[:target] if args.key?(:target) end end @@ -7701,17 +8033,17 @@ module Google # 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? - @forwarding_rules = args[:forwarding_rules] unless args[:forwarding_rules].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @network = args[:network] unless args[:network].nil? - @region = args[:region] unless args[:region].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @status = args[:status] unless args[:status].nil? - @tunnels = args[:tunnels] unless args[:tunnels].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @forwarding_rules = args[:forwarding_rules] if args.key?(:forwarding_rules) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) + @tunnels = args[:tunnels] if args.key?(:tunnels) end end @@ -7756,11 +8088,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -7805,11 +8137,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -7834,8 +8166,8 @@ module Google # Update properties of this object def update!(**args) - @target_vpn_gateways = args[:target_vpn_gateways] unless args[:target_vpn_gateways].nil? - @warning = args[:warning] unless args[:warning].nil? + @target_vpn_gateways = args[:target_vpn_gateways] if args.key?(:target_vpn_gateways) + @warning = args[:warning] if args.key?(:warning) end # [Output Only] Informational warning which replaces the list of addresses when @@ -7866,9 +8198,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -7897,8 +8229,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -7934,10 +8266,10 @@ module Google # Update properties of this object def update!(**args) - @actual_service = args[:actual_service] unless args[:actual_service].nil? - @expected_service = args[:expected_service] unless args[:expected_service].nil? - @host = args[:host] unless args[:host].nil? - @path = args[:path] unless args[:path].nil? + @actual_service = args[:actual_service] if args.key?(:actual_service) + @expected_service = args[:expected_service] if args.key?(:expected_service) + @host = args[:host] if args.key?(:host) + @path = args[:path] if args.key?(:path) end end @@ -8019,17 +8351,17 @@ module Google # Update properties of this object def update!(**args) - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @default_service = args[:default_service] unless args[:default_service].nil? - @description = args[:description] unless args[:description].nil? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @host_rules = args[:host_rules] unless args[:host_rules].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @path_matchers = args[:path_matchers] unless args[:path_matchers].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @tests = args[:tests] unless args[:tests].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @default_service = args[:default_service] if args.key?(:default_service) + @description = args[:description] if args.key?(:description) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @host_rules = args[:host_rules] if args.key?(:host_rules) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @path_matchers = args[:path_matchers] if args.key?(:path_matchers) + @self_link = args[:self_link] if args.key?(:self_link) + @tests = args[:tests] if args.key?(:tests) end end @@ -8072,11 +8404,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -8095,7 +8427,7 @@ module Google # Update properties of this object def update!(**args) - @url_map = args[:url_map] unless args[:url_map].nil? + @url_map = args[:url_map] if args.key?(:url_map) end end @@ -8129,10 +8461,10 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @host = args[:host] unless args[:host].nil? - @path = args[:path] unless args[:path].nil? - @service = args[:service] unless args[:service].nil? + @description = args[:description] if args.key?(:description) + @host = args[:host] if args.key?(:host) + @path = args[:path] if args.key?(:path) + @service = args[:service] if args.key?(:service) end end @@ -8170,10 +8502,10 @@ module Google # Update properties of this object def update!(**args) - @load_errors = args[:load_errors] unless args[:load_errors].nil? - @load_succeeded = args[:load_succeeded] unless args[:load_succeeded].nil? - @test_failures = args[:test_failures] unless args[:test_failures].nil? - @test_passed = args[:test_passed] unless args[:test_passed].nil? + @load_errors = args[:load_errors] if args.key?(:load_errors) + @load_succeeded = args[:load_succeeded] if args.key?(:load_succeeded) + @test_failures = args[:test_failures] if args.key?(:test_failures) + @test_passed = args[:test_passed] if args.key?(:test_passed) end end @@ -8194,7 +8526,7 @@ module Google # Update properties of this object def update!(**args) - @resource = args[:resource] unless args[:resource].nil? + @resource = args[:resource] if args.key?(:resource) end end @@ -8213,7 +8545,7 @@ module Google # Update properties of this object def update!(**args) - @result = args[:result] unless args[:result].nil? + @result = args[:result] if args.key?(:result) end end @@ -8246,8 +8578,8 @@ module Google # Update properties of this object def update!(**args) - @bucket_name = args[:bucket_name] unless args[:bucket_name].nil? - @report_name_prefix = args[:report_name_prefix] unless args[:report_name_prefix].nil? + @bucket_name = args[:bucket_name] if args.key?(:bucket_name) + @report_name_prefix = args[:report_name_prefix] if args.key?(:report_name_prefix) end end @@ -8288,6 +8620,13 @@ module Google # @return [String] attr_accessor :kind + # Local traffic selector to use when establishing the VPN tunnel with peer VPN + # gateway. The value should be a CIDR formatted string, for example: 192.168.0.0/ + # 16. The ranges should be disjoint. + # Corresponds to the JSON property `localTrafficSelector` + # @return [Array] + attr_accessor :local_traffic_selector + # 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- @@ -8341,20 +8680,21 @@ module Google # 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? - @detailed_status = args[:detailed_status] unless args[:detailed_status].nil? - @id = args[:id] unless args[:id].nil? - @ike_version = args[:ike_version] unless args[:ike_version].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @peer_ip = args[:peer_ip] unless args[:peer_ip].nil? - @region = args[:region] unless args[:region].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @shared_secret = args[:shared_secret] unless args[:shared_secret].nil? - @shared_secret_hash = args[:shared_secret_hash] unless args[:shared_secret_hash].nil? - @status = args[:status] unless args[:status].nil? - @target_vpn_gateway = args[:target_vpn_gateway] unless args[:target_vpn_gateway].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @detailed_status = args[:detailed_status] if args.key?(:detailed_status) + @id = args[:id] if args.key?(:id) + @ike_version = args[:ike_version] if args.key?(:ike_version) + @kind = args[:kind] if args.key?(:kind) + @local_traffic_selector = args[:local_traffic_selector] if args.key?(:local_traffic_selector) + @name = args[:name] if args.key?(:name) + @peer_ip = args[:peer_ip] if args.key?(:peer_ip) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @shared_secret = args[:shared_secret] if args.key?(:shared_secret) + @shared_secret_hash = args[:shared_secret_hash] if args.key?(:shared_secret_hash) + @status = args[:status] if args.key?(:status) + @target_vpn_gateway = args[:target_vpn_gateway] if args.key?(:target_vpn_gateway) end end @@ -8398,11 +8738,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -8446,11 +8786,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -8475,8 +8815,8 @@ module Google # Update properties of this object def update!(**args) - @vpn_tunnels = args[:vpn_tunnels] unless args[:vpn_tunnels].nil? - @warning = args[:warning] unless args[:warning].nil? + @vpn_tunnels = args[:vpn_tunnels] if args.key?(:vpn_tunnels) + @warning = args[:warning] if args.key?(:warning) end # Informational warning which replaces the list of addresses when the list is @@ -8507,9 +8847,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -8538,8 +8878,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -8608,16 +8948,16 @@ module Google # Update properties of this object def update!(**args) - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @deprecated = args[:deprecated] unless args[:deprecated].nil? - @description = args[:description] unless args[:description].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @maintenance_windows = args[:maintenance_windows] unless args[:maintenance_windows].nil? - @name = args[:name] unless args[:name].nil? - @region = args[:region] unless args[:region].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @status = args[:status] unless args[:status].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @deprecated = args[:deprecated] if args.key?(:deprecated) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @maintenance_windows = args[:maintenance_windows] if args.key?(:maintenance_windows) + @name = args[:name] if args.key?(:name) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) end # @@ -8650,10 +8990,10 @@ module Google # Update properties of this object def update!(**args) - @begin_time = args[:begin_time] unless args[:begin_time].nil? - @description = args[:description] unless args[:description].nil? - @end_time = args[:end_time] unless args[:end_time].nil? - @name = args[:name] unless args[:name].nil? + @begin_time = args[:begin_time] if args.key?(:begin_time) + @description = args[:description] if args.key?(:description) + @end_time = args[:end_time] if args.key?(:end_time) + @name = args[:name] if args.key?(:name) end end end @@ -8697,11 +9037,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end end diff --git a/generated/google/apis/compute_v1/representations.rb b/generated/google/apis/compute_v1/representations.rb index b3f831db9..5d711040e 100644 --- a/generated/google/apis/compute_v1/representations.rb +++ b/generated/google/apis/compute_v1/representations.rb @@ -390,6 +390,10 @@ module Google end end + class InstancesSetMachineTypeRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + class License class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -574,6 +578,30 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation; end end + class Subnetwork + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SubnetworkAggregatedList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SubnetworkList + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class SubnetworksScopedList + 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 Tags class Representation < Google::Apis::Core::JsonRepresentation; end end @@ -1492,6 +1520,7 @@ module Google property :network, as: 'network' property :self_link, as: 'selfLink' property :size, as: 'size' + property :subnetwork, as: 'subnetwork' property :zone, as: 'zone' end end @@ -1836,6 +1865,13 @@ module Google end end + class InstancesSetMachineTypeRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :machine_type, as: 'machineType' + end + end + class License # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1994,6 +2030,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :i_pv4_range, as: 'IPv4Range' + property :auto_create_subnetworks, as: 'autoCreateSubnetworks' property :creation_timestamp, as: 'creationTimestamp' property :description, as: 'description' property :gateway_i_pv4, as: 'gatewayIPv4' @@ -2001,6 +2038,7 @@ module Google property :kind, as: 'kind' property :name, as: 'name' property :self_link, as: 'selfLink' + collection :subnetworks, as: 'subnetworks' end end @@ -2012,6 +2050,7 @@ module Google property :name, as: 'name' property :network, as: 'network' property :network_ip, as: 'networkIP' + property :subnetwork, as: 'subnetwork' end end @@ -2365,6 +2404,74 @@ module Google end end + class Subnetwork + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_timestamp, as: 'creationTimestamp' + property :description, as: 'description' + property :gateway_address, as: 'gatewayAddress' + property :id, as: 'id' + property :ip_cidr_range, as: 'ipCidrRange' + property :kind, as: 'kind' + property :name, as: 'name' + property :network, as: 'network' + property :region, as: 'region' + property :self_link, as: 'selfLink' + end + end + + class SubnetworkAggregatedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + hash :items, as: 'items', class: Google::Apis::ComputeV1::SubnetworksScopedList, decorator: Google::Apis::ComputeV1::SubnetworksScopedList::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + + class SubnetworkList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + collection :items, as: 'items', class: Google::Apis::ComputeV1::Subnetwork, decorator: Google::Apis::ComputeV1::Subnetwork::Representation + + property :kind, as: 'kind' + property :next_page_token, as: 'nextPageToken' + property :self_link, as: 'selfLink' + end + end + + class SubnetworksScopedList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :subnetworks, as: 'subnetworks', class: Google::Apis::ComputeV1::Subnetwork, decorator: Google::Apis::ComputeV1::Subnetwork::Representation + + property :warning, as: 'warning', class: Google::Apis::ComputeV1::SubnetworksScopedList::Warning, decorator: Google::Apis::ComputeV1::SubnetworksScopedList::Warning::Representation + + end + + class Warning + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + collection :data, as: 'data', class: Google::Apis::ComputeV1::SubnetworksScopedList::Warning::Datum, decorator: Google::Apis::ComputeV1::SubnetworksScopedList::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 Tags # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2788,6 +2895,7 @@ module Google property :id, as: 'id' property :ike_version, as: 'ikeVersion' property :kind, as: 'kind' + collection :local_traffic_selector, as: 'localTrafficSelector' property :name, as: 'name' property :peer_ip, as: 'peerIp' property :region, as: 'region' diff --git a/generated/google/apis/compute_v1/service.rb b/generated/google/apis/compute_v1/service.rb index 0a46e44ee..474fa3df1 100644 --- a/generated/google/apis/compute_v1/service.rb +++ b/generated/google/apis/compute_v1/service.rb @@ -5287,6 +5287,51 @@ module Google execute_or_queue_command(command, &block) end + # Changes the machine type for a stopped instance to the machine type specified + # in the request. + # @param [String] project + # Project ID for this request. + # @param [String] zone + # The name of the zone for this request. + # @param [String] instance + # Name of the instance scoping this request. + # @param [Google::Apis::ComputeV1::InstancesSetMachineTypeRequest] instances_set_machine_type_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_instance_machine_type(project, zone, instance, instances_set_machine_type_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/setMachineType', options) + command.request_representation = Google::Apis::ComputeV1::InstancesSetMachineTypeRequest::Representation + command.request_object = instances_set_machine_type_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['zone'] = zone unless zone.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 + # Sets metadata for the specified instance to the data included in the request. # @param [String] project # Project ID for this request. @@ -6871,6 +6916,269 @@ module Google execute_or_queue_command(command, &block) end + # Retrieves an aggregated list of subnetworks. + # @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 you are + # filtering by (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. + # Compute Engine Beta API Only: If you use filtering in the Beta API, you can + # also filter on nested fields. For example, you could filter on instances that + # have set the scheduling.automaticRestart field to true. In particular, use + # filtering on nested fields to take advantage of instance labels to organize + # and filter results based on label values. + # The Beta API also supports filtering on multiple expressions by providing each + # separate expression within parentheses. For example, (scheduling. + # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are + # treated as AND expressions meaning that resources must match all expressions + # to pass the filters. + # @param [Fixnum] max_results + # The maximum number of results per page that Compute Engine should return. If + # the number of available results is larger than maxResults, Compute Engine + # returns a nextPageToken that can be used to get the next page of results in + # subsequent list requests. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get 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. + # 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::SubnetworkAggregatedList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::SubnetworkAggregatedList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_subnetwork_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/subnetworks', options) + command.response_representation = Google::Apis::ComputeV1::SubnetworkAggregatedList::Representation + command.response_class = Google::Apis::ComputeV1::SubnetworkAggregatedList + 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 subnetwork. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] subnetwork + # Name of the Subnetwork 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_subnetwork(project, region, subnetwork, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:delete, '{project}/regions/{region}/subnetworks/{subnetwork}', 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['region'] = region unless region.nil? + command.params['subnetwork'] = subnetwork unless subnetwork.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 subnetwork. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [String] subnetwork + # Name of the Subnetwork 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::Subnetwork] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::Subnetwork] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_subnetwork(project, region, subnetwork, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:get, '{project}/regions/{region}/subnetworks/{subnetwork}', options) + command.response_representation = Google::Apis::ComputeV1::Subnetwork::Representation + command.response_class = Google::Apis::ComputeV1::Subnetwork + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.nil? + command.params['subnetwork'] = subnetwork unless subnetwork.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 subnetwork in the specified project using the data included in the + # request. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region scoping this request. + # @param [Google::Apis::ComputeV1::Subnetwork] subnetwork_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_subnetwork(project, region, subnetwork_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + command = make_simple_command(:post, '{project}/regions/{region}/subnetworks', options) + command.request_representation = Google::Apis::ComputeV1::Subnetwork::Representation + command.request_object = subnetwork_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['region'] = region unless region.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 subnetworks available to the specified project. + # @param [String] project + # Project ID for this request. + # @param [String] region + # Name of the region 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 you are + # filtering by (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. + # Compute Engine Beta API Only: If you use filtering in the Beta API, you can + # also filter on nested fields. For example, you could filter on instances that + # have set the scheduling.automaticRestart field to true. In particular, use + # filtering on nested fields to take advantage of instance labels to organize + # and filter results based on label values. + # The Beta API also supports filtering on multiple expressions by providing each + # separate expression within parentheses. For example, (scheduling. + # automaticRestart eq true) (zone eq us-central1-f). Multiple expressions are + # treated as AND expressions meaning that resources must match all expressions + # to pass the filters. + # @param [Fixnum] max_results + # The maximum number of results per page that Compute Engine should return. If + # the number of available results is larger than maxResults, Compute Engine + # returns a nextPageToken that can be used to get the next page of results in + # subsequent list requests. + # @param [String] page_token + # Specifies a page token to use. Set pageToken to the nextPageToken returned by + # a previous list request to get 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. + # 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::SubnetworkList] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::ComputeV1::SubnetworkList] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_subnetworks(project, region, 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}/regions/{region}/subnetworks', options) + command.response_representation = Google::Apis::ComputeV1::SubnetworkList::Representation + command.response_class = Google::Apis::ComputeV1::SubnetworkList + command.params['project'] = project unless project.nil? + command.params['region'] = region unless region.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 # Project ID for this request. diff --git a/generated/google/apis/container_v1/classes.rb b/generated/google/apis/container_v1/classes.rb index eef94af63..69304c2b1 100644 --- a/generated/google/apis/container_v1/classes.rb +++ b/generated/google/apis/container_v1/classes.rb @@ -37,7 +37,7 @@ module Google # Update properties of this object def update!(**args) - @clusters = args[:clusters] unless args[:clusters].nil? + @clusters = args[:clusters] if args.key?(:clusters) end end @@ -188,27 +188,27 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @description = args[:description] unless args[:description].nil? - @initial_node_count = args[:initial_node_count] unless args[:initial_node_count].nil? - @node_config = args[:node_config] unless args[:node_config].nil? - @master_auth = args[:master_auth] unless args[:master_auth].nil? - @logging_service = args[:logging_service] unless args[:logging_service].nil? - @monitoring_service = args[:monitoring_service] unless args[:monitoring_service].nil? - @network = args[:network] unless args[:network].nil? - @cluster_ipv4_cidr = args[:cluster_ipv4_cidr] unless args[:cluster_ipv4_cidr].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @zone = args[:zone] unless args[:zone].nil? - @endpoint = args[:endpoint] unless args[:endpoint].nil? - @initial_cluster_version = args[:initial_cluster_version] unless args[:initial_cluster_version].nil? - @current_master_version = args[:current_master_version] unless args[:current_master_version].nil? - @current_node_version = args[:current_node_version] unless args[:current_node_version].nil? - @create_time = args[:create_time] unless args[:create_time].nil? - @status = args[:status] unless args[:status].nil? - @status_message = args[:status_message] unless args[:status_message].nil? - @node_ipv4_cidr_size = args[:node_ipv4_cidr_size] unless args[:node_ipv4_cidr_size].nil? - @services_ipv4_cidr = args[:services_ipv4_cidr] unless args[:services_ipv4_cidr].nil? - @instance_group_urls = args[:instance_group_urls] unless args[:instance_group_urls].nil? + @name = args[:name] if args.key?(:name) + @description = args[:description] if args.key?(:description) + @initial_node_count = args[:initial_node_count] if args.key?(:initial_node_count) + @node_config = args[:node_config] if args.key?(:node_config) + @master_auth = args[:master_auth] if args.key?(:master_auth) + @logging_service = args[:logging_service] if args.key?(:logging_service) + @monitoring_service = args[:monitoring_service] if args.key?(:monitoring_service) + @network = args[:network] if args.key?(:network) + @cluster_ipv4_cidr = args[:cluster_ipv4_cidr] if args.key?(:cluster_ipv4_cidr) + @self_link = args[:self_link] if args.key?(:self_link) + @zone = args[:zone] if args.key?(:zone) + @endpoint = args[:endpoint] if args.key?(:endpoint) + @initial_cluster_version = args[:initial_cluster_version] if args.key?(:initial_cluster_version) + @current_master_version = args[:current_master_version] if args.key?(:current_master_version) + @current_node_version = args[:current_node_version] if args.key?(:current_node_version) + @create_time = args[:create_time] if args.key?(:create_time) + @status = args[:status] if args.key?(:status) + @status_message = args[:status_message] if args.key?(:status_message) + @node_ipv4_cidr_size = args[:node_ipv4_cidr_size] if args.key?(:node_ipv4_cidr_size) + @services_ipv4_cidr = args[:services_ipv4_cidr] if args.key?(:services_ipv4_cidr) + @instance_group_urls = args[:instance_group_urls] if args.key?(:instance_group_urls) end end @@ -245,9 +245,9 @@ module Google # Update properties of this object def update!(**args) - @machine_type = args[:machine_type] unless args[:machine_type].nil? - @disk_size_gb = args[:disk_size_gb] unless args[:disk_size_gb].nil? - @oauth_scopes = args[:oauth_scopes] unless args[:oauth_scopes].nil? + @machine_type = args[:machine_type] if args.key?(:machine_type) + @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @oauth_scopes = args[:oauth_scopes] if args.key?(:oauth_scopes) end end @@ -293,11 +293,11 @@ module Google # Update properties of this object def update!(**args) - @username = args[:username] unless args[:username].nil? - @password = args[:password] unless args[:password].nil? - @cluster_ca_certificate = args[:cluster_ca_certificate] unless args[:cluster_ca_certificate].nil? - @client_certificate = args[:client_certificate] unless args[:client_certificate].nil? - @client_key = args[:client_key] unless args[:client_key].nil? + @username = args[:username] if args.key?(:username) + @password = args[:password] if args.key?(:password) + @cluster_ca_certificate = args[:cluster_ca_certificate] if args.key?(:cluster_ca_certificate) + @client_certificate = args[:client_certificate] if args.key?(:client_certificate) + @client_key = args[:client_key] if args.key?(:client_key) end end @@ -316,7 +316,7 @@ module Google # Update properties of this object def update!(**args) - @cluster = args[:cluster] unless args[:cluster].nil? + @cluster = args[:cluster] if args.key?(:cluster) end end @@ -366,13 +366,13 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @zone = args[:zone] unless args[:zone].nil? - @operation_type = args[:operation_type] unless args[:operation_type].nil? - @status = args[:status] unless args[:status].nil? - @status_message = args[:status_message] unless args[:status_message].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @target_link = args[:target_link] unless args[:target_link].nil? + @name = args[:name] if args.key?(:name) + @zone = args[:zone] if args.key?(:zone) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @status = args[:status] if args.key?(:status) + @status_message = args[:status_message] if args.key?(:status_message) + @self_link = args[:self_link] if args.key?(:self_link) + @target_link = args[:target_link] if args.key?(:target_link) end end @@ -391,7 +391,7 @@ module Google # Update properties of this object def update!(**args) - @update = args[:update] unless args[:update].nil? + @update = args[:update] if args.key?(:update) end end @@ -411,7 +411,7 @@ module Google # Update properties of this object def update!(**args) - @desired_node_version = args[:desired_node_version] unless args[:desired_node_version].nil? + @desired_node_version = args[:desired_node_version] if args.key?(:desired_node_version) end end @@ -430,7 +430,7 @@ module Google # Update properties of this object def update!(**args) - @operations = args[:operations] unless args[:operations].nil? + @operations = args[:operations] if args.key?(:operations) end end @@ -454,8 +454,8 @@ module Google # 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? + @default_cluster_version = args[:default_cluster_version] if args.key?(:default_cluster_version) + @valid_node_versions = args[:valid_node_versions] if args.key?(:valid_node_versions) end end end diff --git a/generated/google/apis/content_v2/classes.rb b/generated/google/apis/content_v2/classes.rb index 672c0b451..91a63b49a 100644 --- a/generated/google/apis/content_v2/classes.rb +++ b/generated/google/apis/content_v2/classes.rb @@ -83,15 +83,15 @@ module Google # Update properties of this object def update!(**args) - @adult_content = args[:adult_content] unless args[:adult_content].nil? - @adwords_links = args[:adwords_links] unless args[:adwords_links].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @reviews_url = args[:reviews_url] unless args[:reviews_url].nil? - @seller_id = args[:seller_id] unless args[:seller_id].nil? - @users = args[:users] unless args[:users].nil? - @website_url = args[:website_url] unless args[:website_url].nil? + @adult_content = args[:adult_content] if args.key?(:adult_content) + @adwords_links = args[:adwords_links] if args.key?(:adwords_links) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @reviews_url = args[:reviews_url] if args.key?(:reviews_url) + @seller_id = args[:seller_id] if args.key?(:seller_id) + @users = args[:users] if args.key?(:users) + @website_url = args[:website_url] if args.key?(:website_url) end end @@ -123,8 +123,8 @@ module Google # Update properties of this object def update!(**args) - @adwords_id = args[:adwords_id] unless args[:adwords_id].nil? - @status = args[:status] unless args[:status].nil? + @adwords_id = args[:adwords_id] if args.key?(:adwords_id) + @status = args[:status] if args.key?(:status) end end @@ -149,8 +149,8 @@ module Google # Update properties of this object def update!(**args) - @aggregator_id = args[:aggregator_id] unless args[:aggregator_id].nil? - @merchant_id = args[:merchant_id] unless args[:merchant_id].nil? + @aggregator_id = args[:aggregator_id] if args.key?(:aggregator_id) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) end end @@ -195,12 +195,12 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @carrier_rates = args[:carrier_rates] unless args[:carrier_rates].nil? - @kind = args[:kind] unless args[:kind].nil? - @location_groups = args[:location_groups] unless args[:location_groups].nil? - @rate_tables = args[:rate_tables] unless args[:rate_tables].nil? - @services = args[:services] unless args[:services].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @carrier_rates = args[:carrier_rates] if args.key?(:carrier_rates) + @kind = args[:kind] if args.key?(:kind) + @location_groups = args[:location_groups] if args.key?(:location_groups) + @rate_tables = args[:rate_tables] if args.key?(:rate_tables) + @services = args[:services] if args.key?(:services) end end @@ -252,13 +252,13 @@ module Google # Update properties of this object def update!(**args) - @carrier = args[:carrier] unless args[:carrier].nil? - @carrier_service = args[:carrier_service] unless args[:carrier_service].nil? - @modifier_flat_rate = args[:modifier_flat_rate] unless args[:modifier_flat_rate].nil? - @modifier_percent = args[:modifier_percent] unless args[:modifier_percent].nil? - @name = args[:name] unless args[:name].nil? - @sale_country = args[:sale_country] unless args[:sale_country].nil? - @shipping_origin = args[:shipping_origin] unless args[:shipping_origin].nil? + @carrier = args[:carrier] if args.key?(:carrier) + @carrier_service = args[:carrier_service] if args.key?(:carrier_service) + @modifier_flat_rate = args[:modifier_flat_rate] if args.key?(:modifier_flat_rate) + @modifier_percent = args[:modifier_percent] if args.key?(:modifier_percent) + @name = args[:name] if args.key?(:name) + @sale_country = args[:sale_country] if args.key?(:sale_country) + @shipping_origin = args[:shipping_origin] if args.key?(:shipping_origin) end end @@ -314,13 +314,13 @@ module Google # Update properties of this object def update!(**args) - @delivery_location_group = args[:delivery_location_group] unless args[:delivery_location_group].nil? - @delivery_location_id = args[:delivery_location_id] unless args[:delivery_location_id].nil? - @delivery_postal_code = args[:delivery_postal_code] unless args[:delivery_postal_code].nil? - @delivery_postal_code_range = args[:delivery_postal_code_range] unless args[:delivery_postal_code_range].nil? - @price_max = args[:price_max] unless args[:price_max].nil? - @shipping_label = args[:shipping_label] unless args[:shipping_label].nil? - @weight_max = args[:weight_max] unless args[:weight_max].nil? + @delivery_location_group = args[:delivery_location_group] if args.key?(:delivery_location_group) + @delivery_location_id = args[:delivery_location_id] if args.key?(:delivery_location_id) + @delivery_postal_code = args[:delivery_postal_code] if args.key?(:delivery_postal_code) + @delivery_postal_code_range = args[:delivery_postal_code_range] if args.key?(:delivery_postal_code_range) + @price_max = args[:price_max] if args.key?(:price_max) + @shipping_label = args[:shipping_label] if args.key?(:shipping_label) + @weight_max = args[:weight_max] if args.key?(:weight_max) end end @@ -363,11 +363,11 @@ module Google # Update properties of this object def update!(**args) - @country = args[:country] unless args[:country].nil? - @location_ids = args[:location_ids] unless args[:location_ids].nil? - @name = args[:name] unless args[:name].nil? - @postal_code_ranges = args[:postal_code_ranges] unless args[:postal_code_ranges].nil? - @postal_codes = args[:postal_codes] unless args[:postal_codes].nil? + @country = args[:country] if args.key?(:country) + @location_ids = args[:location_ids] if args.key?(:location_ids) + @name = args[:name] if args.key?(:name) + @postal_code_ranges = args[:postal_code_ranges] if args.key?(:postal_code_ranges) + @postal_codes = args[:postal_codes] if args.key?(:postal_codes) end end @@ -394,8 +394,8 @@ module Google # Update properties of this object def update!(**args) - @end = args[:end] unless args[:end].nil? - @start = args[:start] unless args[:start].nil? + @end = args[:end] if args.key?(:end) + @start = args[:start] if args.key?(:start) end end @@ -430,9 +430,9 @@ module Google # Update properties of this object def update!(**args) - @content = args[:content] unless args[:content].nil? - @name = args[:name] unless args[:name].nil? - @sale_country = args[:sale_country] unless args[:sale_country].nil? + @content = args[:content] if args.key?(:content) + @name = args[:name] if args.key?(:name) + @sale_country = args[:sale_country] if args.key?(:sale_country) end end @@ -460,8 +460,8 @@ module Google # Update properties of this object def update!(**args) - @condition = args[:condition] unless args[:condition].nil? - @rate = args[:rate] unless args[:rate].nil? + @condition = args[:condition] if args.key?(:condition) + @rate = args[:rate] if args.key?(:rate) end end @@ -509,11 +509,11 @@ module Google # Update properties of this object def update!(**args) - @active = args[:active] unless args[:active].nil? - @calculation_method = args[:calculation_method] unless args[:calculation_method].nil? - @cost_rule_tree = args[:cost_rule_tree] unless args[:cost_rule_tree].nil? - @name = args[:name] unless args[:name].nil? - @sale_country = args[:sale_country] unless args[:sale_country].nil? + @active = args[:active] if args.key?(:active) + @calculation_method = args[:calculation_method] if args.key?(:calculation_method) + @cost_rule_tree = args[:cost_rule_tree] if args.key?(:cost_rule_tree) + @name = args[:name] if args.key?(:name) + @sale_country = args[:sale_country] if args.key?(:sale_country) end end @@ -555,11 +555,11 @@ module Google # Update properties of this object def update!(**args) - @carrier_rate = args[:carrier_rate] unless args[:carrier_rate].nil? - @excluded = args[:excluded] unless args[:excluded].nil? - @flat_rate = args[:flat_rate] unless args[:flat_rate].nil? - @percentage_rate = args[:percentage_rate] unless args[:percentage_rate].nil? - @rate_table = args[:rate_table] unless args[:rate_table].nil? + @carrier_rate = args[:carrier_rate] if args.key?(:carrier_rate) + @excluded = args[:excluded] if args.key?(:excluded) + @flat_rate = args[:flat_rate] if args.key?(:flat_rate) + @percentage_rate = args[:percentage_rate] if args.key?(:percentage_rate) + @rate_table = args[:rate_table] if args.key?(:rate_table) end end @@ -598,9 +598,9 @@ module Google # Update properties of this object def update!(**args) - @calculation_method = args[:calculation_method] unless args[:calculation_method].nil? - @children = args[:children] unless args[:children].nil? - @condition = args[:condition] unless args[:condition].nil? + @calculation_method = args[:calculation_method] if args.key?(:calculation_method) + @children = args[:children] if args.key?(:children) + @condition = args[:condition] if args.key?(:condition) end end @@ -631,9 +631,9 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @data_quality_issues = args[:data_quality_issues] unless args[:data_quality_issues].nil? - @kind = args[:kind] unless args[:kind].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @data_quality_issues = args[:data_quality_issues] if args.key?(:data_quality_issues) + @kind = args[:kind] if args.key?(:kind) end end @@ -687,14 +687,14 @@ module Google # Update properties of this object def update!(**args) - @country = args[:country] unless args[:country].nil? - @displayed_value = args[:displayed_value] unless args[:displayed_value].nil? - @example_items = args[:example_items] unless args[:example_items].nil? - @id = args[:id] unless args[:id].nil? - @last_checked = args[:last_checked] unless args[:last_checked].nil? - @num_items = args[:num_items] unless args[:num_items].nil? - @severity = args[:severity] unless args[:severity].nil? - @submitted_value = args[:submitted_value] unless args[:submitted_value].nil? + @country = args[:country] if args.key?(:country) + @displayed_value = args[:displayed_value] if args.key?(:displayed_value) + @example_items = args[:example_items] if args.key?(:example_items) + @id = args[:id] if args.key?(:id) + @last_checked = args[:last_checked] if args.key?(:last_checked) + @num_items = args[:num_items] if args.key?(:num_items) + @severity = args[:severity] if args.key?(:severity) + @submitted_value = args[:submitted_value] if args.key?(:submitted_value) end end @@ -734,11 +734,11 @@ module Google # Update properties of this object def update!(**args) - @item_id = args[:item_id] unless args[:item_id].nil? - @link = args[:link] unless args[:link].nil? - @submitted_value = args[:submitted_value] unless args[:submitted_value].nil? - @title = args[:title] unless args[:title].nil? - @value_on_landing_page = args[:value_on_landing_page] unless args[:value_on_landing_page].nil? + @item_id = args[:item_id] if args.key?(:item_id) + @link = args[:link] if args.key?(:link) + @submitted_value = args[:submitted_value] if args.key?(:submitted_value) + @title = args[:title] if args.key?(:title) + @value_on_landing_page = args[:value_on_landing_page] if args.key?(:value_on_landing_page) end end @@ -769,9 +769,9 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @rules = args[:rules] unless args[:rules].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @kind = args[:kind] if args.key?(:kind) + @rules = args[:rules] if args.key?(:rules) end end @@ -814,11 +814,11 @@ module Google # Update properties of this object def update!(**args) - @country = args[:country] unless args[:country].nil? - @location_id = args[:location_id] unless args[:location_id].nil? - @rate_percent = args[:rate_percent] unless args[:rate_percent].nil? - @shipping_taxed = args[:shipping_taxed] unless args[:shipping_taxed].nil? - @use_global_rate = args[:use_global_rate] unless args[:use_global_rate].nil? + @country = args[:country] if args.key?(:country) + @location_id = args[:location_id] if args.key?(:location_id) + @rate_percent = args[:rate_percent] if args.key?(:rate_percent) + @shipping_taxed = args[:shipping_taxed] if args.key?(:shipping_taxed) + @use_global_rate = args[:use_global_rate] if args.key?(:use_global_rate) end end @@ -843,8 +843,8 @@ module Google # Update properties of this object def update!(**args) - @admin = args[:admin] unless args[:admin].nil? - @email_address = args[:email_address] unless args[:email_address].nil? + @admin = args[:admin] if args.key?(:admin) + @email_address = args[:email_address] if args.key?(:email_address) end end @@ -873,8 +873,8 @@ module Google # Update properties of this object def update!(**args) - @account_identifiers = args[:account_identifiers] unless args[:account_identifiers].nil? - @kind = args[:kind] unless args[:kind].nil? + @account_identifiers = args[:account_identifiers] if args.key?(:account_identifiers) + @kind = args[:kind] if args.key?(:kind) end end @@ -893,7 +893,7 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? + @entries = args[:entries] if args.key?(:entries) end end @@ -933,11 +933,11 @@ module Google # Update properties of this object def update!(**args) - @account = args[:account] unless args[:account].nil? - @account_id = args[:account_id] unless args[:account_id].nil? - @batch_id = args[:batch_id] unless args[:batch_id].nil? - @merchant_id = args[:merchant_id] unless args[:merchant_id].nil? - @request_method = args[:request_method] unless args[:request_method].nil? + @account = args[:account] if args.key?(:account) + @account_id = args[:account_id] if args.key?(:account_id) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @request_method = args[:request_method] if args.key?(:request_method) end end @@ -962,8 +962,8 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? - @kind = args[:kind] unless args[:kind].nil? + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) end end @@ -998,10 +998,10 @@ module Google # Update properties of this object def update!(**args) - @account = args[:account] unless args[:account].nil? - @batch_id = args[:batch_id] unless args[:batch_id].nil? - @errors = args[:errors] unless args[:errors].nil? - @kind = args[:kind] unless args[:kind].nil? + @account = args[:account] if args.key?(:account) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @errors = args[:errors] if args.key?(:errors) + @kind = args[:kind] if args.key?(:kind) end end @@ -1031,9 +1031,9 @@ module Google # 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? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) end end @@ -1052,7 +1052,7 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? + @entries = args[:entries] if args.key?(:entries) end end @@ -1091,11 +1091,11 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @account_shipping = args[:account_shipping] unless args[:account_shipping].nil? - @batch_id = args[:batch_id] unless args[:batch_id].nil? - @merchant_id = args[:merchant_id] unless args[:merchant_id].nil? - @request_method = args[:request_method] unless args[:request_method].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @account_shipping = args[:account_shipping] if args.key?(:account_shipping) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @request_method = args[:request_method] if args.key?(:request_method) end end @@ -1120,8 +1120,8 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? - @kind = args[:kind] unless args[:kind].nil? + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) end end @@ -1156,10 +1156,10 @@ module Google # Update properties of this object def update!(**args) - @account_shipping = args[:account_shipping] unless args[:account_shipping].nil? - @batch_id = args[:batch_id] unless args[:batch_id].nil? - @errors = args[:errors] unless args[:errors].nil? - @kind = args[:kind] unless args[:kind].nil? + @account_shipping = args[:account_shipping] if args.key?(:account_shipping) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @errors = args[:errors] if args.key?(:errors) + @kind = args[:kind] if args.key?(:kind) end end @@ -1189,9 +1189,9 @@ module Google # 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? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) end end @@ -1210,7 +1210,7 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? + @entries = args[:entries] if args.key?(:entries) end end @@ -1244,10 +1244,10 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @batch_id = args[:batch_id] unless args[:batch_id].nil? - @merchant_id = args[:merchant_id] unless args[:merchant_id].nil? - @request_method = args[:request_method] unless args[:request_method].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @request_method = args[:request_method] if args.key?(:request_method) end end @@ -1272,8 +1272,8 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? - @kind = args[:kind] unless args[:kind].nil? + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) end end @@ -1303,9 +1303,9 @@ module Google # Update properties of this object def update!(**args) - @account_status = args[:account_status] unless args[:account_status].nil? - @batch_id = args[:batch_id] unless args[:batch_id].nil? - @errors = args[:errors] unless args[:errors].nil? + @account_status = args[:account_status] if args.key?(:account_status) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @errors = args[:errors] if args.key?(:errors) end end @@ -1335,9 +1335,9 @@ module Google # 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? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) end end @@ -1356,7 +1356,7 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? + @entries = args[:entries] if args.key?(:entries) end end @@ -1395,11 +1395,11 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @account_tax = args[:account_tax] unless args[:account_tax].nil? - @batch_id = args[:batch_id] unless args[:batch_id].nil? - @merchant_id = args[:merchant_id] unless args[:merchant_id].nil? - @request_method = args[:request_method] unless args[:request_method].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @account_tax = args[:account_tax] if args.key?(:account_tax) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @request_method = args[:request_method] if args.key?(:request_method) end end @@ -1424,8 +1424,8 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? - @kind = args[:kind] unless args[:kind].nil? + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) end end @@ -1460,10 +1460,10 @@ module Google # Update properties of this object def update!(**args) - @account_tax = args[:account_tax] unless args[:account_tax].nil? - @batch_id = args[:batch_id] unless args[:batch_id].nil? - @errors = args[:errors] unless args[:errors].nil? - @kind = args[:kind] unless args[:kind].nil? + @account_tax = args[:account_tax] if args.key?(:account_tax) + @batch_id = args[:batch_id] if args.key?(:batch_id) + @errors = args[:errors] if args.key?(:errors) + @kind = args[:kind] if args.key?(:kind) end end @@ -1493,9 +1493,9 @@ module Google # 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? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) end end @@ -1572,17 +1572,17 @@ module Google # Update properties of this object def update!(**args) - @attribute_language = args[:attribute_language] unless args[:attribute_language].nil? - @content_language = args[:content_language] unless args[:content_language].nil? - @content_type = args[:content_type] unless args[:content_type].nil? - @fetch_schedule = args[:fetch_schedule] unless args[:fetch_schedule].nil? - @file_name = args[:file_name] unless args[:file_name].nil? - @format = args[:format] unless args[:format].nil? - @id = args[:id] unless args[:id].nil? - @intended_destinations = args[:intended_destinations] unless args[:intended_destinations].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @target_country = args[:target_country] unless args[:target_country].nil? + @attribute_language = args[:attribute_language] if args.key?(:attribute_language) + @content_language = args[:content_language] if args.key?(:content_language) + @content_type = args[:content_type] if args.key?(:content_type) + @fetch_schedule = args[:fetch_schedule] if args.key?(:fetch_schedule) + @file_name = args[:file_name] if args.key?(:file_name) + @format = args[:format] if args.key?(:format) + @id = args[:id] if args.key?(:id) + @intended_destinations = args[:intended_destinations] if args.key?(:intended_destinations) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @target_country = args[:target_country] if args.key?(:target_country) end end @@ -1637,13 +1637,13 @@ module Google # Update properties of this object def update!(**args) - @day_of_month = args[:day_of_month] unless args[:day_of_month].nil? - @fetch_url = args[:fetch_url] unless args[:fetch_url].nil? - @hour = args[:hour] unless args[:hour].nil? - @password = args[:password] unless args[:password].nil? - @time_zone = args[:time_zone] unless args[:time_zone].nil? - @username = args[:username] unless args[:username].nil? - @weekday = args[:weekday] unless args[:weekday].nil? + @day_of_month = args[:day_of_month] if args.key?(:day_of_month) + @fetch_url = args[:fetch_url] if args.key?(:fetch_url) + @hour = args[:hour] if args.key?(:hour) + @password = args[:password] if args.key?(:password) + @time_zone = args[:time_zone] if args.key?(:time_zone) + @username = args[:username] if args.key?(:username) + @weekday = args[:weekday] if args.key?(:weekday) end end @@ -1676,9 +1676,9 @@ module Google # Update properties of this object def update!(**args) - @column_delimiter = args[:column_delimiter] unless args[:column_delimiter].nil? - @file_encoding = args[:file_encoding] unless args[:file_encoding].nil? - @quoting_mode = args[:quoting_mode] unless args[:quoting_mode].nil? + @column_delimiter = args[:column_delimiter] if args.key?(:column_delimiter) + @file_encoding = args[:file_encoding] if args.key?(:file_encoding) + @quoting_mode = args[:quoting_mode] if args.key?(:quoting_mode) end end @@ -1734,14 +1734,14 @@ module Google # Update properties of this object def update!(**args) - @datafeed_id = args[:datafeed_id] unless args[:datafeed_id].nil? - @errors = args[:errors] unless args[:errors].nil? - @items_total = args[:items_total] unless args[:items_total].nil? - @items_valid = args[:items_valid] unless args[:items_valid].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_upload_date = args[:last_upload_date] unless args[:last_upload_date].nil? - @processing_status = args[:processing_status] unless args[:processing_status].nil? - @warnings = args[:warnings] unless args[:warnings].nil? + @datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id) + @errors = args[:errors] if args.key?(:errors) + @items_total = args[:items_total] if args.key?(:items_total) + @items_valid = args[:items_valid] if args.key?(:items_valid) + @kind = args[:kind] if args.key?(:kind) + @last_upload_date = args[:last_upload_date] if args.key?(:last_upload_date) + @processing_status = args[:processing_status] if args.key?(:processing_status) + @warnings = args[:warnings] if args.key?(:warnings) end end @@ -1775,10 +1775,10 @@ module Google # Update properties of this object def update!(**args) - @code = args[:code] unless args[:code].nil? - @count = args[:count] unless args[:count].nil? - @examples = args[:examples] unless args[:examples].nil? - @message = args[:message] unless args[:message].nil? + @code = args[:code] if args.key?(:code) + @count = args[:count] if args.key?(:count) + @examples = args[:examples] if args.key?(:examples) + @message = args[:message] if args.key?(:message) end end @@ -1807,9 +1807,9 @@ module Google # Update properties of this object def update!(**args) - @item_id = args[:item_id] unless args[:item_id].nil? - @line_number = args[:line_number] unless args[:line_number].nil? - @value = args[:value] unless args[:value].nil? + @item_id = args[:item_id] if args.key?(:item_id) + @line_number = args[:line_number] if args.key?(:line_number) + @value = args[:value] if args.key?(:value) end end @@ -1828,7 +1828,7 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? + @entries = args[:entries] if args.key?(:entries) end end @@ -1867,11 +1867,11 @@ module Google # Update properties of this object def update!(**args) - @batch_id = args[:batch_id] unless args[:batch_id].nil? - @datafeed = args[:datafeed] unless args[:datafeed].nil? - @datafeed_id = args[:datafeed_id] unless args[:datafeed_id].nil? - @merchant_id = args[:merchant_id] unless args[:merchant_id].nil? - @request_method = args[:request_method] unless args[:request_method].nil? + @batch_id = args[:batch_id] if args.key?(:batch_id) + @datafeed = args[:datafeed] if args.key?(:datafeed) + @datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @request_method = args[:request_method] if args.key?(:request_method) end end @@ -1896,8 +1896,8 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? - @kind = args[:kind] unless args[:kind].nil? + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) end end @@ -1926,9 +1926,9 @@ module Google # Update properties of this object def update!(**args) - @batch_id = args[:batch_id] unless args[:batch_id].nil? - @datafeed = args[:datafeed] unless args[:datafeed].nil? - @errors = args[:errors] unless args[:errors].nil? + @batch_id = args[:batch_id] if args.key?(:batch_id) + @datafeed = args[:datafeed] if args.key?(:datafeed) + @errors = args[:errors] if args.key?(:errors) end end @@ -1958,9 +1958,9 @@ module Google # 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? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) end end @@ -1979,7 +1979,7 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? + @entries = args[:entries] if args.key?(:entries) end end @@ -2013,10 +2013,10 @@ module Google # Update properties of this object def update!(**args) - @batch_id = args[:batch_id] unless args[:batch_id].nil? - @datafeed_id = args[:datafeed_id] unless args[:datafeed_id].nil? - @merchant_id = args[:merchant_id] unless args[:merchant_id].nil? - @request_method = args[:request_method] unless args[:request_method].nil? + @batch_id = args[:batch_id] if args.key?(:batch_id) + @datafeed_id = args[:datafeed_id] if args.key?(:datafeed_id) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @request_method = args[:request_method] if args.key?(:request_method) end end @@ -2041,8 +2041,8 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? - @kind = args[:kind] unless args[:kind].nil? + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) end end @@ -2072,9 +2072,9 @@ module Google # Update properties of this object def update!(**args) - @batch_id = args[:batch_id] unless args[:batch_id].nil? - @datafeed_status = args[:datafeed_status] unless args[:datafeed_status].nil? - @errors = args[:errors] unless args[:errors].nil? + @batch_id = args[:batch_id] if args.key?(:batch_id) + @datafeed_status = args[:datafeed_status] if args.key?(:datafeed_status) + @errors = args[:errors] if args.key?(:errors) end end @@ -2104,9 +2104,9 @@ module Google # 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? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) end end @@ -2135,9 +2135,9 @@ module Google # Update properties of this object def update!(**args) - @domain = args[:domain] unless args[:domain].nil? - @message = args[:message] unless args[:message].nil? - @reason = args[:reason] unless args[:reason].nil? + @domain = args[:domain] if args.key?(:domain) + @message = args[:message] if args.key?(:message) + @reason = args[:reason] if args.key?(:reason) end end @@ -2166,9 +2166,9 @@ module Google # Update properties of this object def update!(**args) - @code = args[:code] unless args[:code].nil? - @errors = args[:errors] unless args[:errors].nil? - @message = args[:message] unless args[:message].nil? + @code = args[:code] if args.key?(:code) + @errors = args[:errors] if args.key?(:errors) + @message = args[:message] if args.key?(:message) end end @@ -2192,8 +2192,8 @@ module Google # Update properties of this object def update!(**args) - @amount = args[:amount] unless args[:amount].nil? - @months = args[:months] unless args[:months].nil? + @amount = args[:amount] if args.key?(:amount) + @months = args[:months] if args.key?(:months) end end @@ -2257,15 +2257,15 @@ 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? - @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? + @availability = args[:availability] if args.key?(:availability) + @installment = args[:installment] if args.key?(:installment) + @kind = args[:kind] if args.key?(:kind) + @loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points) + @price = args[:price] if args.key?(:price) + @quantity = args[:quantity] if args.key?(:quantity) + @sale_price = args[:sale_price] if args.key?(:sale_price) + @sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date) + @sell_on_google_quantity = args[:sell_on_google_quantity] if args.key?(:sell_on_google_quantity) end end @@ -2284,7 +2284,7 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? + @entries = args[:entries] if args.key?(:entries) end end @@ -2324,11 +2324,11 @@ module Google # Update properties of this object def update!(**args) - @batch_id = args[:batch_id] unless args[:batch_id].nil? - @inventory = args[:inventory] unless args[:inventory].nil? - @merchant_id = args[:merchant_id] unless args[:merchant_id].nil? - @product_id = args[:product_id] unless args[:product_id].nil? - @store_code = args[:store_code] unless args[:store_code].nil? + @batch_id = args[:batch_id] if args.key?(:batch_id) + @inventory = args[:inventory] if args.key?(:inventory) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @product_id = args[:product_id] if args.key?(:product_id) + @store_code = args[:store_code] if args.key?(:store_code) end end @@ -2353,8 +2353,8 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? - @kind = args[:kind] unless args[:kind].nil? + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) end end @@ -2384,9 +2384,9 @@ module Google # 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? - @kind = args[:kind] unless args[:kind].nil? + @batch_id = args[:batch_id] if args.key?(:batch_id) + @errors = args[:errors] if args.key?(:errors) + @kind = args[:kind] if args.key?(:kind) end end @@ -2444,14 +2444,14 @@ 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? - @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? + @availability = args[:availability] if args.key?(:availability) + @installment = args[:installment] if args.key?(:installment) + @loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points) + @price = args[:price] if args.key?(:price) + @quantity = args[:quantity] if args.key?(:quantity) + @sale_price = args[:sale_price] if args.key?(:sale_price) + @sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date) + @sell_on_google_quantity = args[:sell_on_google_quantity] if args.key?(:sell_on_google_quantity) end end @@ -2471,7 +2471,7 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? + @kind = args[:kind] if args.key?(:kind) end end @@ -2502,9 +2502,9 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @points_value = args[:points_value] unless args[:points_value].nil? - @ratio = args[:ratio] unless args[:ratio].nil? + @name = args[:name] if args.key?(:name) + @points_value = args[:points_value] if args.key?(:points_value) + @ratio = args[:ratio] if args.key?(:ratio) end end @@ -2612,24 +2612,24 @@ module Google # 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? + @acknowledged = args[:acknowledged] if args.key?(:acknowledged) + @customer = args[:customer] if args.key?(:customer) + @delivery_details = args[:delivery_details] if args.key?(:delivery_details) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @line_items = args[:line_items] if args.key?(:line_items) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id) + @net_amount = args[:net_amount] if args.key?(:net_amount) + @payment_method = args[:payment_method] if args.key?(:payment_method) + @payment_status = args[:payment_status] if args.key?(:payment_status) + @placed_date = args[:placed_date] if args.key?(:placed_date) + @refunds = args[:refunds] if args.key?(:refunds) + @shipments = args[:shipments] if args.key?(:shipments) + @shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost) + @shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax) + @shipping_option = args[:shipping_option] if args.key?(:shipping_option) + @status = args[:status] if args.key?(:status) end end @@ -2690,14 +2690,14 @@ module Google # 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? + @country = args[:country] if args.key?(:country) + @full_address = args[:full_address] if args.key?(:full_address) + @is_post_office_box = args[:is_post_office_box] if args.key?(:is_post_office_box) + @locality = args[:locality] if args.key?(:locality) + @postal_code = args[:postal_code] if args.key?(:postal_code) + @recipient_name = args[:recipient_name] if args.key?(:recipient_name) + @region = args[:region] if args.key?(:region) + @street_address = args[:street_address] if args.key?(:street_address) end end @@ -2736,11 +2736,11 @@ module Google # 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? + @actor = args[:actor] if args.key?(:actor) + @creation_date = args[:creation_date] if args.key?(:creation_date) + @quantity = args[:quantity] if args.key?(:quantity) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) end end @@ -2774,9 +2774,9 @@ module Google # 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? + @email = args[:email] if args.key?(:email) + @explicit_marketing_preference = args[:explicit_marketing_preference] if args.key?(:explicit_marketing_preference) + @full_name = args[:full_name] if args.key?(:full_name) end end @@ -2800,8 +2800,8 @@ module Google # 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? + @address = args[:address] if args.key?(:address) + @phone_number = args[:phone_number] if args.key?(:phone_number) end end @@ -2887,20 +2887,20 @@ module Google # 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? + @cancellations = args[:cancellations] if args.key?(:cancellations) + @id = args[:id] if args.key?(:id) + @price = args[:price] if args.key?(:price) + @product = args[:product] if args.key?(:product) + @quantity_canceled = args[:quantity_canceled] if args.key?(:quantity_canceled) + @quantity_delivered = args[:quantity_delivered] if args.key?(:quantity_delivered) + @quantity_ordered = args[:quantity_ordered] if args.key?(:quantity_ordered) + @quantity_pending = args[:quantity_pending] if args.key?(:quantity_pending) + @quantity_returned = args[:quantity_returned] if args.key?(:quantity_returned) + @quantity_shipped = args[:quantity_shipped] if args.key?(:quantity_shipped) + @return_info = args[:return_info] if args.key?(:return_info) + @returns = args[:returns] if args.key?(:returns) + @shipping_details = args[:shipping_details] if args.key?(:shipping_details) + @tax = args[:tax] if args.key?(:tax) end end @@ -2991,21 +2991,21 @@ module Google # 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? + @brand = args[:brand] if args.key?(:brand) + @channel = args[:channel] if args.key?(:channel) + @condition = args[:condition] if args.key?(:condition) + @content_language = args[:content_language] if args.key?(:content_language) + @gtin = args[:gtin] if args.key?(:gtin) + @id = args[:id] if args.key?(:id) + @image_link = args[:image_link] if args.key?(:image_link) + @item_group_id = args[:item_group_id] if args.key?(:item_group_id) + @mpn = args[:mpn] if args.key?(:mpn) + @offer_id = args[:offer_id] if args.key?(:offer_id) + @price = args[:price] if args.key?(:price) + @shown_image = args[:shown_image] if args.key?(:shown_image) + @target_country = args[:target_country] if args.key?(:target_country) + @title = args[:title] if args.key?(:title) + @variant_attributes = args[:variant_attributes] if args.key?(:variant_attributes) end end @@ -3029,8 +3029,8 @@ module Google # Update properties of this object def update!(**args) - @dimension = args[:dimension] unless args[:dimension].nil? - @value = args[:value] unless args[:value].nil? + @dimension = args[:dimension] if args.key?(:dimension) + @value = args[:value] if args.key?(:value) end end @@ -3060,9 +3060,9 @@ module Google # 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? + @days_to_return = args[:days_to_return] if args.key?(:days_to_return) + @is_returnable = args[:is_returnable] if args.key?(:is_returnable) + @policy_url = args[:policy_url] if args.key?(:policy_url) end end @@ -3091,9 +3091,9 @@ module Google # 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? + @deliver_by_date = args[:deliver_by_date] if args.key?(:deliver_by_date) + @method_prop = args[:method_prop] if args.key?(:method_prop) + @ship_by_date = args[:ship_by_date] if args.key?(:ship_by_date) end end @@ -3127,10 +3127,10 @@ module Google # 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? + @carrier = args[:carrier] if args.key?(:carrier) + @max_days_in_transit = args[:max_days_in_transit] if args.key?(:max_days_in_transit) + @method_name = args[:method_name] if args.key?(:method_name) + @min_days_in_transit = args[:min_days_in_transit] if args.key?(:min_days_in_transit) end end @@ -3174,12 +3174,12 @@ module Google # 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? + @billing_address = args[:billing_address] if args.key?(:billing_address) + @expiration_month = args[:expiration_month] if args.key?(:expiration_month) + @expiration_year = args[:expiration_year] if args.key?(:expiration_year) + @last_four_digits = args[:last_four_digits] if args.key?(:last_four_digits) + @phone_number = args[:phone_number] if args.key?(:phone_number) + @type = args[:type] if args.key?(:type) end end @@ -3218,11 +3218,11 @@ module Google # 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? + @actor = args[:actor] if args.key?(:actor) + @amount = args[:amount] if args.key?(:amount) + @creation_date = args[:creation_date] if args.key?(:creation_date) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) end end @@ -3261,11 +3261,11 @@ module Google # 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? + @actor = args[:actor] if args.key?(:actor) + @creation_date = args[:creation_date] if args.key?(:creation_date) + @quantity = args[:quantity] if args.key?(:quantity) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) end end @@ -3315,13 +3315,13 @@ module Google # 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? + @carrier = args[:carrier] if args.key?(:carrier) + @creation_date = args[:creation_date] if args.key?(:creation_date) + @delivery_date = args[:delivery_date] if args.key?(:delivery_date) + @id = args[:id] if args.key?(:id) + @line_items = args[:line_items] if args.key?(:line_items) + @status = args[:status] if args.key?(:status) + @tracking_id = args[:tracking_id] if args.key?(:tracking_id) end end @@ -3345,8 +3345,8 @@ module Google # 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? + @line_item_id = args[:line_item_id] if args.key?(:line_item_id) + @quantity = args[:quantity] if args.key?(:quantity) end end @@ -3365,7 +3365,7 @@ module Google # Update properties of this object def update!(**args) - @operation_id = args[:operation_id] unless args[:operation_id].nil? + @operation_id = args[:operation_id] if args.key?(:operation_id) end end @@ -3390,8 +3390,8 @@ module Google # 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? + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) end end @@ -3411,7 +3411,7 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? + @kind = args[:kind] if args.key?(:kind) end end @@ -3457,12 +3457,12 @@ module Google # Update properties of this object def update!(**args) - @amount = args[:amount] unless args[:amount].nil? - @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? + @amount = args[:amount] if args.key?(:amount) + @line_item_id = args[:line_item_id] if args.key?(:line_item_id) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @quantity = args[:quantity] if args.key?(:quantity) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) end end @@ -3487,8 +3487,8 @@ module Google # 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? + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) end end @@ -3517,9 +3517,9 @@ module Google # 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? + @operation_id = args[:operation_id] if args.key?(:operation_id) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) end end @@ -3544,8 +3544,8 @@ module Google # 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? + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) end end @@ -3571,8 +3571,8 @@ module Google # 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? + @template_name = args[:template_name] if args.key?(:template_name) + @test_order = args[:test_order] if args.key?(:test_order) end end @@ -3597,8 +3597,8 @@ module Google # 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? + @kind = args[:kind] if args.key?(:kind) + @order_id = args[:order_id] if args.key?(:order_id) end end @@ -3617,7 +3617,7 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? + @entries = args[:entries] if args.key?(:entries) end end @@ -3693,18 +3693,18 @@ module Google # 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? + @batch_id = args[:batch_id] if args.key?(:batch_id) + @cancel = args[:cancel] if args.key?(:cancel) + @cancel_line_item = args[:cancel_line_item] if args.key?(:cancel_line_item) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id) + @method_prop = args[:method_prop] if args.key?(:method_prop) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @order_id = args[:order_id] if args.key?(:order_id) + @refund = args[:refund] if args.key?(:refund) + @return_line_item = args[:return_line_item] if args.key?(:return_line_item) + @ship_line_items = args[:ship_line_items] if args.key?(:ship_line_items) + @update_shipment = args[:update_shipment] if args.key?(:update_shipment) end end @@ -3728,8 +3728,8 @@ module Google # 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? + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) end end @@ -3770,11 +3770,11 @@ module Google # Update properties of this object def update!(**args) - @amount = args[:amount] unless args[:amount].nil? - @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? + @amount = args[:amount] if args.key?(:amount) + @line_item_id = args[:line_item_id] if args.key?(:line_item_id) + @quantity = args[:quantity] if args.key?(:quantity) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) end end @@ -3803,9 +3803,9 @@ module Google # 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? + @amount = args[:amount] if args.key?(:amount) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) end end @@ -3839,10 +3839,10 @@ module Google # 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? + @line_item_id = args[:line_item_id] if args.key?(:line_item_id) + @quantity = args[:quantity] if args.key?(:quantity) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) end end @@ -3876,10 +3876,10 @@ module Google # 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? + @carrier = args[:carrier] if args.key?(:carrier) + @line_items = args[:line_items] if args.key?(:line_items) + @shipment_id = args[:shipment_id] if args.key?(:shipment_id) + @tracking_id = args[:tracking_id] if args.key?(:tracking_id) end end @@ -3913,10 +3913,10 @@ module Google # 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? + @carrier = args[:carrier] if args.key?(:carrier) + @shipment_id = args[:shipment_id] if args.key?(:shipment_id) + @status = args[:status] if args.key?(:status) + @tracking_id = args[:tracking_id] if args.key?(:tracking_id) end end @@ -3941,8 +3941,8 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? - @kind = args[:kind] unless args[:kind].nil? + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) end end @@ -3984,11 +3984,11 @@ module Google # 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? + @batch_id = args[:batch_id] if args.key?(:batch_id) + @errors = args[:errors] if args.key?(:errors) + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) + @order = args[:order] if args.key?(:order) end end @@ -4013,8 +4013,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @order = args[:order] unless args[:order].nil? + @kind = args[:kind] if args.key?(:kind) + @order = args[:order] if args.key?(:order) end end @@ -4039,8 +4039,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @template = args[:template] unless args[:template].nil? + @kind = args[:kind] if args.key?(:kind) + @template = args[:template] if args.key?(:template) end end @@ -4070,9 +4070,9 @@ module Google # 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? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) end end @@ -4106,10 +4106,10 @@ module Google # 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? + @amount = args[:amount] if args.key?(:amount) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) end end @@ -4134,8 +4134,8 @@ module Google # 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? + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) end end @@ -4174,11 +4174,11 @@ module Google # 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? + @line_item_id = args[:line_item_id] if args.key?(:line_item_id) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @quantity = args[:quantity] if args.key?(:quantity) + @reason = args[:reason] if args.key?(:reason) + @reason_text = args[:reason_text] if args.key?(:reason_text) end end @@ -4203,8 +4203,8 @@ module Google # 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? + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) end end @@ -4243,11 +4243,11 @@ module Google # 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? + @carrier = args[:carrier] if args.key?(:carrier) + @line_items = args[:line_items] if args.key?(:line_items) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @shipment_id = args[:shipment_id] if args.key?(:shipment_id) + @tracking_id = args[:tracking_id] if args.key?(:tracking_id) end end @@ -4272,8 +4272,8 @@ module Google # 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? + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) end end @@ -4297,8 +4297,8 @@ module Google # 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? + @merchant_order_id = args[:merchant_order_id] if args.key?(:merchant_order_id) + @operation_id = args[:operation_id] if args.key?(:operation_id) end end @@ -4323,8 +4323,8 @@ module Google # 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? + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) end end @@ -4363,11 +4363,11 @@ module Google # 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? + @carrier = args[:carrier] if args.key?(:carrier) + @operation_id = args[:operation_id] if args.key?(:operation_id) + @shipment_id = args[:shipment_id] if args.key?(:shipment_id) + @status = args[:status] if args.key?(:status) + @tracking_id = args[:tracking_id] if args.key?(:tracking_id) end end @@ -4392,8 +4392,8 @@ module Google # 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? + @execution_status = args[:execution_status] if args.key?(:execution_status) + @kind = args[:kind] if args.key?(:kind) end end @@ -4417,8 +4417,8 @@ module Google # Update properties of this object def update!(**args) - @currency = args[:currency] unless args[:currency].nil? - @value = args[:value] unless args[:value].nil? + @currency = args[:currency] if args.key?(:currency) + @value = args[:value] if args.key?(:value) end end @@ -4799,76 +4799,76 @@ module Google # Update properties of this object def update!(**args) - @additional_image_links = args[:additional_image_links] unless args[:additional_image_links].nil? - @adult = args[:adult] unless args[:adult].nil? - @adwords_grouping = args[:adwords_grouping] unless args[:adwords_grouping].nil? - @adwords_labels = args[:adwords_labels] unless args[:adwords_labels].nil? - @adwords_redirect = args[:adwords_redirect] unless args[:adwords_redirect].nil? - @age_group = args[:age_group] unless args[:age_group].nil? - @aspects = args[:aspects] unless args[:aspects].nil? - @availability = args[:availability] unless args[:availability].nil? - @availability_date = args[:availability_date] unless args[:availability_date].nil? - @brand = args[:brand] unless args[:brand].nil? - @channel = args[:channel] unless args[:channel].nil? - @color = args[:color] unless args[:color].nil? - @condition = args[:condition] unless args[:condition].nil? - @content_language = args[:content_language] unless args[:content_language].nil? - @custom_attributes = args[:custom_attributes] unless args[:custom_attributes].nil? - @custom_groups = args[:custom_groups] unless args[:custom_groups].nil? - @custom_label0 = args[:custom_label0] unless args[:custom_label0].nil? - @custom_label1 = args[:custom_label1] unless args[:custom_label1].nil? - @custom_label2 = args[:custom_label2] unless args[:custom_label2].nil? - @custom_label3 = args[:custom_label3] unless args[:custom_label3].nil? - @custom_label4 = args[:custom_label4] unless args[:custom_label4].nil? - @description = args[:description] unless args[:description].nil? - @destinations = args[:destinations] unless args[:destinations].nil? - @display_ads_id = args[:display_ads_id] unless args[:display_ads_id].nil? - @display_ads_link = args[:display_ads_link] unless args[:display_ads_link].nil? - @display_ads_similar_ids = args[:display_ads_similar_ids] unless args[:display_ads_similar_ids].nil? - @display_ads_title = args[:display_ads_title] unless args[:display_ads_title].nil? - @display_ads_value = args[:display_ads_value] unless args[:display_ads_value].nil? - @energy_efficiency_class = args[:energy_efficiency_class] unless args[:energy_efficiency_class].nil? - @expiration_date = args[:expiration_date] unless args[:expiration_date].nil? - @gender = args[:gender] unless args[:gender].nil? - @google_product_category = args[:google_product_category] unless args[:google_product_category].nil? - @gtin = args[:gtin] unless args[:gtin].nil? - @id = args[:id] unless args[:id].nil? - @identifier_exists = args[:identifier_exists] unless args[:identifier_exists].nil? - @image_link = args[:image_link] unless args[:image_link].nil? - @installment = args[:installment] unless args[:installment].nil? - @is_bundle = args[:is_bundle] unless args[:is_bundle].nil? - @item_group_id = args[:item_group_id] unless args[:item_group_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @link = args[:link] unless args[:link].nil? - @loyalty_points = args[:loyalty_points] unless args[:loyalty_points].nil? - @material = args[:material] unless args[:material].nil? - @mobile_link = args[:mobile_link] unless args[:mobile_link].nil? - @mpn = args[:mpn] unless args[:mpn].nil? - @multipack = args[:multipack] unless args[:multipack].nil? - @offer_id = args[:offer_id] unless args[:offer_id].nil? - @online_only = args[:online_only] unless args[:online_only].nil? - @pattern = args[:pattern] unless args[:pattern].nil? - @price = args[:price] unless args[:price].nil? - @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? - @shipping_length = args[:shipping_length] unless args[:shipping_length].nil? - @shipping_weight = args[:shipping_weight] unless args[:shipping_weight].nil? - @shipping_width = args[:shipping_width] unless args[:shipping_width].nil? - @size_system = args[:size_system] unless args[:size_system].nil? - @size_type = args[:size_type] unless args[:size_type].nil? - @sizes = args[:sizes] unless args[:sizes].nil? - @target_country = args[:target_country] unless args[:target_country].nil? - @taxes = args[:taxes] unless args[:taxes].nil? - @title = args[:title] unless args[:title].nil? - @unit_pricing_base_measure = args[:unit_pricing_base_measure] unless args[:unit_pricing_base_measure].nil? - @unit_pricing_measure = args[:unit_pricing_measure] unless args[:unit_pricing_measure].nil? - @validated_destinations = args[:validated_destinations] unless args[:validated_destinations].nil? - @warnings = args[:warnings] unless args[:warnings].nil? + @additional_image_links = args[:additional_image_links] if args.key?(:additional_image_links) + @adult = args[:adult] if args.key?(:adult) + @adwords_grouping = args[:adwords_grouping] if args.key?(:adwords_grouping) + @adwords_labels = args[:adwords_labels] if args.key?(:adwords_labels) + @adwords_redirect = args[:adwords_redirect] if args.key?(:adwords_redirect) + @age_group = args[:age_group] if args.key?(:age_group) + @aspects = args[:aspects] if args.key?(:aspects) + @availability = args[:availability] if args.key?(:availability) + @availability_date = args[:availability_date] if args.key?(:availability_date) + @brand = args[:brand] if args.key?(:brand) + @channel = args[:channel] if args.key?(:channel) + @color = args[:color] if args.key?(:color) + @condition = args[:condition] if args.key?(:condition) + @content_language = args[:content_language] if args.key?(:content_language) + @custom_attributes = args[:custom_attributes] if args.key?(:custom_attributes) + @custom_groups = args[:custom_groups] if args.key?(:custom_groups) + @custom_label0 = args[:custom_label0] if args.key?(:custom_label0) + @custom_label1 = args[:custom_label1] if args.key?(:custom_label1) + @custom_label2 = args[:custom_label2] if args.key?(:custom_label2) + @custom_label3 = args[:custom_label3] if args.key?(:custom_label3) + @custom_label4 = args[:custom_label4] if args.key?(:custom_label4) + @description = args[:description] if args.key?(:description) + @destinations = args[:destinations] if args.key?(:destinations) + @display_ads_id = args[:display_ads_id] if args.key?(:display_ads_id) + @display_ads_link = args[:display_ads_link] if args.key?(:display_ads_link) + @display_ads_similar_ids = args[:display_ads_similar_ids] if args.key?(:display_ads_similar_ids) + @display_ads_title = args[:display_ads_title] if args.key?(:display_ads_title) + @display_ads_value = args[:display_ads_value] if args.key?(:display_ads_value) + @energy_efficiency_class = args[:energy_efficiency_class] if args.key?(:energy_efficiency_class) + @expiration_date = args[:expiration_date] if args.key?(:expiration_date) + @gender = args[:gender] if args.key?(:gender) + @google_product_category = args[:google_product_category] if args.key?(:google_product_category) + @gtin = args[:gtin] if args.key?(:gtin) + @id = args[:id] if args.key?(:id) + @identifier_exists = args[:identifier_exists] if args.key?(:identifier_exists) + @image_link = args[:image_link] if args.key?(:image_link) + @installment = args[:installment] if args.key?(:installment) + @is_bundle = args[:is_bundle] if args.key?(:is_bundle) + @item_group_id = args[:item_group_id] if args.key?(:item_group_id) + @kind = args[:kind] if args.key?(:kind) + @link = args[:link] if args.key?(:link) + @loyalty_points = args[:loyalty_points] if args.key?(:loyalty_points) + @material = args[:material] if args.key?(:material) + @mobile_link = args[:mobile_link] if args.key?(:mobile_link) + @mpn = args[:mpn] if args.key?(:mpn) + @multipack = args[:multipack] if args.key?(:multipack) + @offer_id = args[:offer_id] if args.key?(:offer_id) + @online_only = args[:online_only] if args.key?(:online_only) + @pattern = args[:pattern] if args.key?(:pattern) + @price = args[:price] if args.key?(:price) + @product_type = args[:product_type] if args.key?(:product_type) + @sale_price = args[:sale_price] if args.key?(:sale_price) + @sale_price_effective_date = args[:sale_price_effective_date] if args.key?(:sale_price_effective_date) + @sell_on_google_quantity = args[:sell_on_google_quantity] if args.key?(:sell_on_google_quantity) + @shipping = args[:shipping] if args.key?(:shipping) + @shipping_height = args[:shipping_height] if args.key?(:shipping_height) + @shipping_label = args[:shipping_label] if args.key?(:shipping_label) + @shipping_length = args[:shipping_length] if args.key?(:shipping_length) + @shipping_weight = args[:shipping_weight] if args.key?(:shipping_weight) + @shipping_width = args[:shipping_width] if args.key?(:shipping_width) + @size_system = args[:size_system] if args.key?(:size_system) + @size_type = args[:size_type] if args.key?(:size_type) + @sizes = args[:sizes] if args.key?(:sizes) + @target_country = args[:target_country] if args.key?(:target_country) + @taxes = args[:taxes] if args.key?(:taxes) + @title = args[:title] if args.key?(:title) + @unit_pricing_base_measure = args[:unit_pricing_base_measure] if args.key?(:unit_pricing_base_measure) + @unit_pricing_measure = args[:unit_pricing_measure] if args.key?(:unit_pricing_measure) + @validated_destinations = args[:validated_destinations] if args.key?(:validated_destinations) + @warnings = args[:warnings] if args.key?(:warnings) end end @@ -4897,9 +4897,9 @@ module Google # Update properties of this object def update!(**args) - @aspect_name = args[:aspect_name] unless args[:aspect_name].nil? - @destination_name = args[:destination_name] unless args[:destination_name].nil? - @intention = args[:intention] unless args[:intention].nil? + @aspect_name = args[:aspect_name] if args.key?(:aspect_name) + @destination_name = args[:destination_name] if args.key?(:destination_name) + @intention = args[:intention] if args.key?(:intention) end end @@ -4935,10 +4935,10 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @type = args[:type] unless args[:type].nil? - @unit = args[:unit] unless args[:unit].nil? - @value = args[:value] unless args[:value].nil? + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) + @unit = args[:unit] if args.key?(:unit) + @value = args[:value] if args.key?(:value) end end @@ -4962,8 +4962,8 @@ module Google # Update properties of this object def update!(**args) - @attributes = args[:attributes] unless args[:attributes].nil? - @name = args[:name] unless args[:name].nil? + @attributes = args[:attributes] if args.key?(:attributes) + @name = args[:name] if args.key?(:name) end end @@ -4987,8 +4987,8 @@ module Google # Update properties of this object def update!(**args) - @destination_name = args[:destination_name] unless args[:destination_name].nil? - @intention = args[:intention] unless args[:intention].nil? + @destination_name = args[:destination_name] if args.key?(:destination_name) + @intention = args[:intention] if args.key?(:intention) end end @@ -5041,13 +5041,13 @@ module Google # Update properties of this object def update!(**args) - @country = args[:country] unless args[:country].nil? - @location_group_name = args[:location_group_name] unless args[:location_group_name].nil? - @location_id = args[:location_id] unless args[:location_id].nil? - @postal_code = args[:postal_code] unless args[:postal_code].nil? - @price = args[:price] unless args[:price].nil? - @region = args[:region] unless args[:region].nil? - @service = args[:service] unless args[:service].nil? + @country = args[:country] if args.key?(:country) + @location_group_name = args[:location_group_name] if args.key?(:location_group_name) + @location_id = args[:location_id] if args.key?(:location_id) + @postal_code = args[:postal_code] if args.key?(:postal_code) + @price = args[:price] if args.key?(:price) + @region = args[:region] if args.key?(:region) + @service = args[:service] if args.key?(:service) end end @@ -5074,8 +5074,8 @@ module Google # Update properties of this object def update!(**args) - @unit = args[:unit] unless args[:unit].nil? - @value = args[:value] unless args[:value].nil? + @unit = args[:unit] if args.key?(:unit) + @value = args[:value] if args.key?(:value) end end @@ -5099,8 +5099,8 @@ module Google # Update properties of this object def update!(**args) - @unit = args[:unit] unless args[:unit].nil? - @value = args[:value] unless args[:value].nil? + @unit = args[:unit] if args.key?(:unit) + @value = args[:value] if args.key?(:value) end end @@ -5161,15 +5161,15 @@ module Google # Update properties of this object def update!(**args) - @creation_date = args[:creation_date] unless args[:creation_date].nil? - @data_quality_issues = args[:data_quality_issues] unless args[:data_quality_issues].nil? - @destination_statuses = args[:destination_statuses] unless args[:destination_statuses].nil? - @google_expiration_date = args[:google_expiration_date] unless args[:google_expiration_date].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_update_date = args[:last_update_date] unless args[:last_update_date].nil? - @link = args[:link] unless args[:link].nil? - @product_id = args[:product_id] unless args[:product_id].nil? - @title = args[:title] unless args[:title].nil? + @creation_date = args[:creation_date] if args.key?(:creation_date) + @data_quality_issues = args[:data_quality_issues] if args.key?(:data_quality_issues) + @destination_statuses = args[:destination_statuses] if args.key?(:destination_statuses) + @google_expiration_date = args[:google_expiration_date] if args.key?(:google_expiration_date) + @kind = args[:kind] if args.key?(:kind) + @last_update_date = args[:last_update_date] if args.key?(:last_update_date) + @link = args[:link] if args.key?(:link) + @product_id = args[:product_id] if args.key?(:product_id) + @title = args[:title] if args.key?(:title) end end @@ -5223,14 +5223,14 @@ module Google # Update properties of this object def update!(**args) - @detail = args[:detail] unless args[:detail].nil? - @fetch_status = args[:fetch_status] unless args[:fetch_status].nil? - @id = args[:id] unless args[:id].nil? - @location = args[:location] unless args[:location].nil? - @severity = args[:severity] unless args[:severity].nil? - @timestamp = args[:timestamp] unless args[:timestamp].nil? - @value_on_landing_page = args[:value_on_landing_page] unless args[:value_on_landing_page].nil? - @value_provided = args[:value_provided] unless args[:value_provided].nil? + @detail = args[:detail] if args.key?(:detail) + @fetch_status = args[:fetch_status] if args.key?(:fetch_status) + @id = args[:id] if args.key?(:id) + @location = args[:location] if args.key?(:location) + @severity = args[:severity] if args.key?(:severity) + @timestamp = args[:timestamp] if args.key?(:timestamp) + @value_on_landing_page = args[:value_on_landing_page] if args.key?(:value_on_landing_page) + @value_provided = args[:value_provided] if args.key?(:value_provided) end end @@ -5260,9 +5260,9 @@ module Google # Update properties of this object def update!(**args) - @approval_status = args[:approval_status] unless args[:approval_status].nil? - @destination = args[:destination] unless args[:destination].nil? - @intention = args[:intention] unless args[:intention].nil? + @approval_status = args[:approval_status] if args.key?(:approval_status) + @destination = args[:destination] if args.key?(:destination) + @intention = args[:intention] if args.key?(:intention) end end @@ -5310,12 +5310,12 @@ module Google # Update properties of this object def update!(**args) - @country = args[:country] unless args[:country].nil? - @location_id = args[:location_id] unless args[:location_id].nil? - @postal_code = args[:postal_code] unless args[:postal_code].nil? - @rate = args[:rate] unless args[:rate].nil? - @region = args[:region] unless args[:region].nil? - @tax_ship = args[:tax_ship] unless args[:tax_ship].nil? + @country = args[:country] if args.key?(:country) + @location_id = args[:location_id] if args.key?(:location_id) + @postal_code = args[:postal_code] if args.key?(:postal_code) + @rate = args[:rate] if args.key?(:rate) + @region = args[:region] if args.key?(:region) + @tax_ship = args[:tax_ship] if args.key?(:tax_ship) end end @@ -5339,8 +5339,8 @@ module Google # Update properties of this object def update!(**args) - @unit = args[:unit] unless args[:unit].nil? - @value = args[:value] unless args[:value].nil? + @unit = args[:unit] if args.key?(:unit) + @value = args[:value] if args.key?(:value) end end @@ -5364,8 +5364,8 @@ module Google # Update properties of this object def update!(**args) - @unit = args[:unit] unless args[:unit].nil? - @value = args[:value] unless args[:value].nil? + @unit = args[:unit] if args.key?(:unit) + @value = args[:value] if args.key?(:value) end end @@ -5384,7 +5384,7 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? + @entries = args[:entries] if args.key?(:entries) end end @@ -5424,11 +5424,11 @@ module Google # Update properties of this object def update!(**args) - @batch_id = args[:batch_id] unless args[:batch_id].nil? - @merchant_id = args[:merchant_id] unless args[:merchant_id].nil? - @request_method = args[:request_method] unless args[:request_method].nil? - @product = args[:product] unless args[:product].nil? - @product_id = args[:product_id] unless args[:product_id].nil? + @batch_id = args[:batch_id] if args.key?(:batch_id) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @request_method = args[:request_method] if args.key?(:request_method) + @product = args[:product] if args.key?(:product) + @product_id = args[:product_id] if args.key?(:product_id) end end @@ -5453,8 +5453,8 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? - @kind = args[:kind] unless args[:kind].nil? + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) end end @@ -5489,10 +5489,10 @@ module Google # 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? - @kind = args[:kind] unless args[:kind].nil? - @product = args[:product] unless args[:product].nil? + @batch_id = args[:batch_id] if args.key?(:batch_id) + @errors = args[:errors] if args.key?(:errors) + @kind = args[:kind] if args.key?(:kind) + @product = args[:product] if args.key?(:product) end end @@ -5522,9 +5522,9 @@ module Google # 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? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) end end @@ -5543,7 +5543,7 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? + @entries = args[:entries] if args.key?(:entries) end end @@ -5577,10 +5577,10 @@ module Google # Update properties of this object def update!(**args) - @batch_id = args[:batch_id] unless args[:batch_id].nil? - @merchant_id = args[:merchant_id] unless args[:merchant_id].nil? - @request_method = args[:request_method] unless args[:request_method].nil? - @product_id = args[:product_id] unless args[:product_id].nil? + @batch_id = args[:batch_id] if args.key?(:batch_id) + @merchant_id = args[:merchant_id] if args.key?(:merchant_id) + @request_method = args[:request_method] if args.key?(:request_method) + @product_id = args[:product_id] if args.key?(:product_id) end end @@ -5605,8 +5605,8 @@ module Google # Update properties of this object def update!(**args) - @entries = args[:entries] unless args[:entries].nil? - @kind = args[:kind] unless args[:kind].nil? + @entries = args[:entries] if args.key?(:entries) + @kind = args[:kind] if args.key?(:kind) end end @@ -5642,10 +5642,10 @@ module Google # 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? - @kind = args[:kind] unless args[:kind].nil? - @product_status = args[:product_status] unless args[:product_status].nil? + @batch_id = args[:batch_id] if args.key?(:batch_id) + @errors = args[:errors] if args.key?(:errors) + @kind = args[:kind] if args.key?(:kind) + @product_status = args[:product_status] if args.key?(:product_status) end end @@ -5675,9 +5675,9 @@ module Google # 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? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) end end @@ -5732,14 +5732,14 @@ module Google # 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? + @customer = args[:customer] if args.key?(:customer) + @kind = args[:kind] if args.key?(:kind) + @line_items = args[:line_items] if args.key?(:line_items) + @payment_method = args[:payment_method] if args.key?(:payment_method) + @predefined_delivery_address = args[:predefined_delivery_address] if args.key?(:predefined_delivery_address) + @shipping_cost = args[:shipping_cost] if args.key?(:shipping_cost) + @shipping_cost_tax = args[:shipping_cost_tax] if args.key?(:shipping_cost_tax) + @shipping_option = args[:shipping_option] if args.key?(:shipping_option) end end @@ -5773,9 +5773,9 @@ module Google # 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? + @email = args[:email] if args.key?(:email) + @explicit_marketing_preference = args[:explicit_marketing_preference] if args.key?(:explicit_marketing_preference) + @full_name = args[:full_name] if args.key?(:full_name) end end @@ -5814,11 +5814,11 @@ module Google # 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? + @product = args[:product] if args.key?(:product) + @quantity_ordered = args[:quantity_ordered] if args.key?(:quantity_ordered) + @return_info = args[:return_info] if args.key?(:return_info) + @shipping_details = args[:shipping_details] if args.key?(:shipping_details) + @unit_tax = args[:unit_tax] if args.key?(:unit_tax) end end @@ -5897,19 +5897,19 @@ module Google # 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? + @brand = args[:brand] if args.key?(:brand) + @channel = args[:channel] if args.key?(:channel) + @condition = args[:condition] if args.key?(:condition) + @content_language = args[:content_language] if args.key?(:content_language) + @gtin = args[:gtin] if args.key?(:gtin) + @image_link = args[:image_link] if args.key?(:image_link) + @item_group_id = args[:item_group_id] if args.key?(:item_group_id) + @mpn = args[:mpn] if args.key?(:mpn) + @offer_id = args[:offer_id] if args.key?(:offer_id) + @price = args[:price] if args.key?(:price) + @target_country = args[:target_country] if args.key?(:target_country) + @title = args[:title] if args.key?(:title) + @variant_attributes = args[:variant_attributes] if args.key?(:variant_attributes) end end @@ -5949,11 +5949,11 @@ module Google # 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? + @expiration_month = args[:expiration_month] if args.key?(:expiration_month) + @expiration_year = args[:expiration_year] if args.key?(:expiration_year) + @last_four_digits = args[:last_four_digits] if args.key?(:last_four_digits) + @predefined_billing_address = args[:predefined_billing_address] if args.key?(:predefined_billing_address) + @type = args[:type] if args.key?(:type) end end @@ -5977,8 +5977,8 @@ module Google # Update properties of this object def update!(**args) - @unit = args[:unit] unless args[:unit].nil? - @value = args[:value] unless args[:value].nil? + @unit = args[:unit] if args.key?(:unit) + @value = args[:value] if args.key?(:value) end end end diff --git a/generated/google/apis/coordinate_v1/classes.rb b/generated/google/apis/coordinate_v1/classes.rb index 3c7687885..157b4dc90 100644 --- a/generated/google/apis/coordinate_v1/classes.rb +++ b/generated/google/apis/coordinate_v1/classes.rb @@ -47,9 +47,9 @@ module Google # Update properties of this object def update!(**args) - @custom_field_id = args[:custom_field_id] unless args[:custom_field_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @value = args[:value] unless args[:value].nil? + @custom_field_id = args[:custom_field_id] if args.key?(:custom_field_id) + @kind = args[:kind] if args.key?(:kind) + @value = args[:value] if args.key?(:value) end end @@ -101,13 +101,13 @@ module Google # Update properties of this object def update!(**args) - @enabled = args[:enabled] unless args[:enabled].nil? - @enumitems = args[:enumitems] unless args[:enumitems].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @required_for_checkout = args[:required_for_checkout] unless args[:required_for_checkout].nil? - @type = args[:type] unless args[:type].nil? + @enabled = args[:enabled] if args.key?(:enabled) + @enumitems = args[:enumitems] if args.key?(:enumitems) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @required_for_checkout = args[:required_for_checkout] if args.key?(:required_for_checkout) + @type = args[:type] if args.key?(:type) end end @@ -131,8 +131,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -156,8 +156,8 @@ module Google # Update properties of this object def update!(**args) - @custom_field = args[:custom_field] unless args[:custom_field].nil? - @kind = args[:kind] unless args[:kind].nil? + @custom_field = args[:custom_field] if args.key?(:custom_field) + @kind = args[:kind] if args.key?(:kind) end end @@ -189,9 +189,9 @@ module Google # Update properties of this object def update!(**args) - @active = args[:active] unless args[:active].nil? - @kind = args[:kind] unless args[:kind].nil? - @value = args[:value] unless args[:value].nil? + @active = args[:active] if args.key?(:active) + @kind = args[:kind] if args.key?(:kind) + @value = args[:value] if args.key?(:value) end end @@ -226,10 +226,10 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @job_change = args[:job_change] unless args[:job_change].nil? - @kind = args[:kind] unless args[:kind].nil? - @state = args[:state] unless args[:state].nil? + @id = args[:id] if args.key?(:id) + @job_change = args[:job_change] if args.key?(:job_change) + @kind = args[:kind] if args.key?(:kind) + @state = args[:state] if args.key?(:state) end end @@ -258,9 +258,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @state = args[:state] unless args[:state].nil? - @timestamp = args[:timestamp] unless args[:timestamp].nil? + @kind = args[:kind] if args.key?(:kind) + @state = args[:state] if args.key?(:state) + @timestamp = args[:timestamp] if args.key?(:timestamp) end end @@ -289,9 +289,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -351,15 +351,15 @@ module Google # Update properties of this object def update!(**args) - @assignee = args[:assignee] unless args[:assignee].nil? - @custom_fields = args[:custom_fields] unless args[:custom_fields].nil? - @customer_name = args[:customer_name] unless args[:customer_name].nil? - @customer_phone_number = args[:customer_phone_number] unless args[:customer_phone_number].nil? - @kind = args[:kind] unless args[:kind].nil? - @location = args[:location] unless args[:location].nil? - @note = args[:note] unless args[:note].nil? - @progress = args[:progress] unless args[:progress].nil? - @title = args[:title] unless args[:title].nil? + @assignee = args[:assignee] if args.key?(:assignee) + @custom_fields = args[:custom_fields] if args.key?(:custom_fields) + @customer_name = args[:customer_name] if args.key?(:customer_name) + @customer_phone_number = args[:customer_phone_number] if args.key?(:customer_phone_number) + @kind = args[:kind] if args.key?(:kind) + @location = args[:location] if args.key?(:location) + @note = args[:note] if args.key?(:note) + @progress = args[:progress] if args.key?(:progress) + @title = args[:title] if args.key?(:title) end end @@ -393,10 +393,10 @@ module Google # Update properties of this object def update!(**args) - @address_line = args[:address_line] unless args[:address_line].nil? - @kind = args[:kind] unless args[:kind].nil? - @lat = args[:lat] unless args[:lat].nil? - @lng = args[:lng] unless args[:lng].nil? + @address_line = args[:address_line] if args.key?(:address_line) + @kind = args[:kind] if args.key?(:kind) + @lat = args[:lat] if args.key?(:lat) + @lng = args[:lng] if args.key?(:lng) end end @@ -430,10 +430,10 @@ module Google # 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? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) end end @@ -473,11 +473,11 @@ module Google # Update properties of this object def update!(**args) - @collection_time = args[:collection_time] unless args[:collection_time].nil? - @confidence_radius = args[:confidence_radius] unless args[:confidence_radius].nil? - @kind = args[:kind] unless args[:kind].nil? - @latitude = args[:latitude] unless args[:latitude].nil? - @longitude = args[:longitude] unless args[:longitude].nil? + @collection_time = args[:collection_time] if args.key?(:collection_time) + @confidence_radius = args[:confidence_radius] if args.key?(:confidence_radius) + @kind = args[:kind] if args.key?(:kind) + @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) end end @@ -518,11 +518,11 @@ module Google # Update properties of this object def update!(**args) - @all_day = args[:all_day] unless args[:all_day].nil? - @duration = args[:duration] unless args[:duration].nil? - @end_time = args[:end_time] unless args[:end_time].nil? - @kind = args[:kind] unless args[:kind].nil? - @start_time = args[:start_time] unless args[:start_time].nil? + @all_day = args[:all_day] if args.key?(:all_day) + @duration = args[:duration] if args.key?(:duration) + @end_time = args[:end_time] if args.key?(:end_time) + @kind = args[:kind] if args.key?(:kind) + @start_time = args[:start_time] if args.key?(:start_time) end end @@ -552,9 +552,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -578,8 +578,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -608,9 +608,9 @@ module Google # 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? - @previous_page_token = args[:previous_page_token] unless args[:previous_page_token].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token) end end @@ -635,8 +635,8 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) end end @@ -660,8 +660,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end end diff --git a/generated/google/apis/customsearch_v1/classes.rb b/generated/google/apis/customsearch_v1/classes.rb index 9cca789d5..f2d4ff110 100644 --- a/generated/google/apis/customsearch_v1/classes.rb +++ b/generated/google/apis/customsearch_v1/classes.rb @@ -42,8 +42,8 @@ module Google # Update properties of this object def update!(**args) - @facets = args[:facets] unless args[:facets].nil? - @title = args[:title] unless args[:title].nil? + @facets = args[:facets] if args.key?(:facets) + @title = args[:title] if args.key?(:title) end # @@ -71,9 +71,9 @@ module Google # Update properties of this object def update!(**args) - @anchor = args[:anchor] unless args[:anchor].nil? - @label = args[:label] unless args[:label].nil? - @label_with_op = args[:label_with_op] unless args[:label_with_op].nil? + @anchor = args[:anchor] if args.key?(:anchor) + @label = args[:label] if args.key?(:label) + @label_with_op = args[:label_with_op] if args.key?(:label_with_op) end end end @@ -118,12 +118,12 @@ module Google # Update properties of this object def update!(**args) - @body_lines = args[:body_lines] unless args[:body_lines].nil? - @display_link = args[:display_link] unless args[:display_link].nil? - @html_title = args[:html_title] unless args[:html_title].nil? - @image = args[:image] unless args[:image].nil? - @link = args[:link] unless args[:link].nil? - @title = args[:title] unless args[:title].nil? + @body_lines = args[:body_lines] if args.key?(:body_lines) + @display_link = args[:display_link] if args.key?(:display_link) + @html_title = args[:html_title] if args.key?(:html_title) + @image = args[:image] if args.key?(:image) + @link = args[:link] if args.key?(:link) + @title = args[:title] if args.key?(:title) end # @@ -156,10 +156,10 @@ module Google # Update properties of this object def update!(**args) - @html_title = args[:html_title] unless args[:html_title].nil? - @link = args[:link] unless args[:link].nil? - @title = args[:title] unless args[:title].nil? - @url = args[:url] unless args[:url].nil? + @html_title = args[:html_title] if args.key?(:html_title) + @link = args[:link] if args.key?(:link) + @title = args[:title] if args.key?(:title) + @url = args[:url] if args.key?(:url) end end @@ -188,9 +188,9 @@ module Google # Update properties of this object def update!(**args) - @height = args[:height] unless args[:height].nil? - @source = args[:source] unless args[:source].nil? - @width = args[:width] unless args[:width].nil? + @height = args[:height] if args.key?(:height) + @source = args[:source] if args.key?(:source) + @width = args[:width] if args.key?(:width) end end end @@ -390,43 +390,43 @@ module Google # Update properties of this object def update!(**args) - @count = args[:count] unless args[:count].nil? - @cr = args[:cr] unless args[:cr].nil? - @cref = args[:cref] unless args[:cref].nil? - @cx = args[:cx] unless args[:cx].nil? - @date_restrict = args[:date_restrict] unless args[:date_restrict].nil? - @disable_cn_tw_translation = args[:disable_cn_tw_translation] unless args[:disable_cn_tw_translation].nil? - @exact_terms = args[:exact_terms] unless args[:exact_terms].nil? - @exclude_terms = args[:exclude_terms] unless args[:exclude_terms].nil? - @file_type = args[:file_type] unless args[:file_type].nil? - @filter = args[:filter] unless args[:filter].nil? - @gl = args[:gl] unless args[:gl].nil? - @google_host = args[:google_host] unless args[:google_host].nil? - @high_range = args[:high_range] unless args[:high_range].nil? - @hl = args[:hl] unless args[:hl].nil? - @hq = args[:hq] unless args[:hq].nil? - @img_color_type = args[:img_color_type] unless args[:img_color_type].nil? - @img_dominant_color = args[:img_dominant_color] unless args[:img_dominant_color].nil? - @img_size = args[:img_size] unless args[:img_size].nil? - @img_type = args[:img_type] unless args[:img_type].nil? - @input_encoding = args[:input_encoding] unless args[:input_encoding].nil? - @language = args[:language] unless args[:language].nil? - @link_site = args[:link_site] unless args[:link_site].nil? - @low_range = args[:low_range] unless args[:low_range].nil? - @or_terms = args[:or_terms] unless args[:or_terms].nil? - @output_encoding = args[:output_encoding] unless args[:output_encoding].nil? - @related_site = args[:related_site] unless args[:related_site].nil? - @rights = args[:rights] unless args[:rights].nil? - @safe = args[:safe] unless args[:safe].nil? - @search_terms = args[:search_terms] unless args[:search_terms].nil? - @search_type = args[:search_type] unless args[:search_type].nil? - @site_search = args[:site_search] unless args[:site_search].nil? - @site_search_filter = args[:site_search_filter] unless args[:site_search_filter].nil? - @sort = args[:sort] unless args[:sort].nil? - @start_index = args[:start_index] unless args[:start_index].nil? - @start_page = args[:start_page] unless args[:start_page].nil? - @title = args[:title] unless args[:title].nil? - @total_results = args[:total_results] unless args[:total_results].nil? + @count = args[:count] if args.key?(:count) + @cr = args[:cr] if args.key?(:cr) + @cref = args[:cref] if args.key?(:cref) + @cx = args[:cx] if args.key?(:cx) + @date_restrict = args[:date_restrict] if args.key?(:date_restrict) + @disable_cn_tw_translation = args[:disable_cn_tw_translation] if args.key?(:disable_cn_tw_translation) + @exact_terms = args[:exact_terms] if args.key?(:exact_terms) + @exclude_terms = args[:exclude_terms] if args.key?(:exclude_terms) + @file_type = args[:file_type] if args.key?(:file_type) + @filter = args[:filter] if args.key?(:filter) + @gl = args[:gl] if args.key?(:gl) + @google_host = args[:google_host] if args.key?(:google_host) + @high_range = args[:high_range] if args.key?(:high_range) + @hl = args[:hl] if args.key?(:hl) + @hq = args[:hq] if args.key?(:hq) + @img_color_type = args[:img_color_type] if args.key?(:img_color_type) + @img_dominant_color = args[:img_dominant_color] if args.key?(:img_dominant_color) + @img_size = args[:img_size] if args.key?(:img_size) + @img_type = args[:img_type] if args.key?(:img_type) + @input_encoding = args[:input_encoding] if args.key?(:input_encoding) + @language = args[:language] if args.key?(:language) + @link_site = args[:link_site] if args.key?(:link_site) + @low_range = args[:low_range] if args.key?(:low_range) + @or_terms = args[:or_terms] if args.key?(:or_terms) + @output_encoding = args[:output_encoding] if args.key?(:output_encoding) + @related_site = args[:related_site] if args.key?(:related_site) + @rights = args[:rights] if args.key?(:rights) + @safe = args[:safe] if args.key?(:safe) + @search_terms = args[:search_terms] if args.key?(:search_terms) + @search_type = args[:search_type] if args.key?(:search_type) + @site_search = args[:site_search] if args.key?(:site_search) + @site_search_filter = args[:site_search_filter] if args.key?(:site_search_filter) + @sort = args[:sort] if args.key?(:sort) + @start_index = args[:start_index] if args.key?(:start_index) + @start_page = args[:start_page] if args.key?(:start_page) + @title = args[:title] if args.key?(:title) + @total_results = args[:total_results] if args.key?(:total_results) end end @@ -515,21 +515,21 @@ module Google # Update properties of this object def update!(**args) - @cache_id = args[:cache_id] unless args[:cache_id].nil? - @display_link = args[:display_link] unless args[:display_link].nil? - @file_format = args[:file_format] unless args[:file_format].nil? - @formatted_url = args[:formatted_url] unless args[:formatted_url].nil? - @html_formatted_url = args[:html_formatted_url] unless args[:html_formatted_url].nil? - @html_snippet = args[:html_snippet] unless args[:html_snippet].nil? - @html_title = args[:html_title] unless args[:html_title].nil? - @image = args[:image] unless args[:image].nil? - @kind = args[:kind] unless args[:kind].nil? - @labels = args[:labels] unless args[:labels].nil? - @link = args[:link] unless args[:link].nil? - @mime = args[:mime] unless args[:mime].nil? - @pagemap = args[:pagemap] unless args[:pagemap].nil? - @snippet = args[:snippet] unless args[:snippet].nil? - @title = args[:title] unless args[:title].nil? + @cache_id = args[:cache_id] if args.key?(:cache_id) + @display_link = args[:display_link] if args.key?(:display_link) + @file_format = args[:file_format] if args.key?(:file_format) + @formatted_url = args[:formatted_url] if args.key?(:formatted_url) + @html_formatted_url = args[:html_formatted_url] if args.key?(:html_formatted_url) + @html_snippet = args[:html_snippet] if args.key?(:html_snippet) + @html_title = args[:html_title] if args.key?(:html_title) + @image = args[:image] if args.key?(:image) + @kind = args[:kind] if args.key?(:kind) + @labels = args[:labels] if args.key?(:labels) + @link = args[:link] if args.key?(:link) + @mime = args[:mime] if args.key?(:mime) + @pagemap = args[:pagemap] if args.key?(:pagemap) + @snippet = args[:snippet] if args.key?(:snippet) + @title = args[:title] if args.key?(:title) end # @@ -577,13 +577,13 @@ module Google # Update properties of this object def update!(**args) - @byte_size = args[:byte_size] unless args[:byte_size].nil? - @context_link = args[:context_link] unless args[:context_link].nil? - @height = args[:height] unless args[:height].nil? - @thumbnail_height = args[:thumbnail_height] unless args[:thumbnail_height].nil? - @thumbnail_link = args[:thumbnail_link] unless args[:thumbnail_link].nil? - @thumbnail_width = args[:thumbnail_width] unless args[:thumbnail_width].nil? - @width = args[:width] unless args[:width].nil? + @byte_size = args[:byte_size] if args.key?(:byte_size) + @context_link = args[:context_link] if args.key?(:context_link) + @height = args[:height] if args.key?(:height) + @thumbnail_height = args[:thumbnail_height] if args.key?(:thumbnail_height) + @thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link) + @thumbnail_width = args[:thumbnail_width] if args.key?(:thumbnail_width) + @width = args[:width] if args.key?(:width) end end @@ -612,9 +612,9 @@ module Google # Update properties of this object def update!(**args) - @display_name = args[:display_name] unless args[:display_name].nil? - @label_with_op = args[:label_with_op] unless args[:label_with_op].nil? - @name = args[:name] unless args[:name].nil? + @display_name = args[:display_name] if args.key?(:display_name) + @label_with_op = args[:label_with_op] if args.key?(:label_with_op) + @name = args[:name] if args.key?(:name) end end end @@ -669,14 +669,14 @@ module Google # Update properties of this object def update!(**args) - @context = args[:context] unless args[:context].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @promotions = args[:promotions] unless args[:promotions].nil? - @queries = args[:queries] unless args[:queries].nil? - @search_information = args[:search_information] unless args[:search_information].nil? - @spelling = args[:spelling] unless args[:spelling].nil? - @url = args[:url] unless args[:url].nil? + @context = args[:context] if args.key?(:context) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @promotions = args[:promotions] if args.key?(:promotions) + @queries = args[:queries] if args.key?(:queries) + @search_information = args[:search_information] if args.key?(:search_information) + @spelling = args[:spelling] if args.key?(:spelling) + @url = args[:url] if args.key?(:url) end # @@ -709,10 +709,10 @@ module Google # Update properties of this object def update!(**args) - @formatted_search_time = args[:formatted_search_time] unless args[:formatted_search_time].nil? - @formatted_total_results = args[:formatted_total_results] unless args[:formatted_total_results].nil? - @search_time = args[:search_time] unless args[:search_time].nil? - @total_results = args[:total_results] unless args[:total_results].nil? + @formatted_search_time = args[:formatted_search_time] if args.key?(:formatted_search_time) + @formatted_total_results = args[:formatted_total_results] if args.key?(:formatted_total_results) + @search_time = args[:search_time] if args.key?(:search_time) + @total_results = args[:total_results] if args.key?(:total_results) end end @@ -736,8 +736,8 @@ module Google # Update properties of this object def update!(**args) - @corrected_query = args[:corrected_query] unless args[:corrected_query].nil? - @html_corrected_query = args[:html_corrected_query] unless args[:html_corrected_query].nil? + @corrected_query = args[:corrected_query] if args.key?(:corrected_query) + @html_corrected_query = args[:html_corrected_query] if args.key?(:html_corrected_query) end end @@ -761,8 +761,8 @@ module Google # Update properties of this object def update!(**args) - @template = args[:template] unless args[:template].nil? - @type = args[:type] unless args[:type].nil? + @template = args[:template] if args.key?(:template) + @type = args[:type] if args.key?(:type) end end end diff --git a/generated/google/apis/dataproc_v1.rb b/generated/google/apis/dataproc_v1.rb new file mode 100644 index 000000000..39787da04 --- /dev/null +++ b/generated/google/apis/dataproc_v1.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/dataproc_v1/service.rb' +require 'google/apis/dataproc_v1/classes.rb' +require 'google/apis/dataproc_v1/representations.rb' + +module Google + module Apis + # Google Cloud Dataproc API + # + # An API for managing Hadoop-based clusters and jobs on Google Cloud Platform. + # + # @see https://cloud.google.com/dataproc/ + module DataprocV1 + VERSION = 'V1' + REVISION = '20151209' + + # View and manage your data across Google Cloud Platform services + AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' + + # 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/dataproc_v1/classes.rb b/generated/google/apis/dataproc_v1/classes.rb new file mode 100644 index 000000000..1f2dfcd9b --- /dev/null +++ b/generated/google/apis/dataproc_v1/classes.rb @@ -0,0 +1,175 @@ +# 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 DataprocV1 + + # 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] if args.key?(:resource_name) + end + end + + # The location where output from diagnostic command can be found. + class DiagnoseClusterOutputLocation + include Google::Apis::Core::Hashable + + # [Output-only] The Google Cloud Storage URI of the diagnostic output. This will + # be a plain text file with summary of collected diagnostics. + # Corresponds to the JSON property `outputUri` + # @return [String] + attr_accessor :output_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @output_uri = args[:output_uri] if args.key?(:output_uri) + end + end + + # Metadata describing the operation. + class OperationMetadata + include Google::Apis::Core::Hashable + + # A message containing the operation state. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message containing the detailed operation state. + # Corresponds to the JSON property `innerState` + # @return [String] + attr_accessor :inner_state + + # A message containing any operation metadata details. + # Corresponds to the JSON property `details` + # @return [String] + attr_accessor :details + + # The time that the operation was requested. + # Corresponds to the JSON property `insertTime` + # @return [String] + attr_accessor :insert_time + + # The time that the operation was started by the server. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # The time that the operation completed. + # Corresponds to the JSON property `endTime` + # @return [String] + attr_accessor :end_time + + # Name of the cluster for the operation. + # Corresponds to the JSON property `clusterName` + # @return [String] + attr_accessor :cluster_name + + # Cluster UUId for the operation. + # Corresponds to the JSON property `clusterUuid` + # @return [String] + attr_accessor :cluster_uuid + + # The status of the operation. + # Corresponds to the JSON property `status` + # @return [Google::Apis::DataprocV1::OperationStatus] + attr_accessor :status + + # [Output-only] Previous operation status. + # Corresponds to the JSON property `statusHistory` + # @return [Array] + attr_accessor :status_history + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @state = args[:state] if args.key?(:state) + @inner_state = args[:inner_state] if args.key?(:inner_state) + @details = args[:details] if args.key?(:details) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @start_time = args[:start_time] if args.key?(:start_time) + @end_time = args[:end_time] if args.key?(:end_time) + @cluster_name = args[:cluster_name] if args.key?(:cluster_name) + @cluster_uuid = args[:cluster_uuid] if args.key?(:cluster_uuid) + @status = args[:status] if args.key?(:status) + @status_history = args[:status_history] if args.key?(:status_history) + end + end + + # The status of the operation. + class OperationStatus + include Google::Apis::Core::Hashable + + # A message containing the operation state. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + # A message containing the detailed operation state. + # Corresponds to the JSON property `innerState` + # @return [String] + attr_accessor :inner_state + + # A message containing any operation metadata details. + # Corresponds to the JSON property `details` + # @return [String] + attr_accessor :details + + # The time this state was entered. + # Corresponds to the JSON property `stateStartTime` + # @return [String] + attr_accessor :state_start_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @state = args[:state] if args.key?(:state) + @inner_state = args[:inner_state] if args.key?(:inner_state) + @details = args[:details] if args.key?(:details) + @state_start_time = args[:state_start_time] if args.key?(:state_start_time) + end + end + end + end +end diff --git a/generated/google/apis/dataproc_v1/representations.rb b/generated/google/apis/dataproc_v1/representations.rb new file mode 100644 index 000000000..1340010ce --- /dev/null +++ b/generated/google/apis/dataproc_v1/representations.rb @@ -0,0 +1,84 @@ +# 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 DataprocV1 + + class Media + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class DiagnoseClusterOutputLocation + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OperationMetadata + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class OperationStatus + 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 DiagnoseClusterOutputLocation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :output_uri, as: 'outputUri' + end + end + + class OperationMetadata + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :state, as: 'state' + property :inner_state, as: 'innerState' + property :details, as: 'details' + property :insert_time, as: 'insertTime' + property :start_time, as: 'startTime' + property :end_time, as: 'endTime' + property :cluster_name, as: 'clusterName' + property :cluster_uuid, as: 'clusterUuid' + property :status, as: 'status', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation + + collection :status_history, as: 'statusHistory', class: Google::Apis::DataprocV1::OperationStatus, decorator: Google::Apis::DataprocV1::OperationStatus::Representation + + end + end + + class OperationStatus + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :state, as: 'state' + property :inner_state, as: 'innerState' + property :details, as: 'details' + property :state_start_time, as: 'stateStartTime' + end + end + end + end +end diff --git a/generated/google/apis/dataproc_v1/service.rb b/generated/google/apis/dataproc_v1/service.rb new file mode 100644 index 000000000..8e7ed727b --- /dev/null +++ b/generated/google/apis/dataproc_v1/service.rb @@ -0,0 +1,142 @@ +# 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 DataprocV1 + # Google Cloud Dataproc API + # + # An API for managing Hadoop-based clusters and jobs on Google Cloud Platform. + # + # @example + # require 'google/apis/dataproc_v1' + # + # Dataproc = Google::Apis::DataprocV1 # Alias the module + # service = Dataproc::DataprocService.new + # + # @see https://cloud.google.com/dataproc/ + class DataprocService < 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://dataproc.googleapis.com/', '') + end + + # Method for media upload. Upload is supported on the URI `/upload/v1/media/`+ + # name``. + # @param [String] resource_name + # Name of the media that is being downloaded. See [][ByteStream.ReadRequest. + # resource_name]. + # @param [Google::Apis::DataprocV1::Media] media_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 [IO, String] upload_source + # IO stream or filename containing content to upload + # @param [String] content_type + # Content type of the uploaded content. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DataprocV1::Media] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::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 upload_medium(resource_name, media_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) + if upload_source.nil? + command = make_simple_command(:post, 'v1/media/{+resourceName}', options) + else + command = make_upload_command(:post, 'v1/media/{+resourceName}', options) + command.upload_source = upload_source + command.upload_content_type = content_type + end + command.request_representation = Google::Apis::DataprocV1::Media::Representation + command.request_object = media_object + command.response_representation = Google::Apis::DataprocV1::Media::Representation + command.response_class = Google::Apis::DataprocV1::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 + + # 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::DataprocV1::Media] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DataprocV1::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::DataprocV1::Media::Representation + command.response_class = Google::Apis::DataprocV1::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 + + 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/datastore_v1beta2/classes.rb b/generated/google/apis/datastore_v1beta2/classes.rb index 42e4dc805..cd73671dd 100644 --- a/generated/google/apis/datastore_v1beta2/classes.rb +++ b/generated/google/apis/datastore_v1beta2/classes.rb @@ -38,7 +38,7 @@ module Google # Update properties of this object def update!(**args) - @keys = args[:keys] unless args[:keys].nil? + @keys = args[:keys] if args.key?(:keys) end end @@ -63,8 +63,8 @@ module Google # Update properties of this object def update!(**args) - @header = args[:header] unless args[:header].nil? - @keys = args[:keys] unless args[:keys].nil? + @header = args[:header] if args.key?(:header) + @keys = args[:keys] if args.key?(:keys) end end @@ -88,7 +88,7 @@ module Google # Update properties of this object def update!(**args) - @isolation_level = args[:isolation_level] unless args[:isolation_level].nil? + @isolation_level = args[:isolation_level] if args.key?(:isolation_level) end end @@ -112,8 +112,8 @@ module Google # Update properties of this object def update!(**args) - @header = args[:header] unless args[:header].nil? - @transaction = args[:transaction] unless args[:transaction].nil? + @header = args[:header] if args.key?(:header) + @transaction = args[:transaction] if args.key?(:transaction) end end @@ -149,10 +149,10 @@ module Google # Update properties of this object def update!(**args) - @ignore_read_only = args[:ignore_read_only] unless args[:ignore_read_only].nil? - @mode = args[:mode] unless args[:mode].nil? - @mutation = args[:mutation] unless args[:mutation].nil? - @transaction = args[:transaction] unless args[:transaction].nil? + @ignore_read_only = args[:ignore_read_only] if args.key?(:ignore_read_only) + @mode = args[:mode] if args.key?(:mode) + @mutation = args[:mutation] if args.key?(:mutation) + @transaction = args[:transaction] if args.key?(:transaction) end end @@ -176,8 +176,8 @@ module Google # Update properties of this object def update!(**args) - @header = args[:header] unless args[:header].nil? - @mutation_result = args[:mutation_result] unless args[:mutation_result].nil? + @header = args[:header] if args.key?(:header) + @mutation_result = args[:mutation_result] if args.key?(:mutation_result) end end @@ -201,8 +201,8 @@ module Google # Update properties of this object def update!(**args) - @filters = args[:filters] unless args[:filters].nil? - @operator = args[:operator] unless args[:operator].nil? + @filters = args[:filters] if args.key?(:filters) + @operator = args[:operator] if args.key?(:operator) end end @@ -226,8 +226,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @properties = args[:properties] unless args[:properties].nil? + @key = args[:key] if args.key?(:key) + @properties = args[:properties] if args.key?(:properties) end end @@ -246,7 +246,7 @@ module Google # Update properties of this object def update!(**args) - @entity = args[:entity] unless args[:entity].nil? + @entity = args[:entity] if args.key?(:entity) end end @@ -270,8 +270,8 @@ module Google # Update properties of this object def update!(**args) - @composite_filter = args[:composite_filter] unless args[:composite_filter].nil? - @property_filter = args[:property_filter] unless args[:property_filter].nil? + @composite_filter = args[:composite_filter] if args.key?(:composite_filter) + @property_filter = args[:property_filter] if args.key?(:property_filter) end end @@ -312,10 +312,10 @@ module Google # Update properties of this object def update!(**args) - @allow_literal = args[:allow_literal] unless args[:allow_literal].nil? - @name_args = args[:name_args] unless args[:name_args].nil? - @number_args = args[:number_args] unless args[:number_args].nil? - @query_string = args[:query_string] unless args[:query_string].nil? + @allow_literal = args[:allow_literal] if args.key?(:allow_literal) + @name_args = args[:name_args] if args.key?(:name_args) + @number_args = args[:number_args] if args.key?(:number_args) + @query_string = args[:query_string] if args.key?(:query_string) end end @@ -346,9 +346,9 @@ module Google # Update properties of this object def update!(**args) - @cursor = args[:cursor] unless args[:cursor].nil? - @name = args[:name] unless args[:name].nil? - @value = args[:value] unless args[:value].nil? + @cursor = args[:cursor] if args.key?(:cursor) + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) end end @@ -383,8 +383,8 @@ module Google # Update properties of this object def update!(**args) - @partition_id = args[:partition_id] unless args[:partition_id].nil? - @path = args[:path] unless args[:path].nil? + @partition_id = args[:partition_id] if args.key?(:partition_id) + @path = args[:path] if args.key?(:path) end end @@ -418,9 +418,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -439,7 +439,7 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? + @name = args[:name] if args.key?(:name) end end @@ -463,8 +463,8 @@ module Google # Update properties of this object def update!(**args) - @keys = args[:keys] unless args[:keys].nil? - @read_options = args[:read_options] unless args[:read_options].nil? + @keys = args[:keys] if args.key?(:keys) + @read_options = args[:read_options] if args.key?(:read_options) end end @@ -498,10 +498,10 @@ module Google # Update properties of this object def update!(**args) - @deferred = args[:deferred] unless args[:deferred].nil? - @found = args[:found] unless args[:found].nil? - @header = args[:header] unless args[:header].nil? - @missing = args[:missing] unless args[:missing].nil? + @deferred = args[:deferred] if args.key?(:deferred) + @found = args[:found] if args.key?(:found) + @header = args[:header] if args.key?(:header) + @missing = args[:missing] if args.key?(:missing) end end @@ -551,12 +551,12 @@ module Google # Update properties of this object def update!(**args) - @delete = args[:delete] unless args[:delete].nil? - @force = args[:force] unless args[:force].nil? - @insert = args[:insert] unless args[:insert].nil? - @insert_auto_id = args[:insert_auto_id] unless args[:insert_auto_id].nil? - @update = args[:update] unless args[:update].nil? - @upsert = args[:upsert] unless args[:upsert].nil? + @delete = args[:delete] if args.key?(:delete) + @force = args[:force] if args.key?(:force) + @insert = args[:insert] if args.key?(:insert) + @insert_auto_id = args[:insert_auto_id] if args.key?(:insert_auto_id) + @update = args[:update] if args.key?(:update) + @upsert = args[:upsert] if args.key?(:upsert) end end @@ -581,8 +581,8 @@ module Google # Update properties of this object def update!(**args) - @index_updates = args[:index_updates] unless args[:index_updates].nil? - @insert_auto_id_keys = args[:insert_auto_id_keys] unless args[:insert_auto_id_keys].nil? + @index_updates = args[:index_updates] if args.key?(:index_updates) + @insert_auto_id_keys = args[:insert_auto_id_keys] if args.key?(:insert_auto_id_keys) end end @@ -608,8 +608,8 @@ module Google # Update properties of this object def update!(**args) - @dataset_id = args[:dataset_id] unless args[:dataset_id].nil? - @namespace = args[:namespace] unless args[:namespace].nil? + @dataset_id = args[:dataset_id] if args.key?(:dataset_id) + @namespace = args[:namespace] if args.key?(:namespace) end end @@ -694,18 +694,18 @@ module Google # Update properties of this object def update!(**args) - @blob_key_value = args[:blob_key_value] unless args[:blob_key_value].nil? - @blob_value = args[:blob_value] unless args[:blob_value].nil? - @boolean_value = args[:boolean_value] unless args[:boolean_value].nil? - @date_time_value = args[:date_time_value] unless args[:date_time_value].nil? - @double_value = args[:double_value] unless args[:double_value].nil? - @entity_value = args[:entity_value] unless args[:entity_value].nil? - @indexed = args[:indexed] unless args[:indexed].nil? - @integer_value = args[:integer_value] unless args[:integer_value].nil? - @key_value = args[:key_value] unless args[:key_value].nil? - @list_value = args[:list_value] unless args[:list_value].nil? - @meaning = args[:meaning] unless args[:meaning].nil? - @string_value = args[:string_value] unless args[:string_value].nil? + @blob_key_value = args[:blob_key_value] if args.key?(:blob_key_value) + @blob_value = args[:blob_value] if args.key?(:blob_value) + @boolean_value = args[:boolean_value] if args.key?(:boolean_value) + @date_time_value = args[:date_time_value] if args.key?(:date_time_value) + @double_value = args[:double_value] if args.key?(:double_value) + @entity_value = args[:entity_value] if args.key?(:entity_value) + @indexed = args[:indexed] if args.key?(:indexed) + @integer_value = args[:integer_value] if args.key?(:integer_value) + @key_value = args[:key_value] if args.key?(:key_value) + @list_value = args[:list_value] if args.key?(:list_value) + @meaning = args[:meaning] if args.key?(:meaning) + @string_value = args[:string_value] if args.key?(:string_value) end end @@ -732,8 +732,8 @@ module Google # Update properties of this object def update!(**args) - @aggregation_function = args[:aggregation_function] unless args[:aggregation_function].nil? - @property = args[:property] unless args[:property].nil? + @aggregation_function = args[:aggregation_function] if args.key?(:aggregation_function) + @property = args[:property] if args.key?(:property) end end @@ -764,9 +764,9 @@ module Google # Update properties of this object def update!(**args) - @operator = args[:operator] unless args[:operator].nil? - @property = args[:property] unless args[:property].nil? - @value = args[:value] unless args[:value].nil? + @operator = args[:operator] if args.key?(:operator) + @property = args[:property] if args.key?(:property) + @value = args[:value] if args.key?(:value) end end @@ -791,8 +791,8 @@ module Google # Update properties of this object def update!(**args) - @direction = args[:direction] unless args[:direction].nil? - @property = args[:property] unless args[:property].nil? + @direction = args[:direction] if args.key?(:direction) + @property = args[:property] if args.key?(:property) end end @@ -811,7 +811,7 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? + @name = args[:name] if args.key?(:name) end end @@ -875,15 +875,15 @@ module Google # Update properties of this object def update!(**args) - @end_cursor = args[:end_cursor] unless args[:end_cursor].nil? - @filter = args[:filter] unless args[:filter].nil? - @group_by = args[:group_by] unless args[:group_by].nil? - @kinds = args[:kinds] unless args[:kinds].nil? - @limit = args[:limit] unless args[:limit].nil? - @offset = args[:offset] unless args[:offset].nil? - @order = args[:order] unless args[:order].nil? - @projection = args[:projection] unless args[:projection].nil? - @start_cursor = args[:start_cursor] unless args[:start_cursor].nil? + @end_cursor = args[:end_cursor] if args.key?(:end_cursor) + @filter = args[:filter] if args.key?(:filter) + @group_by = args[:group_by] if args.key?(:group_by) + @kinds = args[:kinds] if args.key?(:kinds) + @limit = args[:limit] if args.key?(:limit) + @offset = args[:offset] if args.key?(:offset) + @order = args[:order] if args.key?(:order) + @projection = args[:projection] if args.key?(:projection) + @start_cursor = args[:start_cursor] if args.key?(:start_cursor) end end @@ -927,11 +927,11 @@ module Google # Update properties of this object def update!(**args) - @end_cursor = args[:end_cursor] unless args[:end_cursor].nil? - @entity_result_type = args[:entity_result_type] unless args[:entity_result_type].nil? - @entity_results = args[:entity_results] unless args[:entity_results].nil? - @more_results = args[:more_results] unless args[:more_results].nil? - @skipped_results = args[:skipped_results] unless args[:skipped_results].nil? + @end_cursor = args[:end_cursor] if args.key?(:end_cursor) + @entity_result_type = args[:entity_result_type] if args.key?(:entity_result_type) + @entity_results = args[:entity_results] if args.key?(:entity_results) + @more_results = args[:more_results] if args.key?(:more_results) + @skipped_results = args[:skipped_results] if args.key?(:skipped_results) end end @@ -958,8 +958,8 @@ module Google # Update properties of this object def update!(**args) - @read_consistency = args[:read_consistency] unless args[:read_consistency].nil? - @transaction = args[:transaction] unless args[:transaction].nil? + @read_consistency = args[:read_consistency] if args.key?(:read_consistency) + @transaction = args[:transaction] if args.key?(:transaction) end end @@ -979,7 +979,7 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? + @kind = args[:kind] if args.key?(:kind) end end @@ -998,7 +998,7 @@ module Google # Update properties of this object def update!(**args) - @transaction = args[:transaction] unless args[:transaction].nil? + @transaction = args[:transaction] if args.key?(:transaction) end end @@ -1017,7 +1017,7 @@ module Google # Update properties of this object def update!(**args) - @header = args[:header] unless args[:header].nil? + @header = args[:header] if args.key?(:header) end end @@ -1053,10 +1053,10 @@ module Google # Update properties of this object def update!(**args) - @gql_query = args[:gql_query] unless args[:gql_query].nil? - @partition_id = args[:partition_id] unless args[:partition_id].nil? - @query = args[:query] unless args[:query].nil? - @read_options = args[:read_options] unless args[:read_options].nil? + @gql_query = args[:gql_query] if args.key?(:gql_query) + @partition_id = args[:partition_id] if args.key?(:partition_id) + @query = args[:query] if args.key?(:query) + @read_options = args[:read_options] if args.key?(:read_options) end end @@ -1080,8 +1080,8 @@ module Google # Update properties of this object def update!(**args) - @batch = args[:batch] unless args[:batch].nil? - @header = args[:header] unless args[:header].nil? + @batch = args[:batch] if args.key?(:batch) + @header = args[:header] if args.key?(:header) end end @@ -1167,18 +1167,18 @@ module Google # Update properties of this object def update!(**args) - @blob_key_value = args[:blob_key_value] unless args[:blob_key_value].nil? - @blob_value = args[:blob_value] unless args[:blob_value].nil? - @boolean_value = args[:boolean_value] unless args[:boolean_value].nil? - @date_time_value = args[:date_time_value] unless args[:date_time_value].nil? - @double_value = args[:double_value] unless args[:double_value].nil? - @entity_value = args[:entity_value] unless args[:entity_value].nil? - @indexed = args[:indexed] unless args[:indexed].nil? - @integer_value = args[:integer_value] unless args[:integer_value].nil? - @key_value = args[:key_value] unless args[:key_value].nil? - @list_value = args[:list_value] unless args[:list_value].nil? - @meaning = args[:meaning] unless args[:meaning].nil? - @string_value = args[:string_value] unless args[:string_value].nil? + @blob_key_value = args[:blob_key_value] if args.key?(:blob_key_value) + @blob_value = args[:blob_value] if args.key?(:blob_value) + @boolean_value = args[:boolean_value] if args.key?(:boolean_value) + @date_time_value = args[:date_time_value] if args.key?(:date_time_value) + @double_value = args[:double_value] if args.key?(:double_value) + @entity_value = args[:entity_value] if args.key?(:entity_value) + @indexed = args[:indexed] if args.key?(:indexed) + @integer_value = args[:integer_value] if args.key?(:integer_value) + @key_value = args[:key_value] if args.key?(:key_value) + @list_value = args[:list_value] if args.key?(:list_value) + @meaning = args[:meaning] if args.key?(:meaning) + @string_value = args[:string_value] if args.key?(:string_value) end end end diff --git a/generated/google/apis/deploymentmanager_v2.rb b/generated/google/apis/deploymentmanager_v2.rb index dfad96c27..0f12dd84f 100644 --- a/generated/google/apis/deploymentmanager_v2.rb +++ b/generated/google/apis/deploymentmanager_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/deployment-manager/ module DeploymentmanagerV2 VERSION = 'V2' - REVISION = '20160104' + REVISION = '20160125' # 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/deploymentmanager_v2/classes.rb b/generated/google/apis/deploymentmanager_v2/classes.rb index 4b8970c99..faf521824 100644 --- a/generated/google/apis/deploymentmanager_v2/classes.rb +++ b/generated/google/apis/deploymentmanager_v2/classes.rb @@ -37,7 +37,7 @@ module Google # Update properties of this object def update!(**args) - @content = args[:content] unless args[:content].nil? + @content = args[:content] if args.key?(:content) end end @@ -110,15 +110,15 @@ module Google # 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? + @description = args[:description] if args.key?(:description) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @id = args[:id] if args.key?(:id) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @manifest = args[:manifest] if args.key?(:manifest) + @name = args[:name] if args.key?(:name) + @operation = args[:operation] if args.key?(:operation) + @target = args[:target] if args.key?(:target) + @update = args[:update] if args.key?(:update) end end @@ -138,7 +138,7 @@ module Google # Update properties of this object def update!(**args) - @manifest = args[:manifest] unless args[:manifest].nil? + @manifest = args[:manifest] if args.key?(:manifest) end end @@ -154,7 +154,7 @@ module Google # 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. + # perform a get() request on the deployment. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint @@ -165,7 +165,7 @@ module Google # Update properties of this object def update!(**args) - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) end end @@ -190,8 +190,8 @@ module Google # 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? + @deployments = args[:deployments] if args.key?(:deployments) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -207,7 +207,7 @@ module Google # 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. + # perform a get() request on the deployment. # Corresponds to the JSON property `fingerprint` # @return [String] attr_accessor :fingerprint @@ -218,7 +218,7 @@ module Google # Update properties of this object def update!(**args) - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) end end @@ -242,8 +242,8 @@ module Google # Update properties of this object def update!(**args) - @content = args[:content] unless args[:content].nil? - @name = args[:name] unless args[:name].nil? + @content = args[:content] if args.key?(:content) + @name = args[:name] if args.key?(:name) end end @@ -298,14 +298,14 @@ module Google # 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? + @config = args[:config] if args.key?(:config) + @expanded_config = args[:expanded_config] if args.key?(:expanded_config) + @id = args[:id] if args.key?(:id) + @imports = args[:imports] if args.key?(:imports) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @layout = args[:layout] if args.key?(:layout) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -330,8 +330,8 @@ module Google # 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? + @manifests = args[:manifests] if args.key?(:manifests) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -339,7 +339,7 @@ module Google class Operation include Google::Apis::Core::Hashable - # [Output Only] A unique client ID generated by the server. + # [Output Only] Reserved for future use. # Corresponds to the JSON property `clientOperationId` # @return [String] attr_accessor :client_operation_id @@ -403,7 +403,8 @@ module Google # @return [String] attr_accessor :name - # [Output Only] The type of operation, which can be insert, update, or delete. + # [Output Only] The type of operation, such as insert, update, or delete, and so + # on. # Corresponds to the JSON property `operationType` # @return [String] attr_accessor :operation_type @@ -416,8 +417,8 @@ module Google # @return [Fixnum] attr_accessor :progress - # [Output Only] URL of the region where the operation resides. Only available - # when performing regional operations. + # [Output Only] The URL of the region where the operation resides. Only + # available when performing regional operations. # Corresponds to the JSON property `region` # @return [String] attr_accessor :region @@ -451,7 +452,7 @@ module Google # @return [String] attr_accessor :target_id - # [Output Only] The URL of the resource that the operation is modifying. + # [Output Only] The URL of the resource that the operation modifies. # Corresponds to the JSON property `targetLink` # @return [String] attr_accessor :target_link @@ -467,8 +468,8 @@ module Google # @return [Array] attr_accessor :warnings - # [Output Only] URL of the zone where the operation resides. Only available when - # performing per-zone operations. + # [Output Only] The URL of the zone where the operation resides. Only available + # when performing per-zone operations. # Corresponds to the JSON property `zone` # @return [String] attr_accessor :zone @@ -479,29 +480,29 @@ module Google # 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? - @description = args[:description] unless args[:description].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? + @client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @end_time = args[:end_time] if args.key?(:end_time) + @error = args[:error] if args.key?(:error) + @http_error_message = args[:http_error_message] if args.key?(:http_error_message) + @http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code) + @id = args[:id] if args.key?(:id) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @progress = args[:progress] if args.key?(:progress) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @start_time = args[:start_time] if args.key?(:start_time) + @status = args[:status] if args.key?(:status) + @status_message = args[:status_message] if args.key?(:status_message) + @target_id = args[:target_id] if args.key?(:target_id) + @target_link = args[:target_link] if args.key?(:target_link) + @user = args[:user] if args.key?(:user) + @warnings = args[:warnings] if args.key?(:warnings) + @zone = args[:zone] if args.key?(:zone) end # [Output Only] If errors are generated during processing of the operation, this @@ -520,7 +521,7 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? + @errors = args[:errors] if args.key?(:errors) end # @@ -549,9 +550,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @location = args[:location] if args.key?(:location) + @message = args[:message] if args.key?(:message) end end end @@ -583,9 +584,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -614,8 +615,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -642,8 +643,8 @@ module Google # 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? + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @operations = args[:operations] if args.key?(:operations) end end @@ -718,17 +719,17 @@ module Google # 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? + @final_properties = args[:final_properties] if args.key?(:final_properties) + @id = args[:id] if args.key?(:id) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @manifest = args[:manifest] if args.key?(:manifest) + @name = args[:name] if args.key?(:name) + @properties = args[:properties] if args.key?(:properties) + @type = args[:type] if args.key?(:type) + @update = args[:update] if args.key?(:update) + @update_time = args[:update_time] if args.key?(:update_time) + @url = args[:url] if args.key?(:url) + @warnings = args[:warnings] if args.key?(:warnings) end # @@ -758,9 +759,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -789,8 +790,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -846,13 +847,13 @@ module Google # 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? + @error = args[:error] if args.key?(:error) + @final_properties = args[:final_properties] if args.key?(:final_properties) + @intent = args[:intent] if args.key?(:intent) + @manifest = args[:manifest] if args.key?(:manifest) + @properties = args[:properties] if args.key?(:properties) + @state = args[:state] if args.key?(:state) + @warnings = args[:warnings] if args.key?(:warnings) end # [Output Only] If errors are generated during update of the resource, this @@ -871,7 +872,7 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? + @errors = args[:errors] if args.key?(:errors) end # @@ -900,9 +901,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @location = args[:location] if args.key?(:location) + @message = args[:message] if args.key?(:message) end end end @@ -934,9 +935,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -965,8 +966,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -993,8 +994,8 @@ module Google # 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? + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) end end @@ -1020,8 +1021,8 @@ module Google # Update properties of this object def update!(**args) - @config = args[:config] unless args[:config].nil? - @imports = args[:imports] unless args[:imports].nil? + @config = args[:config] if args.key?(:config) + @imports = args[:imports] if args.key?(:imports) end end @@ -1055,10 +1056,10 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -1082,8 +1083,8 @@ module Google # 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? + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @types = args[:types] if args.key?(:types) end end end diff --git a/generated/google/apis/deploymentmanager_v2/service.rb b/generated/google/apis/deploymentmanager_v2/service.rb index 195feebe1..69dd3c2c5 100644 --- a/generated/google/apis/deploymentmanager_v2/service.rb +++ b/generated/google/apis/deploymentmanager_v2/service.rb @@ -232,7 +232,8 @@ module Google # filtering by (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. + # For example, to filter for instances whose name is not equal to example- + # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that # have set the scheduling.automaticRestart field to true. In particular, use @@ -244,10 +245,10 @@ module Google # treated as AND expressions meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results - # The maximum number of results per page that Compute Engine should return. If - # the number of available results is larger than maxResults, Compute Engine - # returns a nextPageToken that can be used to get the next page of results in - # subsequent list requests. + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. # @param [String] page_token # Specifies a page token to use. Set pageToken to the nextPageToken returned by # a previous list request to get the next page of results. @@ -300,12 +301,12 @@ module Google # @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 + # allows you to preview what your deployment will look 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. @@ -401,12 +402,12 @@ module Google # @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 + # allows you to preview what your deployment will look 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. @@ -503,7 +504,8 @@ module Google # filtering by (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. + # For example, to filter for instances whose name is not equal to example- + # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that # have set the scheduling.automaticRestart field to true. In particular, use @@ -515,10 +517,10 @@ module Google # treated as AND expressions meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results - # The maximum number of results per page that Compute Engine should return. If - # the number of available results is larger than maxResults, Compute Engine - # returns a nextPageToken that can be used to get the next page of results in - # subsequent list requests. + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. # @param [String] page_token # Specifies a page token to use. Set pageToken to the nextPageToken returned by # a previous list request to get the next page of results. @@ -610,7 +612,8 @@ module Google # filtering by (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. + # For example, to filter for instances whose name is not equal to example- + # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that # have set the scheduling.automaticRestart field to true. In particular, use @@ -622,10 +625,10 @@ module Google # treated as AND expressions meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results - # The maximum number of results per page that Compute Engine should return. If - # the number of available results is larger than maxResults, Compute Engine - # returns a nextPageToken that can be used to get the next page of results in - # subsequent list requests. + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. # @param [String] page_token # Specifies a page token to use. Set pageToken to the nextPageToken returned by # a previous list request to get the next page of results. @@ -721,7 +724,8 @@ module Google # filtering by (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. + # For example, to filter for instances whose name is not equal to example- + # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that # have set the scheduling.automaticRestart field to true. In particular, use @@ -733,10 +737,10 @@ module Google # treated as AND expressions meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results - # The maximum number of results per page that Compute Engine should return. If - # the number of available results is larger than maxResults, Compute Engine - # returns a nextPageToken that can be used to get the next page of results in - # subsequent list requests. + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. # @param [String] page_token # Specifies a page token to use. Set pageToken to the nextPageToken returned by # a previous list request to get the next page of results. @@ -790,7 +794,8 @@ module Google # filtering by (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. + # For example, to filter for instances whose name is not equal to example- + # instance, you would use filter=name ne example-instance. # Compute Engine Beta API Only: If you use filtering in the Beta API, you can # also filter on nested fields. For example, you could filter on instances that # have set the scheduling.automaticRestart field to true. In particular, use @@ -802,10 +807,10 @@ module Google # treated as AND expressions meaning that resources must match all expressions # to pass the filters. # @param [Fixnum] max_results - # The maximum number of results per page that Compute Engine should return. If - # the number of available results is larger than maxResults, Compute Engine - # returns a nextPageToken that can be used to get the next page of results in - # subsequent list requests. + # The maximum number of results per page that should be returned. If the number + # of available results is larger than maxResults, Compute Engine returns a + # nextPageToken that can be used to get the next page of results in subsequent + # list requests. # @param [String] page_token # Specifies a page token to use. Set pageToken to the nextPageToken returned by # a previous list request to get the next page of results. diff --git a/generated/google/apis/dfareporting_v2_3/classes.rb b/generated/google/apis/dfareporting_v2_3/classes.rb index e81d72cce..a29d69ea6 100644 --- a/generated/google/apis/dfareporting_v2_3/classes.rb +++ b/generated/google/apis/dfareporting_v2_3/classes.rb @@ -194,25 +194,25 @@ module Google # Update properties of this object def update!(**args) - @account_permission_ids = args[:account_permission_ids] unless args[:account_permission_ids].nil? - @account_profile = args[:account_profile] unless args[:account_profile].nil? - @active = args[:active] unless args[:active].nil? - @active_ads_limit_tier = args[:active_ads_limit_tier] unless args[:active_ads_limit_tier].nil? - @active_view_opt_out = args[:active_view_opt_out] unless args[:active_view_opt_out].nil? - @available_permission_ids = args[:available_permission_ids] unless args[:available_permission_ids].nil? - @comscore_vce_enabled = args[:comscore_vce_enabled] unless args[:comscore_vce_enabled].nil? - @country_id = args[:country_id] unless args[:country_id].nil? - @currency_id = args[:currency_id] unless args[:currency_id].nil? - @default_creative_size_id = args[:default_creative_size_id] unless args[:default_creative_size_id].nil? - @description = args[:description] unless args[:description].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @locale = args[:locale] unless args[:locale].nil? - @maximum_image_size = args[:maximum_image_size] unless args[:maximum_image_size].nil? - @name = args[:name] unless args[:name].nil? - @nielsen_ocr_enabled = args[:nielsen_ocr_enabled] unless args[:nielsen_ocr_enabled].nil? - @reports_configuration = args[:reports_configuration] unless args[:reports_configuration].nil? - @teaser_size_limit = args[:teaser_size_limit] unless args[:teaser_size_limit].nil? + @account_permission_ids = args[:account_permission_ids] if args.key?(:account_permission_ids) + @account_profile = args[:account_profile] if args.key?(:account_profile) + @active = args[:active] if args.key?(:active) + @active_ads_limit_tier = args[:active_ads_limit_tier] if args.key?(:active_ads_limit_tier) + @active_view_opt_out = args[:active_view_opt_out] if args.key?(:active_view_opt_out) + @available_permission_ids = args[:available_permission_ids] if args.key?(:available_permission_ids) + @comscore_vce_enabled = args[:comscore_vce_enabled] if args.key?(:comscore_vce_enabled) + @country_id = args[:country_id] if args.key?(:country_id) + @currency_id = args[:currency_id] if args.key?(:currency_id) + @default_creative_size_id = args[:default_creative_size_id] if args.key?(:default_creative_size_id) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @locale = args[:locale] if args.key?(:locale) + @maximum_image_size = args[:maximum_image_size] if args.key?(:maximum_image_size) + @name = args[:name] if args.key?(:name) + @nielsen_ocr_enabled = args[:nielsen_ocr_enabled] if args.key?(:nielsen_ocr_enabled) + @reports_configuration = args[:reports_configuration] if args.key?(:reports_configuration) + @teaser_size_limit = args[:teaser_size_limit] if args.key?(:teaser_size_limit) end end @@ -252,11 +252,11 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @active_ads = args[:active_ads] unless args[:active_ads].nil? - @active_ads_limit_tier = args[:active_ads_limit_tier] unless args[:active_ads_limit_tier].nil? - @available_ads = args[:available_ads] unless args[:available_ads].nil? - @kind = args[:kind] unless args[:kind].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @active_ads = args[:active_ads] if args.key?(:active_ads) + @active_ads_limit_tier = args[:active_ads_limit_tier] if args.key?(:active_ads_limit_tier) + @available_ads = args[:available_ads] if args.key?(:available_ads) + @kind = args[:kind] if args.key?(:kind) end end @@ -306,12 +306,12 @@ module Google # Update properties of this object def update!(**args) - @account_profiles = args[:account_profiles] unless args[:account_profiles].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @level = args[:level] unless args[:level].nil? - @name = args[:name] unless args[:name].nil? - @permission_group_id = args[:permission_group_id] unless args[:permission_group_id].nil? + @account_profiles = args[:account_profiles] if args.key?(:account_profiles) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @level = args[:level] if args.key?(:level) + @name = args[:name] if args.key?(:name) + @permission_group_id = args[:permission_group_id] if args.key?(:permission_group_id) end end @@ -342,9 +342,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -369,8 +369,8 @@ module Google # Update properties of this object def update!(**args) - @account_permission_groups = args[:account_permission_groups] unless args[:account_permission_groups].nil? - @kind = args[:kind] unless args[:kind].nil? + @account_permission_groups = args[:account_permission_groups] if args.key?(:account_permission_groups) + @kind = args[:kind] if args.key?(:kind) end end @@ -395,8 +395,8 @@ module Google # Update properties of this object def update!(**args) - @account_permissions = args[:account_permissions] unless args[:account_permissions].nil? - @kind = args[:kind] unless args[:kind].nil? + @account_permissions = args[:account_permissions] if args.key?(:account_permissions) + @kind = args[:kind] if args.key?(:kind) end end @@ -518,22 +518,22 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @active = args[:active] unless args[:active].nil? - @advertiser_filter = args[:advertiser_filter] unless args[:advertiser_filter].nil? - @campaign_filter = args[:campaign_filter] unless args[:campaign_filter].nil? - @comments = args[:comments] unless args[:comments].nil? - @email = args[:email] unless args[:email].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @locale = args[:locale] unless args[:locale].nil? - @name = args[:name] unless args[:name].nil? - @site_filter = args[:site_filter] unless args[:site_filter].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? - @trafficker_type = args[:trafficker_type] unless args[:trafficker_type].nil? - @user_access_type = args[:user_access_type] unless args[:user_access_type].nil? - @user_role_filter = args[:user_role_filter] unless args[:user_role_filter].nil? - @user_role_id = args[:user_role_id] unless args[:user_role_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @active = args[:active] if args.key?(:active) + @advertiser_filter = args[:advertiser_filter] if args.key?(:advertiser_filter) + @campaign_filter = args[:campaign_filter] if args.key?(:campaign_filter) + @comments = args[:comments] if args.key?(:comments) + @email = args[:email] if args.key?(:email) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @locale = args[:locale] if args.key?(:locale) + @name = args[:name] if args.key?(:name) + @site_filter = args[:site_filter] if args.key?(:site_filter) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @trafficker_type = args[:trafficker_type] if args.key?(:trafficker_type) + @user_access_type = args[:user_access_type] if args.key?(:user_access_type) + @user_role_filter = args[:user_role_filter] if args.key?(:user_role_filter) + @user_role_id = args[:user_role_id] if args.key?(:user_role_id) end end @@ -563,9 +563,9 @@ module Google # Update properties of this object def update!(**args) - @account_user_profiles = args[:account_user_profiles] unless args[:account_user_profiles].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @account_user_profiles = args[:account_user_profiles] if args.key?(:account_user_profiles) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -595,9 +595,9 @@ module Google # Update properties of this object def update!(**args) - @accounts = args[:accounts] unless args[:accounts].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @accounts = args[:accounts] if args.key?(:accounts) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -627,9 +627,9 @@ module Google # Update properties of this object def update!(**args) - @filters = args[:filters] unless args[:filters].nil? - @kind = args[:kind] unless args[:kind].nil? - @metric_names = args[:metric_names] unless args[:metric_names].nil? + @filters = args[:filters] if args.key?(:filters) + @kind = args[:kind] if args.key?(:kind) + @metric_names = args[:metric_names] if args.key?(:metric_names) end end @@ -851,43 +851,43 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @active = args[:active] unless args[:active].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] unless args[:advertiser_id_dimension_value].nil? - @archived = args[:archived] unless args[:archived].nil? - @audience_segment_id = args[:audience_segment_id] unless args[:audience_segment_id].nil? - @campaign_id = args[:campaign_id] unless args[:campaign_id].nil? - @campaign_id_dimension_value = args[:campaign_id_dimension_value] unless args[:campaign_id_dimension_value].nil? - @click_through_url = args[:click_through_url] unless args[:click_through_url].nil? - @click_through_url_suffix_properties = args[:click_through_url_suffix_properties] unless args[:click_through_url_suffix_properties].nil? - @comments = args[:comments] unless args[:comments].nil? - @compatibility = args[:compatibility] unless args[:compatibility].nil? - @create_info = args[:create_info] unless args[:create_info].nil? - @creative_group_assignments = args[:creative_group_assignments] unless args[:creative_group_assignments].nil? - @creative_rotation = args[:creative_rotation] unless args[:creative_rotation].nil? - @day_part_targeting = args[:day_part_targeting] unless args[:day_part_targeting].nil? - @default_click_through_event_tag_properties = args[:default_click_through_event_tag_properties] unless args[:default_click_through_event_tag_properties].nil? - @delivery_schedule = args[:delivery_schedule] unless args[:delivery_schedule].nil? - @dynamic_click_tracker = args[:dynamic_click_tracker] unless args[:dynamic_click_tracker].nil? - @end_time = args[:end_time] unless args[:end_time].nil? - @event_tag_overrides = args[:event_tag_overrides] unless args[:event_tag_overrides].nil? - @geo_targeting = args[:geo_targeting] unless args[:geo_targeting].nil? - @id = args[:id] unless args[:id].nil? - @id_dimension_value = args[:id_dimension_value] unless args[:id_dimension_value].nil? - @key_value_targeting_expression = args[:key_value_targeting_expression] unless args[:key_value_targeting_expression].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_modified_info = args[:last_modified_info] unless args[:last_modified_info].nil? - @name = args[:name] unless args[:name].nil? - @placement_assignments = args[:placement_assignments] unless args[:placement_assignments].nil? - @remarketing_list_expression = args[:remarketing_list_expression] unless args[:remarketing_list_expression].nil? - @size = args[:size] unless args[:size].nil? - @ssl_compliant = args[:ssl_compliant] unless args[:ssl_compliant].nil? - @ssl_required = args[:ssl_required] unless args[:ssl_required].nil? - @start_time = args[:start_time] unless args[:start_time].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? - @technology_targeting = args[:technology_targeting] unless args[:technology_targeting].nil? - @type = args[:type] unless args[:type].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @active = args[:active] if args.key?(:active) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @archived = args[:archived] if args.key?(:archived) + @audience_segment_id = args[:audience_segment_id] if args.key?(:audience_segment_id) + @campaign_id = args[:campaign_id] if args.key?(:campaign_id) + @campaign_id_dimension_value = args[:campaign_id_dimension_value] if args.key?(:campaign_id_dimension_value) + @click_through_url = args[:click_through_url] if args.key?(:click_through_url) + @click_through_url_suffix_properties = args[:click_through_url_suffix_properties] if args.key?(:click_through_url_suffix_properties) + @comments = args[:comments] if args.key?(:comments) + @compatibility = args[:compatibility] if args.key?(:compatibility) + @create_info = args[:create_info] if args.key?(:create_info) + @creative_group_assignments = args[:creative_group_assignments] if args.key?(:creative_group_assignments) + @creative_rotation = args[:creative_rotation] if args.key?(:creative_rotation) + @day_part_targeting = args[:day_part_targeting] if args.key?(:day_part_targeting) + @default_click_through_event_tag_properties = args[:default_click_through_event_tag_properties] if args.key?(:default_click_through_event_tag_properties) + @delivery_schedule = args[:delivery_schedule] if args.key?(:delivery_schedule) + @dynamic_click_tracker = args[:dynamic_click_tracker] if args.key?(:dynamic_click_tracker) + @end_time = args[:end_time] if args.key?(:end_time) + @event_tag_overrides = args[:event_tag_overrides] if args.key?(:event_tag_overrides) + @geo_targeting = args[:geo_targeting] if args.key?(:geo_targeting) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @key_value_targeting_expression = args[:key_value_targeting_expression] if args.key?(:key_value_targeting_expression) + @kind = args[:kind] if args.key?(:kind) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @name = args[:name] if args.key?(:name) + @placement_assignments = args[:placement_assignments] if args.key?(:placement_assignments) + @remarketing_list_expression = args[:remarketing_list_expression] if args.key?(:remarketing_list_expression) + @size = args[:size] if args.key?(:size) + @ssl_compliant = args[:ssl_compliant] if args.key?(:ssl_compliant) + @ssl_required = args[:ssl_required] if args.key?(:ssl_required) + @start_time = args[:start_time] if args.key?(:start_time) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @technology_targeting = args[:technology_targeting] if args.key?(:technology_targeting) + @type = args[:type] if args.key?(:type) end end @@ -945,14 +945,14 @@ module Google # Update properties of this object def update!(**args) - @comment = args[:comment] unless args[:comment].nil? - @compatibility = args[:compatibility] unless args[:compatibility].nil? - @height = args[:height] unless args[:height].nil? - @linked_placement_id = args[:linked_placement_id] unless args[:linked_placement_id].nil? - @name = args[:name] unless args[:name].nil? - @payment_source_type = args[:payment_source_type] unless args[:payment_source_type].nil? - @primary = args[:primary] unless args[:primary].nil? - @width = args[:width] unless args[:width].nil? + @comment = args[:comment] if args.key?(:comment) + @compatibility = args[:compatibility] if args.key?(:compatibility) + @height = args[:height] if args.key?(:height) + @linked_placement_id = args[:linked_placement_id] if args.key?(:linked_placement_id) + @name = args[:name] if args.key?(:name) + @payment_source_type = args[:payment_source_type] if args.key?(:payment_source_type) + @primary = args[:primary] if args.key?(:primary) + @width = args[:width] if args.key?(:width) end end @@ -982,9 +982,9 @@ module Google # Update properties of this object def update!(**args) - @ads = args[:ads] unless args[:ads].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @ads = args[:ads] if args.key?(:ads) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1094,21 +1094,21 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @advertiser_group_id = args[:advertiser_group_id] unless args[:advertiser_group_id].nil? - @click_through_url_suffix = args[:click_through_url_suffix] unless args[:click_through_url_suffix].nil? - @default_click_through_event_tag_id = args[:default_click_through_event_tag_id] unless args[:default_click_through_event_tag_id].nil? - @default_email = args[:default_email] unless args[:default_email].nil? - @floodlight_configuration_id = args[:floodlight_configuration_id] unless args[:floodlight_configuration_id].nil? - @floodlight_configuration_id_dimension_value = args[:floodlight_configuration_id_dimension_value] unless args[:floodlight_configuration_id_dimension_value].nil? - @id = args[:id] unless args[:id].nil? - @id_dimension_value = args[:id_dimension_value] unless args[:id_dimension_value].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @original_floodlight_configuration_id = args[:original_floodlight_configuration_id] unless args[:original_floodlight_configuration_id].nil? - @status = args[:status] unless args[:status].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? - @suspended = args[:suspended] unless args[:suspended].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_group_id = args[:advertiser_group_id] if args.key?(:advertiser_group_id) + @click_through_url_suffix = args[:click_through_url_suffix] if args.key?(:click_through_url_suffix) + @default_click_through_event_tag_id = args[:default_click_through_event_tag_id] if args.key?(:default_click_through_event_tag_id) + @default_email = args[:default_email] if args.key?(:default_email) + @floodlight_configuration_id = args[:floodlight_configuration_id] if args.key?(:floodlight_configuration_id) + @floodlight_configuration_id_dimension_value = args[:floodlight_configuration_id_dimension_value] if args.key?(:floodlight_configuration_id_dimension_value) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @original_floodlight_configuration_id = args[:original_floodlight_configuration_id] if args.key?(:original_floodlight_configuration_id) + @status = args[:status] if args.key?(:status) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @suspended = args[:suspended] if args.key?(:suspended) end end @@ -1146,10 +1146,10 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -1179,9 +1179,9 @@ module Google # Update properties of this object def update!(**args) - @advertiser_groups = args[:advertiser_groups] unless args[:advertiser_groups].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @advertiser_groups = args[:advertiser_groups] if args.key?(:advertiser_groups) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1211,9 +1211,9 @@ module Google # Update properties of this object def update!(**args) - @advertisers = args[:advertisers] unless args[:advertisers].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @advertisers = args[:advertisers] if args.key?(:advertisers) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1245,9 +1245,9 @@ module Google # Update properties of this object def update!(**args) - @allocation = args[:allocation] unless args[:allocation].nil? - @id = args[:id] unless args[:id].nil? - @name = args[:name] unless args[:name].nil? + @allocation = args[:allocation] if args.key?(:allocation) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) end end @@ -1278,9 +1278,9 @@ module Google # Update properties of this object def update!(**args) - @audience_segments = args[:audience_segments] unless args[:audience_segments].nil? - @id = args[:id] unless args[:id].nil? - @name = args[:name] unless args[:name].nil? + @audience_segments = args[:audience_segments] if args.key?(:audience_segments) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) end end @@ -1339,12 +1339,12 @@ module Google # Update properties of this object def update!(**args) - @browser_version_id = args[:browser_version_id] unless args[:browser_version_id].nil? - @dart_id = args[:dart_id] unless args[:dart_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @major_version = args[:major_version] unless args[:major_version].nil? - @minor_version = args[:minor_version] unless args[:minor_version].nil? - @name = args[:name] unless args[:name].nil? + @browser_version_id = args[:browser_version_id] if args.key?(:browser_version_id) + @dart_id = args[:dart_id] if args.key?(:dart_id) + @kind = args[:kind] if args.key?(:kind) + @major_version = args[:major_version] if args.key?(:major_version) + @minor_version = args[:minor_version] if args.key?(:minor_version) + @name = args[:name] if args.key?(:name) end end @@ -1369,8 +1369,8 @@ module Google # Update properties of this object def update!(**args) - @browsers = args[:browsers] unless args[:browsers].nil? - @kind = args[:kind] unless args[:kind].nil? + @browsers = args[:browsers] if args.key?(:browsers) + @kind = args[:kind] if args.key?(:kind) end end @@ -1541,34 +1541,34 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @additional_creative_optimization_configurations = args[:additional_creative_optimization_configurations] unless args[:additional_creative_optimization_configurations].nil? - @advertiser_group_id = args[:advertiser_group_id] unless args[:advertiser_group_id].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] unless args[:advertiser_id_dimension_value].nil? - @archived = args[:archived] unless args[:archived].nil? - @audience_segment_groups = args[:audience_segment_groups] unless args[:audience_segment_groups].nil? - @billing_invoice_code = args[:billing_invoice_code] unless args[:billing_invoice_code].nil? - @click_through_url_suffix_properties = args[:click_through_url_suffix_properties] unless args[:click_through_url_suffix_properties].nil? - @comment = args[:comment] unless args[:comment].nil? - @comscore_vce_enabled = args[:comscore_vce_enabled] unless args[:comscore_vce_enabled].nil? - @create_info = args[:create_info] unless args[:create_info].nil? - @creative_group_ids = args[:creative_group_ids] unless args[:creative_group_ids].nil? - @creative_optimization_configuration = args[:creative_optimization_configuration] unless args[:creative_optimization_configuration].nil? - @default_click_through_event_tag_properties = args[:default_click_through_event_tag_properties] unless args[:default_click_through_event_tag_properties].nil? - @end_date = args[:end_date] unless args[:end_date].nil? - @event_tag_overrides = args[:event_tag_overrides] unless args[:event_tag_overrides].nil? - @external_id = args[:external_id] unless args[:external_id].nil? - @id = args[:id] unless args[:id].nil? - @id_dimension_value = args[:id_dimension_value] unless args[:id_dimension_value].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_modified_info = args[:last_modified_info] unless args[:last_modified_info].nil? - @lookback_configuration = args[:lookback_configuration] unless args[:lookback_configuration].nil? - @name = args[:name] unless args[:name].nil? - @nielsen_ocr_enabled = args[:nielsen_ocr_enabled] unless args[:nielsen_ocr_enabled].nil? - @start_date = args[:start_date] unless args[:start_date].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? - @trafficker_emails = args[:trafficker_emails] unless args[:trafficker_emails].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @additional_creative_optimization_configurations = args[:additional_creative_optimization_configurations] if args.key?(:additional_creative_optimization_configurations) + @advertiser_group_id = args[:advertiser_group_id] if args.key?(:advertiser_group_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @archived = args[:archived] if args.key?(:archived) + @audience_segment_groups = args[:audience_segment_groups] if args.key?(:audience_segment_groups) + @billing_invoice_code = args[:billing_invoice_code] if args.key?(:billing_invoice_code) + @click_through_url_suffix_properties = args[:click_through_url_suffix_properties] if args.key?(:click_through_url_suffix_properties) + @comment = args[:comment] if args.key?(:comment) + @comscore_vce_enabled = args[:comscore_vce_enabled] if args.key?(:comscore_vce_enabled) + @create_info = args[:create_info] if args.key?(:create_info) + @creative_group_ids = args[:creative_group_ids] if args.key?(:creative_group_ids) + @creative_optimization_configuration = args[:creative_optimization_configuration] if args.key?(:creative_optimization_configuration) + @default_click_through_event_tag_properties = args[:default_click_through_event_tag_properties] if args.key?(:default_click_through_event_tag_properties) + @end_date = args[:end_date] if args.key?(:end_date) + @event_tag_overrides = args[:event_tag_overrides] if args.key?(:event_tag_overrides) + @external_id = args[:external_id] if args.key?(:external_id) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @kind = args[:kind] if args.key?(:kind) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @lookback_configuration = args[:lookback_configuration] if args.key?(:lookback_configuration) + @name = args[:name] if args.key?(:name) + @nielsen_ocr_enabled = args[:nielsen_ocr_enabled] if args.key?(:nielsen_ocr_enabled) + @start_date = args[:start_date] if args.key?(:start_date) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @trafficker_emails = args[:trafficker_emails] if args.key?(:trafficker_emails) end end @@ -1593,8 +1593,8 @@ module Google # Update properties of this object def update!(**args) - @creative_id = args[:creative_id] unless args[:creative_id].nil? - @kind = args[:kind] unless args[:kind].nil? + @creative_id = args[:creative_id] if args.key?(:creative_id) + @kind = args[:kind] if args.key?(:kind) end end @@ -1624,9 +1624,9 @@ module Google # Update properties of this object def update!(**args) - @campaign_creative_associations = args[:campaign_creative_associations] unless args[:campaign_creative_associations].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @campaign_creative_associations = args[:campaign_creative_associations] if args.key?(:campaign_creative_associations) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1656,9 +1656,9 @@ module Google # Update properties of this object def update!(**args) - @campaigns = args[:campaigns] unless args[:campaigns].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @campaigns = args[:campaigns] if args.key?(:campaigns) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1746,20 +1746,20 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @action = args[:action] unless args[:action].nil? - @change_time = args[:change_time] unless args[:change_time].nil? - @field_name = args[:field_name] unless args[:field_name].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @new_value = args[:new_value] unless args[:new_value].nil? - @obj_id = args[:obj_id] unless args[:obj_id].nil? - @object_type = args[:object_type] unless args[:object_type].nil? - @old_value = args[:old_value] unless args[:old_value].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? - @transaction_id = args[:transaction_id] unless args[:transaction_id].nil? - @user_profile_id = args[:user_profile_id] unless args[:user_profile_id].nil? - @user_profile_name = args[:user_profile_name] unless args[:user_profile_name].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @action = args[:action] if args.key?(:action) + @change_time = args[:change_time] if args.key?(:change_time) + @field_name = args[:field_name] if args.key?(:field_name) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @new_value = args[:new_value] if args.key?(:new_value) + @obj_id = args[:obj_id] if args.key?(:obj_id) + @object_type = args[:object_type] if args.key?(:object_type) + @old_value = args[:old_value] if args.key?(:old_value) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @transaction_id = args[:transaction_id] if args.key?(:transaction_id) + @user_profile_id = args[:user_profile_id] if args.key?(:user_profile_id) + @user_profile_name = args[:user_profile_name] if args.key?(:user_profile_name) end end @@ -1789,9 +1789,9 @@ module Google # Update properties of this object def update!(**args) - @change_logs = args[:change_logs] unless args[:change_logs].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @change_logs = args[:change_logs] if args.key?(:change_logs) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1816,8 +1816,8 @@ module Google # Update properties of this object def update!(**args) - @cities = args[:cities] unless args[:cities].nil? - @kind = args[:kind] unless args[:kind].nil? + @cities = args[:cities] if args.key?(:cities) + @kind = args[:kind] if args.key?(:kind) end end @@ -1877,15 +1877,15 @@ module Google # Update properties of this object def update!(**args) - @country_code = args[:country_code] unless args[:country_code].nil? - @country_dart_id = args[:country_dart_id] unless args[:country_dart_id].nil? - @dart_id = args[:dart_id] unless args[:dart_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @metro_code = args[:metro_code] unless args[:metro_code].nil? - @metro_dma_id = args[:metro_dma_id] unless args[:metro_dma_id].nil? - @name = args[:name] unless args[:name].nil? - @region_code = args[:region_code] unless args[:region_code].nil? - @region_dart_id = args[:region_dart_id] unless args[:region_dart_id].nil? + @country_code = args[:country_code] if args.key?(:country_code) + @country_dart_id = args[:country_dart_id] if args.key?(:country_dart_id) + @dart_id = args[:dart_id] if args.key?(:dart_id) + @kind = args[:kind] if args.key?(:kind) + @metro_code = args[:metro_code] if args.key?(:metro_code) + @metro_dma_id = args[:metro_dma_id] if args.key?(:metro_dma_id) + @name = args[:name] if args.key?(:name) + @region_code = args[:region_code] if args.key?(:region_code) + @region_dart_id = args[:region_dart_id] if args.key?(:region_dart_id) end end @@ -1918,9 +1918,9 @@ module Google # Update properties of this object def update!(**args) - @event_name = args[:event_name] unless args[:event_name].nil? - @name = args[:name] unless args[:name].nil? - @value = args[:value] unless args[:value].nil? + @event_name = args[:event_name] if args.key?(:event_name) + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) end end @@ -1964,10 +1964,10 @@ module Google # Update properties of this object def update!(**args) - @computed_click_through_url = args[:computed_click_through_url] unless args[:computed_click_through_url].nil? - @custom_click_through_url = args[:custom_click_through_url] unless args[:custom_click_through_url].nil? - @default_landing_page = args[:default_landing_page] unless args[:default_landing_page].nil? - @landing_page_id = args[:landing_page_id] unless args[:landing_page_id].nil? + @computed_click_through_url = args[:computed_click_through_url] if args.key?(:computed_click_through_url) + @custom_click_through_url = args[:custom_click_through_url] if args.key?(:custom_click_through_url) + @default_landing_page = args[:default_landing_page] if args.key?(:default_landing_page) + @landing_page_id = args[:landing_page_id] if args.key?(:landing_page_id) end end @@ -1994,8 +1994,8 @@ module Google # Update properties of this object def update!(**args) - @click_through_url_suffix = args[:click_through_url_suffix] unless args[:click_through_url_suffix].nil? - @override_inherited_suffix = args[:override_inherited_suffix] unless args[:override_inherited_suffix].nil? + @click_through_url_suffix = args[:click_through_url_suffix] if args.key?(:click_through_url_suffix) + @override_inherited_suffix = args[:override_inherited_suffix] if args.key?(:override_inherited_suffix) end end @@ -2019,8 +2019,8 @@ module Google # Update properties of this object def update!(**args) - @click_through_url = args[:click_through_url] unless args[:click_through_url].nil? - @creative_id = args[:creative_id] unless args[:creative_id].nil? + @click_through_url = args[:click_through_url] if args.key?(:click_through_url) + @creative_id = args[:creative_id] if args.key?(:creative_id) end end @@ -2069,12 +2069,12 @@ module Google # Update properties of this object def update!(**args) - @cross_dimension_reach_report_compatible_fields = args[:cross_dimension_reach_report_compatible_fields] unless args[:cross_dimension_reach_report_compatible_fields].nil? - @floodlight_report_compatible_fields = args[:floodlight_report_compatible_fields] unless args[:floodlight_report_compatible_fields].nil? - @kind = args[:kind] unless args[:kind].nil? - @path_to_conversion_report_compatible_fields = args[:path_to_conversion_report_compatible_fields] unless args[:path_to_conversion_report_compatible_fields].nil? - @reach_report_compatible_fields = args[:reach_report_compatible_fields] unless args[:reach_report_compatible_fields].nil? - @report_compatible_fields = args[:report_compatible_fields] unless args[:report_compatible_fields].nil? + @cross_dimension_reach_report_compatible_fields = args[:cross_dimension_reach_report_compatible_fields] if args.key?(:cross_dimension_reach_report_compatible_fields) + @floodlight_report_compatible_fields = args[:floodlight_report_compatible_fields] if args.key?(:floodlight_report_compatible_fields) + @kind = args[:kind] if args.key?(:kind) + @path_to_conversion_report_compatible_fields = args[:path_to_conversion_report_compatible_fields] if args.key?(:path_to_conversion_report_compatible_fields) + @reach_report_compatible_fields = args[:reach_report_compatible_fields] if args.key?(:reach_report_compatible_fields) + @report_compatible_fields = args[:report_compatible_fields] if args.key?(:report_compatible_fields) end end @@ -2105,9 +2105,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -2132,8 +2132,8 @@ module Google # Update properties of this object def update!(**args) - @connection_types = args[:connection_types] unless args[:connection_types].nil? - @kind = args[:kind] unless args[:kind].nil? + @connection_types = args[:connection_types] if args.key?(:connection_types) + @kind = args[:kind] if args.key?(:kind) end end @@ -2163,9 +2163,9 @@ module Google # Update properties of this object def update!(**args) - @content_categories = args[:content_categories] unless args[:content_categories].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @content_categories = args[:content_categories] if args.key?(:content_categories) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -2202,10 +2202,10 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -2230,8 +2230,8 @@ module Google # Update properties of this object def update!(**args) - @countries = args[:countries] unless args[:countries].nil? - @kind = args[:kind] unless args[:kind].nil? + @countries = args[:countries] if args.key?(:countries) + @kind = args[:kind] if args.key?(:kind) end end @@ -2273,11 +2273,11 @@ module Google # Update properties of this object def update!(**args) - @country_code = args[:country_code] unless args[:country_code].nil? - @dart_id = args[:dart_id] unless args[:dart_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @ssl_enabled = args[:ssl_enabled] unless args[:ssl_enabled].nil? + @country_code = args[:country_code] if args.key?(:country_code) + @dart_id = args[:dart_id] if args.key?(:dart_id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @ssl_enabled = args[:ssl_enabled] if args.key?(:ssl_enabled) end end @@ -2699,64 +2699,64 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @active = args[:active] unless args[:active].nil? - @ad_parameters = args[:ad_parameters] unless args[:ad_parameters].nil? - @ad_tag_keys = args[:ad_tag_keys] unless args[:ad_tag_keys].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @allow_script_access = args[:allow_script_access] unless args[:allow_script_access].nil? - @archived = args[:archived] unless args[:archived].nil? - @artwork_type = args[:artwork_type] unless args[:artwork_type].nil? - @authoring_source = args[:authoring_source] unless args[:authoring_source].nil? - @authoring_tool = args[:authoring_tool] unless args[:authoring_tool].nil? - @auto_advance_images = args[:auto_advance_images] unless args[:auto_advance_images].nil? - @background_color = args[:background_color] unless args[:background_color].nil? - @backup_image_click_through_url = args[:backup_image_click_through_url] unless args[:backup_image_click_through_url].nil? - @backup_image_features = args[:backup_image_features] unless args[:backup_image_features].nil? - @backup_image_reporting_label = args[:backup_image_reporting_label] unless args[:backup_image_reporting_label].nil? - @backup_image_target_window = args[:backup_image_target_window] unless args[:backup_image_target_window].nil? - @click_tags = args[:click_tags] unless args[:click_tags].nil? - @commercial_id = args[:commercial_id] unless args[:commercial_id].nil? - @companion_creatives = args[:companion_creatives] unless args[:companion_creatives].nil? - @compatibility = args[:compatibility] unless args[:compatibility].nil? - @convert_flash_to_html5 = args[:convert_flash_to_html5] unless args[:convert_flash_to_html5].nil? - @counter_custom_events = args[:counter_custom_events] unless args[:counter_custom_events].nil? - @creative_assets = args[:creative_assets] unless args[:creative_assets].nil? - @creative_field_assignments = args[:creative_field_assignments] unless args[:creative_field_assignments].nil? - @custom_key_values = args[:custom_key_values] unless args[:custom_key_values].nil? - @exit_custom_events = args[:exit_custom_events] unless args[:exit_custom_events].nil? - @fs_command = args[:fs_command] unless args[:fs_command].nil? - @html_code = args[:html_code] unless args[:html_code].nil? - @html_code_locked = args[:html_code_locked] unless args[:html_code_locked].nil? - @id = args[:id] unless args[:id].nil? - @id_dimension_value = args[:id_dimension_value] unless args[:id_dimension_value].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_modified_info = args[:last_modified_info] unless args[:last_modified_info].nil? - @latest_trafficked_creative_id = args[:latest_trafficked_creative_id] unless args[:latest_trafficked_creative_id].nil? - @name = args[:name] unless args[:name].nil? - @override_css = args[:override_css] unless args[:override_css].nil? - @redirect_url = args[:redirect_url] unless args[:redirect_url].nil? - @rendering_id = args[:rendering_id] unless args[:rendering_id].nil? - @rendering_id_dimension_value = args[:rendering_id_dimension_value] unless args[:rendering_id_dimension_value].nil? - @required_flash_plugin_version = args[:required_flash_plugin_version] unless args[:required_flash_plugin_version].nil? - @required_flash_version = args[:required_flash_version] unless args[:required_flash_version].nil? - @size = args[:size] unless args[:size].nil? - @skippable = args[:skippable] unless args[:skippable].nil? - @ssl_compliant = args[:ssl_compliant] unless args[:ssl_compliant].nil? - @ssl_override = args[:ssl_override] unless args[:ssl_override].nil? - @studio_advertiser_id = args[:studio_advertiser_id] unless args[:studio_advertiser_id].nil? - @studio_creative_id = args[:studio_creative_id] unless args[:studio_creative_id].nil? - @studio_trafficked_creative_id = args[:studio_trafficked_creative_id] unless args[:studio_trafficked_creative_id].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? - @third_party_backup_image_impressions_url = args[:third_party_backup_image_impressions_url] unless args[:third_party_backup_image_impressions_url].nil? - @third_party_rich_media_impressions_url = args[:third_party_rich_media_impressions_url] unless args[:third_party_rich_media_impressions_url].nil? - @third_party_urls = args[:third_party_urls] unless args[:third_party_urls].nil? - @timer_custom_events = args[:timer_custom_events] unless args[:timer_custom_events].nil? - @total_file_size = args[:total_file_size] unless args[:total_file_size].nil? - @type = args[:type] unless args[:type].nil? - @version = args[:version] unless args[:version].nil? - @video_description = args[:video_description] unless args[:video_description].nil? - @video_duration = args[:video_duration] unless args[:video_duration].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @active = args[:active] if args.key?(:active) + @ad_parameters = args[:ad_parameters] if args.key?(:ad_parameters) + @ad_tag_keys = args[:ad_tag_keys] if args.key?(:ad_tag_keys) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @allow_script_access = args[:allow_script_access] if args.key?(:allow_script_access) + @archived = args[:archived] if args.key?(:archived) + @artwork_type = args[:artwork_type] if args.key?(:artwork_type) + @authoring_source = args[:authoring_source] if args.key?(:authoring_source) + @authoring_tool = args[:authoring_tool] if args.key?(:authoring_tool) + @auto_advance_images = args[:auto_advance_images] if args.key?(:auto_advance_images) + @background_color = args[:background_color] if args.key?(:background_color) + @backup_image_click_through_url = args[:backup_image_click_through_url] if args.key?(:backup_image_click_through_url) + @backup_image_features = args[:backup_image_features] if args.key?(:backup_image_features) + @backup_image_reporting_label = args[:backup_image_reporting_label] if args.key?(:backup_image_reporting_label) + @backup_image_target_window = args[:backup_image_target_window] if args.key?(:backup_image_target_window) + @click_tags = args[:click_tags] if args.key?(:click_tags) + @commercial_id = args[:commercial_id] if args.key?(:commercial_id) + @companion_creatives = args[:companion_creatives] if args.key?(:companion_creatives) + @compatibility = args[:compatibility] if args.key?(:compatibility) + @convert_flash_to_html5 = args[:convert_flash_to_html5] if args.key?(:convert_flash_to_html5) + @counter_custom_events = args[:counter_custom_events] if args.key?(:counter_custom_events) + @creative_assets = args[:creative_assets] if args.key?(:creative_assets) + @creative_field_assignments = args[:creative_field_assignments] if args.key?(:creative_field_assignments) + @custom_key_values = args[:custom_key_values] if args.key?(:custom_key_values) + @exit_custom_events = args[:exit_custom_events] if args.key?(:exit_custom_events) + @fs_command = args[:fs_command] if args.key?(:fs_command) + @html_code = args[:html_code] if args.key?(:html_code) + @html_code_locked = args[:html_code_locked] if args.key?(:html_code_locked) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @kind = args[:kind] if args.key?(:kind) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @latest_trafficked_creative_id = args[:latest_trafficked_creative_id] if args.key?(:latest_trafficked_creative_id) + @name = args[:name] if args.key?(:name) + @override_css = args[:override_css] if args.key?(:override_css) + @redirect_url = args[:redirect_url] if args.key?(:redirect_url) + @rendering_id = args[:rendering_id] if args.key?(:rendering_id) + @rendering_id_dimension_value = args[:rendering_id_dimension_value] if args.key?(:rendering_id_dimension_value) + @required_flash_plugin_version = args[:required_flash_plugin_version] if args.key?(:required_flash_plugin_version) + @required_flash_version = args[:required_flash_version] if args.key?(:required_flash_version) + @size = args[:size] if args.key?(:size) + @skippable = args[:skippable] if args.key?(:skippable) + @ssl_compliant = args[:ssl_compliant] if args.key?(:ssl_compliant) + @ssl_override = args[:ssl_override] if args.key?(:ssl_override) + @studio_advertiser_id = args[:studio_advertiser_id] if args.key?(:studio_advertiser_id) + @studio_creative_id = args[:studio_creative_id] if args.key?(:studio_creative_id) + @studio_trafficked_creative_id = args[:studio_trafficked_creative_id] if args.key?(:studio_trafficked_creative_id) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @third_party_backup_image_impressions_url = args[:third_party_backup_image_impressions_url] if args.key?(:third_party_backup_image_impressions_url) + @third_party_rich_media_impressions_url = args[:third_party_rich_media_impressions_url] if args.key?(:third_party_rich_media_impressions_url) + @third_party_urls = args[:third_party_urls] if args.key?(:third_party_urls) + @timer_custom_events = args[:timer_custom_events] if args.key?(:timer_custom_events) + @total_file_size = args[:total_file_size] if args.key?(:total_file_size) + @type = args[:type] if args.key?(:type) + @version = args[:version] if args.key?(:version) + @video_description = args[:video_description] if args.key?(:video_description) + @video_duration = args[:video_duration] if args.key?(:video_duration) end end @@ -3061,48 +3061,48 @@ module Google # Update properties of this object def update!(**args) - @action_script3 = args[:action_script3] unless args[:action_script3].nil? - @active = args[:active] unless args[:active].nil? - @alignment = args[:alignment] unless args[:alignment].nil? - @artwork_type = args[:artwork_type] unless args[:artwork_type].nil? - @asset_identifier = args[:asset_identifier] unless args[:asset_identifier].nil? - @backup_image_exit = args[:backup_image_exit] unless args[:backup_image_exit].nil? - @bit_rate = args[:bit_rate] unless args[:bit_rate].nil? - @child_asset_type = args[:child_asset_type] unless args[:child_asset_type].nil? - @collapsed_size = args[:collapsed_size] unless args[:collapsed_size].nil? - @custom_start_time_value = args[:custom_start_time_value] unless args[:custom_start_time_value].nil? - @detected_features = args[:detected_features] unless args[:detected_features].nil? - @display_type = args[:display_type] unless args[:display_type].nil? - @duration = args[:duration] unless args[:duration].nil? - @duration_type = args[:duration_type] unless args[:duration_type].nil? - @expanded_dimension = args[:expanded_dimension] unless args[:expanded_dimension].nil? - @file_size = args[:file_size] unless args[:file_size].nil? - @flash_version = args[:flash_version] unless args[:flash_version].nil? - @hide_flash_objects = args[:hide_flash_objects] unless args[:hide_flash_objects].nil? - @hide_selection_boxes = args[:hide_selection_boxes] unless args[:hide_selection_boxes].nil? - @horizontally_locked = args[:horizontally_locked] unless args[:horizontally_locked].nil? - @id = args[:id] unless args[:id].nil? - @mime_type = args[:mime_type] unless args[:mime_type].nil? - @offset = args[:offset] unless args[:offset].nil? - @original_backup = args[:original_backup] unless args[:original_backup].nil? - @position = args[:position] unless args[:position].nil? - @position_left_unit = args[:position_left_unit] unless args[:position_left_unit].nil? - @position_top_unit = args[:position_top_unit] unless args[:position_top_unit].nil? - @progressive_serving_url = args[:progressive_serving_url] unless args[:progressive_serving_url].nil? - @pushdown = args[:pushdown] unless args[:pushdown].nil? - @pushdown_duration = args[:pushdown_duration] unless args[:pushdown_duration].nil? - @role = args[:role] unless args[:role].nil? - @size = args[:size] unless args[:size].nil? - @ssl_compliant = args[:ssl_compliant] unless args[:ssl_compliant].nil? - @start_time_type = args[:start_time_type] unless args[:start_time_type].nil? - @streaming_serving_url = args[:streaming_serving_url] unless args[:streaming_serving_url].nil? - @transparency = args[:transparency] unless args[:transparency].nil? - @vertically_locked = args[:vertically_locked] unless args[:vertically_locked].nil? - @video_duration = args[:video_duration] unless args[:video_duration].nil? - @window_mode = args[:window_mode] unless args[:window_mode].nil? - @z_index = args[:z_index] unless args[:z_index].nil? - @zip_filename = args[:zip_filename] unless args[:zip_filename].nil? - @zip_filesize = args[:zip_filesize] unless args[:zip_filesize].nil? + @action_script3 = args[:action_script3] if args.key?(:action_script3) + @active = args[:active] if args.key?(:active) + @alignment = args[:alignment] if args.key?(:alignment) + @artwork_type = args[:artwork_type] if args.key?(:artwork_type) + @asset_identifier = args[:asset_identifier] if args.key?(:asset_identifier) + @backup_image_exit = args[:backup_image_exit] if args.key?(:backup_image_exit) + @bit_rate = args[:bit_rate] if args.key?(:bit_rate) + @child_asset_type = args[:child_asset_type] if args.key?(:child_asset_type) + @collapsed_size = args[:collapsed_size] if args.key?(:collapsed_size) + @custom_start_time_value = args[:custom_start_time_value] if args.key?(:custom_start_time_value) + @detected_features = args[:detected_features] if args.key?(:detected_features) + @display_type = args[:display_type] if args.key?(:display_type) + @duration = args[:duration] if args.key?(:duration) + @duration_type = args[:duration_type] if args.key?(:duration_type) + @expanded_dimension = args[:expanded_dimension] if args.key?(:expanded_dimension) + @file_size = args[:file_size] if args.key?(:file_size) + @flash_version = args[:flash_version] if args.key?(:flash_version) + @hide_flash_objects = args[:hide_flash_objects] if args.key?(:hide_flash_objects) + @hide_selection_boxes = args[:hide_selection_boxes] if args.key?(:hide_selection_boxes) + @horizontally_locked = args[:horizontally_locked] if args.key?(:horizontally_locked) + @id = args[:id] if args.key?(:id) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @offset = args[:offset] if args.key?(:offset) + @original_backup = args[:original_backup] if args.key?(:original_backup) + @position = args[:position] if args.key?(:position) + @position_left_unit = args[:position_left_unit] if args.key?(:position_left_unit) + @position_top_unit = args[:position_top_unit] if args.key?(:position_top_unit) + @progressive_serving_url = args[:progressive_serving_url] if args.key?(:progressive_serving_url) + @pushdown = args[:pushdown] if args.key?(:pushdown) + @pushdown_duration = args[:pushdown_duration] if args.key?(:pushdown_duration) + @role = args[:role] if args.key?(:role) + @size = args[:size] if args.key?(:size) + @ssl_compliant = args[:ssl_compliant] if args.key?(:ssl_compliant) + @start_time_type = args[:start_time_type] if args.key?(:start_time_type) + @streaming_serving_url = args[:streaming_serving_url] if args.key?(:streaming_serving_url) + @transparency = args[:transparency] if args.key?(:transparency) + @vertically_locked = args[:vertically_locked] if args.key?(:vertically_locked) + @video_duration = args[:video_duration] if args.key?(:video_duration) + @window_mode = args[:window_mode] if args.key?(:window_mode) + @z_index = args[:z_index] if args.key?(:z_index) + @zip_filename = args[:zip_filename] if args.key?(:zip_filename) + @zip_filesize = args[:zip_filesize] if args.key?(:zip_filesize) end end @@ -3130,8 +3130,8 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @type = args[:type] unless args[:type].nil? + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) end end @@ -3200,11 +3200,11 @@ module Google # Update properties of this object def update!(**args) - @asset_identifier = args[:asset_identifier] unless args[:asset_identifier].nil? - @click_tags = args[:click_tags] unless args[:click_tags].nil? - @detected_features = args[:detected_features] unless args[:detected_features].nil? - @kind = args[:kind] unless args[:kind].nil? - @warned_validation_rules = args[:warned_validation_rules] unless args[:warned_validation_rules].nil? + @asset_identifier = args[:asset_identifier] if args.key?(:asset_identifier) + @click_tags = args[:click_tags] if args.key?(:click_tags) + @detected_features = args[:detected_features] if args.key?(:detected_features) + @kind = args[:kind] if args.key?(:kind) + @warned_validation_rules = args[:warned_validation_rules] if args.key?(:warned_validation_rules) end end @@ -3308,19 +3308,19 @@ module Google # Update properties of this object def update!(**args) - @active = args[:active] unless args[:active].nil? - @apply_event_tags = args[:apply_event_tags] unless args[:apply_event_tags].nil? - @click_through_url = args[:click_through_url] unless args[:click_through_url].nil? - @companion_creative_overrides = args[:companion_creative_overrides] unless args[:companion_creative_overrides].nil? - @creative_group_assignments = args[:creative_group_assignments] unless args[:creative_group_assignments].nil? - @creative_id = args[:creative_id] unless args[:creative_id].nil? - @creative_id_dimension_value = args[:creative_id_dimension_value] unless args[:creative_id_dimension_value].nil? - @end_time = args[:end_time] unless args[:end_time].nil? - @rich_media_exit_overrides = args[:rich_media_exit_overrides] unless args[:rich_media_exit_overrides].nil? - @sequence = args[:sequence] unless args[:sequence].nil? - @ssl_compliant = args[:ssl_compliant] unless args[:ssl_compliant].nil? - @start_time = args[:start_time] unless args[:start_time].nil? - @weight = args[:weight] unless args[:weight].nil? + @active = args[:active] if args.key?(:active) + @apply_event_tags = args[:apply_event_tags] if args.key?(:apply_event_tags) + @click_through_url = args[:click_through_url] if args.key?(:click_through_url) + @companion_creative_overrides = args[:companion_creative_overrides] if args.key?(:companion_creative_overrides) + @creative_group_assignments = args[:creative_group_assignments] if args.key?(:creative_group_assignments) + @creative_id = args[:creative_id] if args.key?(:creative_id) + @creative_id_dimension_value = args[:creative_id_dimension_value] if args.key?(:creative_id_dimension_value) + @end_time = args[:end_time] if args.key?(:end_time) + @rich_media_exit_overrides = args[:rich_media_exit_overrides] if args.key?(:rich_media_exit_overrides) + @sequence = args[:sequence] if args.key?(:sequence) + @ssl_compliant = args[:ssl_compliant] if args.key?(:ssl_compliant) + @start_time = args[:start_time] if args.key?(:start_time) + @weight = args[:weight] if args.key?(:weight) end end @@ -3388,16 +3388,16 @@ module Google # Update properties of this object def update!(**args) - @advertiser_custom_event_id = args[:advertiser_custom_event_id] unless args[:advertiser_custom_event_id].nil? - @advertiser_custom_event_name = args[:advertiser_custom_event_name] unless args[:advertiser_custom_event_name].nil? - @advertiser_custom_event_type = args[:advertiser_custom_event_type] unless args[:advertiser_custom_event_type].nil? - @artwork_label = args[:artwork_label] unless args[:artwork_label].nil? - @artwork_type = args[:artwork_type] unless args[:artwork_type].nil? - @exit_url = args[:exit_url] unless args[:exit_url].nil? - @id = args[:id] unless args[:id].nil? - @popup_window_properties = args[:popup_window_properties] unless args[:popup_window_properties].nil? - @target_type = args[:target_type] unless args[:target_type].nil? - @video_reporting_id = args[:video_reporting_id] unless args[:video_reporting_id].nil? + @advertiser_custom_event_id = args[:advertiser_custom_event_id] if args.key?(:advertiser_custom_event_id) + @advertiser_custom_event_name = args[:advertiser_custom_event_name] if args.key?(:advertiser_custom_event_name) + @advertiser_custom_event_type = args[:advertiser_custom_event_type] if args.key?(:advertiser_custom_event_type) + @artwork_label = args[:artwork_label] if args.key?(:artwork_label) + @artwork_type = args[:artwork_type] if args.key?(:artwork_type) + @exit_url = args[:exit_url] if args.key?(:exit_url) + @id = args[:id] if args.key?(:id) + @popup_window_properties = args[:popup_window_properties] if args.key?(:popup_window_properties) + @target_type = args[:target_type] if args.key?(:target_type) + @video_reporting_id = args[:video_reporting_id] if args.key?(:video_reporting_id) end end @@ -3450,13 +3450,13 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] unless args[:advertiser_id_dimension_value].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) end end @@ -3480,8 +3480,8 @@ module Google # Update properties of this object def update!(**args) - @creative_field_id = args[:creative_field_id] unless args[:creative_field_id].nil? - @creative_field_value_id = args[:creative_field_value_id] unless args[:creative_field_value_id].nil? + @creative_field_id = args[:creative_field_id] if args.key?(:creative_field_id) + @creative_field_value_id = args[:creative_field_value_id] if args.key?(:creative_field_value_id) end end @@ -3512,9 +3512,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @value = args[:value] unless args[:value].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @value = args[:value] if args.key?(:value) end end @@ -3544,9 +3544,9 @@ module Google # Update properties of this object def update!(**args) - @creative_field_values = args[:creative_field_values] unless args[:creative_field_values].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @creative_field_values = args[:creative_field_values] if args.key?(:creative_field_values) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -3576,9 +3576,9 @@ module Google # Update properties of this object def update!(**args) - @creative_fields = args[:creative_fields] unless args[:creative_fields].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @creative_fields = args[:creative_fields] if args.key?(:creative_fields) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -3641,14 +3641,14 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] unless args[:advertiser_id_dimension_value].nil? - @group_number = args[:group_number] unless args[:group_number].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @group_number = args[:group_number] if args.key?(:group_number) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) end end @@ -3672,8 +3672,8 @@ module Google # Update properties of this object def update!(**args) - @creative_group_id = args[:creative_group_id] unless args[:creative_group_id].nil? - @creative_group_number = args[:creative_group_number] unless args[:creative_group_number].nil? + @creative_group_id = args[:creative_group_id] if args.key?(:creative_group_id) + @creative_group_number = args[:creative_group_number] if args.key?(:creative_group_number) end end @@ -3703,9 +3703,9 @@ module Google # Update properties of this object def update!(**args) - @creative_groups = args[:creative_groups] unless args[:creative_groups].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @creative_groups = args[:creative_groups] if args.key?(:creative_groups) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -3741,10 +3741,10 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @name = args[:name] unless args[:name].nil? - @optimization_activitys = args[:optimization_activitys] unless args[:optimization_activitys].nil? - @optimization_model = args[:optimization_model] unless args[:optimization_model].nil? + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @optimization_activitys = args[:optimization_activitys] if args.key?(:optimization_activitys) + @optimization_model = args[:optimization_model] if args.key?(:optimization_model) end end @@ -3782,10 +3782,10 @@ module Google # Update properties of this object def update!(**args) - @creative_assignments = args[:creative_assignments] unless args[:creative_assignments].nil? - @creative_optimization_configuration_id = args[:creative_optimization_configuration_id] unless args[:creative_optimization_configuration_id].nil? - @type = args[:type] unless args[:type].nil? - @weight_calculation_strategy = args[:weight_calculation_strategy] unless args[:weight_calculation_strategy].nil? + @creative_assignments = args[:creative_assignments] if args.key?(:creative_assignments) + @creative_optimization_configuration_id = args[:creative_optimization_configuration_id] if args.key?(:creative_optimization_configuration_id) + @type = args[:type] if args.key?(:type) + @weight_calculation_strategy = args[:weight_calculation_strategy] if args.key?(:weight_calculation_strategy) end end @@ -3811,8 +3811,8 @@ module Google # Update properties of this object def update!(**args) - @i_frame_footer = args[:i_frame_footer] unless args[:i_frame_footer].nil? - @i_frame_header = args[:i_frame_header] unless args[:i_frame_header].nil? + @i_frame_footer = args[:i_frame_footer] if args.key?(:i_frame_footer) + @i_frame_header = args[:i_frame_header] if args.key?(:i_frame_header) end end @@ -3842,9 +3842,9 @@ module Google # Update properties of this object def update!(**args) - @creatives = args[:creatives] unless args[:creatives].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @creatives = args[:creatives] if args.key?(:creatives) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -3889,11 +3889,11 @@ module Google # Update properties of this object def update!(**args) - @breakdown = args[:breakdown] unless args[:breakdown].nil? - @dimension_filters = args[:dimension_filters] unless args[:dimension_filters].nil? - @kind = args[:kind] unless args[:kind].nil? - @metrics = args[:metrics] unless args[:metrics].nil? - @overlap_metrics = args[:overlap_metrics] unless args[:overlap_metrics].nil? + @breakdown = args[:breakdown] if args.key?(:breakdown) + @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters) + @kind = args[:kind] if args.key?(:kind) + @metrics = args[:metrics] if args.key?(:metrics) + @overlap_metrics = args[:overlap_metrics] if args.key?(:overlap_metrics) end end @@ -3918,8 +3918,8 @@ module Google # Update properties of this object def update!(**args) - @filtered_event_ids = args[:filtered_event_ids] unless args[:filtered_event_ids].nil? - @kind = args[:kind] unless args[:kind].nil? + @filtered_event_ids = args[:filtered_event_ids] if args.key?(:filtered_event_ids) + @kind = args[:kind] if args.key?(:kind) end end @@ -3955,10 +3955,10 @@ module Google # Update properties of this object def update!(**args) - @end_date = args[:end_date] unless args[:end_date].nil? - @kind = args[:kind] unless args[:kind].nil? - @relative_date_range = args[:relative_date_range] unless args[:relative_date_range].nil? - @start_date = args[:start_date] unless args[:start_date].nil? + @end_date = args[:end_date] if args.key?(:end_date) + @kind = args[:kind] if args.key?(:kind) + @relative_date_range = args[:relative_date_range] if args.key?(:relative_date_range) + @start_date = args[:start_date] if args.key?(:start_date) end end @@ -4002,9 +4002,9 @@ module Google # Update properties of this object def update!(**args) - @days_of_week = args[:days_of_week] unless args[:days_of_week].nil? - @hours_of_day = args[:hours_of_day] unless args[:hours_of_day].nil? - @user_local_time = args[:user_local_time] unless args[:user_local_time].nil? + @days_of_week = args[:days_of_week] if args.key?(:days_of_week) + @hours_of_day = args[:hours_of_day] if args.key?(:hours_of_day) + @user_local_time = args[:user_local_time] if args.key?(:user_local_time) end end @@ -4032,8 +4032,8 @@ module Google # Update properties of this object def update!(**args) - @default_click_through_event_tag_id = args[:default_click_through_event_tag_id] unless args[:default_click_through_event_tag_id].nil? - @override_inherited_event_tag = args[:override_inherited_event_tag] unless args[:override_inherited_event_tag].nil? + @default_click_through_event_tag_id = args[:default_click_through_event_tag_id] if args.key?(:default_click_through_event_tag_id) + @override_inherited_event_tag = args[:override_inherited_event_tag] if args.key?(:override_inherited_event_tag) end end @@ -4074,10 +4074,10 @@ module Google # Update properties of this object def update!(**args) - @frequency_cap = args[:frequency_cap] unless args[:frequency_cap].nil? - @hard_cutoff = args[:hard_cutoff] unless args[:hard_cutoff].nil? - @impression_ratio = args[:impression_ratio] unless args[:impression_ratio].nil? - @priority = args[:priority] unless args[:priority].nil? + @frequency_cap = args[:frequency_cap] if args.key?(:frequency_cap) + @hard_cutoff = args[:hard_cutoff] if args.key?(:hard_cutoff) + @impression_ratio = args[:impression_ratio] if args.key?(:impression_ratio) + @priority = args[:priority] if args.key?(:priority) end end @@ -4119,11 +4119,11 @@ module Google # Update properties of this object def update!(**args) - @dfp_network_code = args[:dfp_network_code] unless args[:dfp_network_code].nil? - @dfp_network_name = args[:dfp_network_name] unless args[:dfp_network_name].nil? - @programmatic_placement_accepted = args[:programmatic_placement_accepted] unless args[:programmatic_placement_accepted].nil? - @pub_paid_placement_accepted = args[:pub_paid_placement_accepted] unless args[:pub_paid_placement_accepted].nil? - @publisher_portal_only = args[:publisher_portal_only] unless args[:publisher_portal_only].nil? + @dfp_network_code = args[:dfp_network_code] if args.key?(:dfp_network_code) + @dfp_network_name = args[:dfp_network_name] if args.key?(:dfp_network_name) + @programmatic_placement_accepted = args[:programmatic_placement_accepted] if args.key?(:programmatic_placement_accepted) + @pub_paid_placement_accepted = args[:pub_paid_placement_accepted] if args.key?(:pub_paid_placement_accepted) + @publisher_portal_only = args[:publisher_portal_only] if args.key?(:publisher_portal_only) end end @@ -4147,8 +4147,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -4177,9 +4177,9 @@ module Google # Update properties of this object def update!(**args) - @dimension_name = args[:dimension_name] unless args[:dimension_name].nil? - @kind = args[:kind] unless args[:kind].nil? - @value = args[:value] unless args[:value].nil? + @dimension_name = args[:dimension_name] if args.key?(:dimension_name) + @kind = args[:kind] if args.key?(:kind) + @value = args[:value] if args.key?(:value) end end @@ -4227,12 +4227,12 @@ module Google # Update properties of this object def update!(**args) - @dimension_name = args[:dimension_name] unless args[:dimension_name].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @match_type = args[:match_type] unless args[:match_type].nil? - @value = args[:value] unless args[:value].nil? + @dimension_name = args[:dimension_name] if args.key?(:dimension_name) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @match_type = args[:match_type] if args.key?(:match_type) + @value = args[:value] if args.key?(:value) end end @@ -4269,10 +4269,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -4313,11 +4313,11 @@ module Google # Update properties of this object def update!(**args) - @dimension_name = args[:dimension_name] unless args[:dimension_name].nil? - @end_date = args[:end_date] unless args[:end_date].nil? - @filters = args[:filters] unless args[:filters].nil? - @kind = args[:kind] unless args[:kind].nil? - @start_date = args[:start_date] unless args[:start_date].nil? + @dimension_name = args[:dimension_name] if args.key?(:dimension_name) + @end_date = args[:end_date] if args.key?(:end_date) + @filters = args[:filters] if args.key?(:filters) + @kind = args[:kind] if args.key?(:kind) + @start_date = args[:start_date] if args.key?(:start_date) end end @@ -4454,20 +4454,20 @@ module Google # Update properties of this object def update!(**args) - @active = args[:active] unless args[:active].nil? - @contact_assignments = args[:contact_assignments] unless args[:contact_assignments].nil? - @country_id = args[:country_id] unless args[:country_id].nil? - @currency_id = args[:currency_id] unless args[:currency_id].nil? - @description = args[:description] unless args[:description].nil? - @id = args[:id] unless args[:id].nil? - @id_dimension_value = args[:id_dimension_value] unless args[:id_dimension_value].nil? - @inpage_tag_formats = args[:inpage_tag_formats] unless args[:inpage_tag_formats].nil? - @interstitial_tag_formats = args[:interstitial_tag_formats] unless args[:interstitial_tag_formats].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @parent_id = args[:parent_id] unless args[:parent_id].nil? - @settings = args[:settings] unless args[:settings].nil? - @url = args[:url] unless args[:url].nil? + @active = args[:active] if args.key?(:active) + @contact_assignments = args[:contact_assignments] if args.key?(:contact_assignments) + @country_id = args[:country_id] if args.key?(:country_id) + @currency_id = args[:currency_id] if args.key?(:currency_id) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @inpage_tag_formats = args[:inpage_tag_formats] if args.key?(:inpage_tag_formats) + @interstitial_tag_formats = args[:interstitial_tag_formats] if args.key?(:interstitial_tag_formats) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @parent_id = args[:parent_id] if args.key?(:parent_id) + @settings = args[:settings] if args.key?(:settings) + @url = args[:url] if args.key?(:url) end end @@ -4532,16 +4532,16 @@ module Google # Update properties of this object def update!(**args) - @address = args[:address] unless args[:address].nil? - @email = args[:email] unless args[:email].nil? - @first_name = args[:first_name] unless args[:first_name].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_name = args[:last_name] unless args[:last_name].nil? - @phone = args[:phone] unless args[:phone].nil? - @role = args[:role] unless args[:role].nil? - @title = args[:title] unless args[:title].nil? - @type = args[:type] unless args[:type].nil? + @address = args[:address] if args.key?(:address) + @email = args[:email] if args.key?(:email) + @first_name = args[:first_name] if args.key?(:first_name) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @last_name = args[:last_name] if args.key?(:last_name) + @phone = args[:phone] if args.key?(:phone) + @role = args[:role] if args.key?(:role) + @title = args[:title] if args.key?(:title) + @type = args[:type] if args.key?(:type) end end @@ -4567,8 +4567,8 @@ module Google # Update properties of this object def update!(**args) - @contact_id = args[:contact_id] unless args[:contact_id].nil? - @visibility = args[:visibility] unless args[:visibility].nil? + @contact_id = args[:contact_id] if args.key?(:contact_id) + @visibility = args[:visibility] if args.key?(:visibility) end end @@ -4598,9 +4598,9 @@ module Google # Update properties of this object def update!(**args) - @directory_site_contacts = args[:directory_site_contacts] unless args[:directory_site_contacts].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @directory_site_contacts = args[:directory_site_contacts] if args.key?(:directory_site_contacts) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -4656,13 +4656,13 @@ module Google # Update properties of this object def update!(**args) - @active_view_opt_out = args[:active_view_opt_out] unless args[:active_view_opt_out].nil? - @dfp_settings = args[:dfp_settings] unless args[:dfp_settings].nil? - @instream_video_placement_accepted = args[:instream_video_placement_accepted] unless args[:instream_video_placement_accepted].nil? - @interstitial_placement_accepted = args[:interstitial_placement_accepted] unless args[:interstitial_placement_accepted].nil? - @nielsen_ocr_opt_out = args[:nielsen_ocr_opt_out] unless args[:nielsen_ocr_opt_out].nil? - @verification_tag_opt_out = args[:verification_tag_opt_out] unless args[:verification_tag_opt_out].nil? - @video_active_view_opt_out = args[:video_active_view_opt_out] unless args[:video_active_view_opt_out].nil? + @active_view_opt_out = args[:active_view_opt_out] if args.key?(:active_view_opt_out) + @dfp_settings = args[:dfp_settings] if args.key?(:dfp_settings) + @instream_video_placement_accepted = args[:instream_video_placement_accepted] if args.key?(:instream_video_placement_accepted) + @interstitial_placement_accepted = args[:interstitial_placement_accepted] if args.key?(:interstitial_placement_accepted) + @nielsen_ocr_opt_out = args[:nielsen_ocr_opt_out] if args.key?(:nielsen_ocr_opt_out) + @verification_tag_opt_out = args[:verification_tag_opt_out] if args.key?(:verification_tag_opt_out) + @video_active_view_opt_out = args[:video_active_view_opt_out] if args.key?(:video_active_view_opt_out) end end @@ -4692,9 +4692,9 @@ module Google # Update properties of this object def update!(**args) - @directory_sites = args[:directory_sites] unless args[:directory_sites].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @directory_sites = args[:directory_sites] if args.key?(:directory_sites) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -4819,24 +4819,24 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] unless args[:advertiser_id_dimension_value].nil? - @campaign_id = args[:campaign_id] unless args[:campaign_id].nil? - @campaign_id_dimension_value = args[:campaign_id_dimension_value] unless args[:campaign_id_dimension_value].nil? - @enabled_by_default = args[:enabled_by_default] unless args[:enabled_by_default].nil? - @exclude_from_adx_requests = args[:exclude_from_adx_requests] unless args[:exclude_from_adx_requests].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @site_filter_type = args[:site_filter_type] unless args[:site_filter_type].nil? - @site_ids = args[:site_ids] unless args[:site_ids].nil? - @ssl_compliant = args[:ssl_compliant] unless args[:ssl_compliant].nil? - @status = args[:status] unless args[:status].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? - @type = args[:type] unless args[:type].nil? - @url = args[:url] unless args[:url].nil? - @url_escape_levels = args[:url_escape_levels] unless args[:url_escape_levels].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @campaign_id = args[:campaign_id] if args.key?(:campaign_id) + @campaign_id_dimension_value = args[:campaign_id_dimension_value] if args.key?(:campaign_id_dimension_value) + @enabled_by_default = args[:enabled_by_default] if args.key?(:enabled_by_default) + @exclude_from_adx_requests = args[:exclude_from_adx_requests] if args.key?(:exclude_from_adx_requests) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @site_filter_type = args[:site_filter_type] if args.key?(:site_filter_type) + @site_ids = args[:site_ids] if args.key?(:site_ids) + @ssl_compliant = args[:ssl_compliant] if args.key?(:ssl_compliant) + @status = args[:status] if args.key?(:status) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @type = args[:type] if args.key?(:type) + @url = args[:url] if args.key?(:url) + @url_escape_levels = args[:url_escape_levels] if args.key?(:url_escape_levels) end end @@ -4861,8 +4861,8 @@ module Google # Update properties of this object def update!(**args) - @enabled = args[:enabled] unless args[:enabled].nil? - @id = args[:id] unless args[:id].nil? + @enabled = args[:enabled] if args.key?(:enabled) + @id = args[:id] if args.key?(:id) end end @@ -4887,8 +4887,8 @@ module Google # Update properties of this object def update!(**args) - @event_tags = args[:event_tags] unless args[:event_tags].nil? - @kind = args[:kind] unless args[:kind].nil? + @event_tags = args[:event_tags] if args.key?(:event_tags) + @kind = args[:kind] if args.key?(:kind) end end @@ -4954,16 +4954,16 @@ module Google # Update properties of this object def update!(**args) - @date_range = args[:date_range] unless args[:date_range].nil? - @etag = args[:etag] unless args[:etag].nil? - @file_name = args[:file_name] unless args[:file_name].nil? - @format = args[:format] unless args[:format].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_modified_time = args[:last_modified_time] unless args[:last_modified_time].nil? - @report_id = args[:report_id] unless args[:report_id].nil? - @status = args[:status] unless args[:status].nil? - @urls = args[:urls] unless args[:urls].nil? + @date_range = args[:date_range] if args.key?(:date_range) + @etag = args[:etag] if args.key?(:etag) + @file_name = args[:file_name] if args.key?(:file_name) + @format = args[:format] if args.key?(:format) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) + @report_id = args[:report_id] if args.key?(:report_id) + @status = args[:status] if args.key?(:status) + @urls = args[:urls] if args.key?(:urls) end # The URLs where the completed report file can be downloaded. @@ -4986,8 +4986,8 @@ module Google # Update properties of this object def update!(**args) - @api_url = args[:api_url] unless args[:api_url].nil? - @browser_url = args[:browser_url] unless args[:browser_url].nil? + @api_url = args[:api_url] if args.key?(:api_url) + @browser_url = args[:browser_url] if args.key?(:browser_url) end end end @@ -5025,10 +5025,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -5062,10 +5062,10 @@ module Google # Update properties of this object def update!(**args) - @end_date = args[:end_date] unless args[:end_date].nil? - @rate_or_cost = args[:rate_or_cost] unless args[:rate_or_cost].nil? - @start_date = args[:start_date] unless args[:start_date].nil? - @units = args[:units] unless args[:units].nil? + @end_date = args[:end_date] if args.key?(:end_date) + @rate_or_cost = args[:rate_or_cost] if args.key?(:rate_or_cost) + @start_date = args[:start_date] if args.key?(:start_date) + @units = args[:units] if args.key?(:units) end end @@ -5090,8 +5090,8 @@ module Google # Update properties of this object def update!(**args) - @floodlight_activity_tag = args[:floodlight_activity_tag] unless args[:floodlight_activity_tag].nil? - @kind = args[:kind] unless args[:kind].nil? + @floodlight_activity_tag = args[:floodlight_activity_tag] if args.key?(:floodlight_activity_tag) + @kind = args[:kind] if args.key?(:kind) end end @@ -5121,9 +5121,9 @@ module Google # Update properties of this object def update!(**args) - @floodlight_activities = args[:floodlight_activities] unless args[:floodlight_activities].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @floodlight_activities = args[:floodlight_activities] if args.key?(:floodlight_activities) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -5324,34 +5324,34 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] unless args[:advertiser_id_dimension_value].nil? - @cache_busting_type = args[:cache_busting_type] unless args[:cache_busting_type].nil? - @counting_method = args[:counting_method] unless args[:counting_method].nil? - @default_tags = args[:default_tags] unless args[:default_tags].nil? - @expected_url = args[:expected_url] unless args[:expected_url].nil? - @floodlight_activity_group_id = args[:floodlight_activity_group_id] unless args[:floodlight_activity_group_id].nil? - @floodlight_activity_group_name = args[:floodlight_activity_group_name] unless args[:floodlight_activity_group_name].nil? - @floodlight_activity_group_tag_string = args[:floodlight_activity_group_tag_string] unless args[:floodlight_activity_group_tag_string].nil? - @floodlight_activity_group_type = args[:floodlight_activity_group_type] unless args[:floodlight_activity_group_type].nil? - @floodlight_configuration_id = args[:floodlight_configuration_id] unless args[:floodlight_configuration_id].nil? - @floodlight_configuration_id_dimension_value = args[:floodlight_configuration_id_dimension_value] unless args[:floodlight_configuration_id_dimension_value].nil? - @hidden = args[:hidden] unless args[:hidden].nil? - @id = args[:id] unless args[:id].nil? - @id_dimension_value = args[:id_dimension_value] unless args[:id_dimension_value].nil? - @image_tag_enabled = args[:image_tag_enabled] unless args[:image_tag_enabled].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @notes = args[:notes] unless args[:notes].nil? - @publisher_tags = args[:publisher_tags] unless args[:publisher_tags].nil? - @secure = args[:secure] unless args[:secure].nil? - @ssl_compliant = args[:ssl_compliant] unless args[:ssl_compliant].nil? - @ssl_required = args[:ssl_required] unless args[:ssl_required].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? - @tag_format = args[:tag_format] unless args[:tag_format].nil? - @tag_string = args[:tag_string] unless args[:tag_string].nil? - @user_defined_variable_types = args[:user_defined_variable_types] unless args[:user_defined_variable_types].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @cache_busting_type = args[:cache_busting_type] if args.key?(:cache_busting_type) + @counting_method = args[:counting_method] if args.key?(:counting_method) + @default_tags = args[:default_tags] if args.key?(:default_tags) + @expected_url = args[:expected_url] if args.key?(:expected_url) + @floodlight_activity_group_id = args[:floodlight_activity_group_id] if args.key?(:floodlight_activity_group_id) + @floodlight_activity_group_name = args[:floodlight_activity_group_name] if args.key?(:floodlight_activity_group_name) + @floodlight_activity_group_tag_string = args[:floodlight_activity_group_tag_string] if args.key?(:floodlight_activity_group_tag_string) + @floodlight_activity_group_type = args[:floodlight_activity_group_type] if args.key?(:floodlight_activity_group_type) + @floodlight_configuration_id = args[:floodlight_configuration_id] if args.key?(:floodlight_configuration_id) + @floodlight_configuration_id_dimension_value = args[:floodlight_configuration_id_dimension_value] if args.key?(:floodlight_configuration_id_dimension_value) + @hidden = args[:hidden] if args.key?(:hidden) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @image_tag_enabled = args[:image_tag_enabled] if args.key?(:image_tag_enabled) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @notes = args[:notes] if args.key?(:notes) + @publisher_tags = args[:publisher_tags] if args.key?(:publisher_tags) + @secure = args[:secure] if args.key?(:secure) + @ssl_compliant = args[:ssl_compliant] if args.key?(:ssl_compliant) + @ssl_required = args[:ssl_required] if args.key?(:ssl_required) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @tag_format = args[:tag_format] if args.key?(:tag_format) + @tag_string = args[:tag_string] if args.key?(:tag_string) + @user_defined_variable_types = args[:user_defined_variable_types] if args.key?(:user_defined_variable_types) end end @@ -5380,9 +5380,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @name = args[:name] unless args[:name].nil? - @tag = args[:tag] unless args[:tag].nil? + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @tag = args[:tag] if args.key?(:tag) end end @@ -5470,18 +5470,18 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] unless args[:advertiser_id_dimension_value].nil? - @floodlight_configuration_id = args[:floodlight_configuration_id] unless args[:floodlight_configuration_id].nil? - @floodlight_configuration_id_dimension_value = args[:floodlight_configuration_id_dimension_value] unless args[:floodlight_configuration_id_dimension_value].nil? - @id = args[:id] unless args[:id].nil? - @id_dimension_value = args[:id_dimension_value] unless args[:id_dimension_value].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? - @tag_string = args[:tag_string] unless args[:tag_string].nil? - @type = args[:type] unless args[:type].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @floodlight_configuration_id = args[:floodlight_configuration_id] if args.key?(:floodlight_configuration_id) + @floodlight_configuration_id_dimension_value = args[:floodlight_configuration_id_dimension_value] if args.key?(:floodlight_configuration_id_dimension_value) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @tag_string = args[:tag_string] if args.key?(:tag_string) + @type = args[:type] if args.key?(:type) end end @@ -5511,9 +5511,9 @@ module Google # Update properties of this object def update!(**args) - @floodlight_activity_groups = args[:floodlight_activity_groups] unless args[:floodlight_activity_groups].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @floodlight_activity_groups = args[:floodlight_activity_groups] if args.key?(:floodlight_activity_groups) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -5561,12 +5561,12 @@ module Google # Update properties of this object def update!(**args) - @click_through = args[:click_through] unless args[:click_through].nil? - @directory_site_id = args[:directory_site_id] unless args[:directory_site_id].nil? - @dynamic_tag = args[:dynamic_tag] unless args[:dynamic_tag].nil? - @site_id = args[:site_id] unless args[:site_id].nil? - @site_id_dimension_value = args[:site_id_dimension_value] unless args[:site_id_dimension_value].nil? - @view_through = args[:view_through] unless args[:view_through].nil? + @click_through = args[:click_through] if args.key?(:click_through) + @directory_site_id = args[:directory_site_id] if args.key?(:directory_site_id) + @dynamic_tag = args[:dynamic_tag] if args.key?(:dynamic_tag) + @site_id = args[:site_id] if args.key?(:site_id) + @site_id_dimension_value = args[:site_id_dimension_value] if args.key?(:site_id_dimension_value) + @view_through = args[:view_through] if args.key?(:view_through) end end @@ -5682,24 +5682,24 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] unless args[:advertiser_id_dimension_value].nil? - @analytics_data_sharing_enabled = args[:analytics_data_sharing_enabled] unless args[:analytics_data_sharing_enabled].nil? - @exposure_to_conversion_enabled = args[:exposure_to_conversion_enabled] unless args[:exposure_to_conversion_enabled].nil? - @first_day_of_week = args[:first_day_of_week] unless args[:first_day_of_week].nil? - @id = args[:id] unless args[:id].nil? - @id_dimension_value = args[:id_dimension_value] unless args[:id_dimension_value].nil? - @in_app_attribution_tracking_enabled = args[:in_app_attribution_tracking_enabled] unless args[:in_app_attribution_tracking_enabled].nil? - @kind = args[:kind] unless args[:kind].nil? - @lookback_configuration = args[:lookback_configuration] unless args[:lookback_configuration].nil? - @natural_search_conversion_attribution_option = args[:natural_search_conversion_attribution_option] unless args[:natural_search_conversion_attribution_option].nil? - @omniture_settings = args[:omniture_settings] unless args[:omniture_settings].nil? - @standard_variable_types = args[:standard_variable_types] unless args[:standard_variable_types].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? - @tag_settings = args[:tag_settings] unless args[:tag_settings].nil? - @third_party_authentication_tokens = args[:third_party_authentication_tokens] unless args[:third_party_authentication_tokens].nil? - @user_defined_variable_configurations = args[:user_defined_variable_configurations] unless args[:user_defined_variable_configurations].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @analytics_data_sharing_enabled = args[:analytics_data_sharing_enabled] if args.key?(:analytics_data_sharing_enabled) + @exposure_to_conversion_enabled = args[:exposure_to_conversion_enabled] if args.key?(:exposure_to_conversion_enabled) + @first_day_of_week = args[:first_day_of_week] if args.key?(:first_day_of_week) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @in_app_attribution_tracking_enabled = args[:in_app_attribution_tracking_enabled] if args.key?(:in_app_attribution_tracking_enabled) + @kind = args[:kind] if args.key?(:kind) + @lookback_configuration = args[:lookback_configuration] if args.key?(:lookback_configuration) + @natural_search_conversion_attribution_option = args[:natural_search_conversion_attribution_option] if args.key?(:natural_search_conversion_attribution_option) + @omniture_settings = args[:omniture_settings] if args.key?(:omniture_settings) + @standard_variable_types = args[:standard_variable_types] if args.key?(:standard_variable_types) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @tag_settings = args[:tag_settings] if args.key?(:tag_settings) + @third_party_authentication_tokens = args[:third_party_authentication_tokens] if args.key?(:third_party_authentication_tokens) + @user_defined_variable_configurations = args[:user_defined_variable_configurations] if args.key?(:user_defined_variable_configurations) end end @@ -5724,8 +5724,8 @@ module Google # Update properties of this object def update!(**args) - @floodlight_configurations = args[:floodlight_configurations] unless args[:floodlight_configurations].nil? - @kind = args[:kind] unless args[:kind].nil? + @floodlight_configurations = args[:floodlight_configurations] if args.key?(:floodlight_configurations) + @kind = args[:kind] if args.key?(:kind) end end @@ -5764,10 +5764,10 @@ module Google # Update properties of this object def update!(**args) - @dimension_filters = args[:dimension_filters] unless args[:dimension_filters].nil? - @dimensions = args[:dimensions] unless args[:dimensions].nil? - @kind = args[:kind] unless args[:kind].nil? - @metrics = args[:metrics] unless args[:metrics].nil? + @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @kind = args[:kind] if args.key?(:kind) + @metrics = args[:metrics] if args.key?(:metrics) end end @@ -5793,8 +5793,8 @@ module Google # Update properties of this object def update!(**args) - @duration = args[:duration] unless args[:duration].nil? - @impressions = args[:impressions] unless args[:impressions].nil? + @duration = args[:duration] if args.key?(:duration) + @impressions = args[:impressions] if args.key?(:impressions) end end @@ -5835,11 +5835,11 @@ module Google # Update properties of this object def update!(**args) - @left = args[:left] unless args[:left].nil? - @position_option = args[:position_option] unless args[:position_option].nil? - @top = args[:top] unless args[:top].nil? - @window_height = args[:window_height] unless args[:window_height].nil? - @window_width = args[:window_width] unless args[:window_width].nil? + @left = args[:left] if args.key?(:left) + @position_option = args[:position_option] if args.key?(:position_option) + @top = args[:top] if args.key?(:top) + @window_height = args[:window_height] if args.key?(:window_height) + @window_width = args[:window_width] if args.key?(:window_width) end end @@ -5900,12 +5900,12 @@ module Google # Update properties of this object def update!(**args) - @cities = args[:cities] unless args[:cities].nil? - @countries = args[:countries] unless args[:countries].nil? - @exclude_countries = args[:exclude_countries] unless args[:exclude_countries].nil? - @metros = args[:metros] unless args[:metros].nil? - @postal_codes = args[:postal_codes] unless args[:postal_codes].nil? - @regions = args[:regions] unless args[:regions].nil? + @cities = args[:cities] if args.key?(:cities) + @countries = args[:countries] if args.key?(:countries) + @exclude_countries = args[:exclude_countries] if args.key?(:exclude_countries) + @metros = args[:metros] if args.key?(:metros) + @postal_codes = args[:postal_codes] if args.key?(:postal_codes) + @regions = args[:regions] if args.key?(:regions) end end @@ -6021,25 +6021,25 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @ad_slots = args[:ad_slots] unless args[:ad_slots].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @content_category_id = args[:content_category_id] unless args[:content_category_id].nil? - @estimated_click_through_rate = args[:estimated_click_through_rate] unless args[:estimated_click_through_rate].nil? - @estimated_conversion_rate = args[:estimated_conversion_rate] unless args[:estimated_conversion_rate].nil? - @id = args[:id] unless args[:id].nil? - @in_plan = args[:in_plan] unless args[:in_plan].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_modified_info = args[:last_modified_info] unless args[:last_modified_info].nil? - @name = args[:name] unless args[:name].nil? - @negotiation_channel_id = args[:negotiation_channel_id] unless args[:negotiation_channel_id].nil? - @order_id = args[:order_id] unless args[:order_id].nil? - @placement_strategy_id = args[:placement_strategy_id] unless args[:placement_strategy_id].nil? - @pricing = args[:pricing] unless args[:pricing].nil? - @project_id = args[:project_id] unless args[:project_id].nil? - @rfp_id = args[:rfp_id] unless args[:rfp_id].nil? - @site_id = args[:site_id] unless args[:site_id].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @ad_slots = args[:ad_slots] if args.key?(:ad_slots) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @content_category_id = args[:content_category_id] if args.key?(:content_category_id) + @estimated_click_through_rate = args[:estimated_click_through_rate] if args.key?(:estimated_click_through_rate) + @estimated_conversion_rate = args[:estimated_conversion_rate] if args.key?(:estimated_conversion_rate) + @id = args[:id] if args.key?(:id) + @in_plan = args[:in_plan] if args.key?(:in_plan) + @kind = args[:kind] if args.key?(:kind) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @name = args[:name] if args.key?(:name) + @negotiation_channel_id = args[:negotiation_channel_id] if args.key?(:negotiation_channel_id) + @order_id = args[:order_id] if args.key?(:order_id) + @placement_strategy_id = args[:placement_strategy_id] if args.key?(:placement_strategy_id) + @pricing = args[:pricing] if args.key?(:pricing) + @project_id = args[:project_id] if args.key?(:project_id) + @rfp_id = args[:rfp_id] if args.key?(:rfp_id) + @site_id = args[:site_id] if args.key?(:site_id) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) end end @@ -6069,9 +6069,9 @@ module Google # Update properties of this object def update!(**args) - @inventory_items = args[:inventory_items] unless args[:inventory_items].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @inventory_items = args[:inventory_items] if args.key?(:inventory_items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -6090,7 +6090,7 @@ module Google # Update properties of this object def update!(**args) - @expression = args[:expression] unless args[:expression].nil? + @expression = args[:expression] if args.key?(:expression) end end @@ -6135,11 +6135,11 @@ module Google # Update properties of this object def update!(**args) - @default = args[:default] unless args[:default].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @url = args[:url] unless args[:url].nil? + @default = args[:default] if args.key?(:default) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @url = args[:url] if args.key?(:url) end end @@ -6164,8 +6164,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @landing_pages = args[:landing_pages] unless args[:landing_pages].nil? + @kind = args[:kind] if args.key?(:kind) + @landing_pages = args[:landing_pages] if args.key?(:landing_pages) end end @@ -6184,7 +6184,7 @@ module Google # Update properties of this object def update!(**args) - @time = args[:time] unless args[:time].nil? + @time = args[:time] if args.key?(:time) end end @@ -6205,7 +6205,7 @@ module Google # Update properties of this object def update!(**args) - @terms = args[:terms] unless args[:terms].nil? + @terms = args[:terms] if args.key?(:terms) end end @@ -6237,9 +6237,9 @@ module Google # Update properties of this object def update!(**args) - @floodlight_activity_id = args[:floodlight_activity_id] unless args[:floodlight_activity_id].nil? - @floodlight_activity_name = args[:floodlight_activity_name] unless args[:floodlight_activity_name].nil? - @list_population_clauses = args[:list_population_clauses] unless args[:list_population_clauses].nil? + @floodlight_activity_id = args[:floodlight_activity_id] if args.key?(:floodlight_activity_id) + @floodlight_activity_name = args[:floodlight_activity_name] if args.key?(:floodlight_activity_name) + @list_population_clauses = args[:list_population_clauses] if args.key?(:list_population_clauses) end end @@ -6309,14 +6309,14 @@ module Google # Update properties of this object def update!(**args) - @contains = args[:contains] unless args[:contains].nil? - @negation = args[:negation] unless args[:negation].nil? - @operator = args[:operator] unless args[:operator].nil? - @remarketing_list_id = args[:remarketing_list_id] unless args[:remarketing_list_id].nil? - @type = args[:type] unless args[:type].nil? - @value = args[:value] unless args[:value].nil? - @variable_friendly_name = args[:variable_friendly_name] unless args[:variable_friendly_name].nil? - @variable_name = args[:variable_name] unless args[:variable_name].nil? + @contains = args[:contains] if args.key?(:contains) + @negation = args[:negation] if args.key?(:negation) + @operator = args[:operator] if args.key?(:operator) + @remarketing_list_id = args[:remarketing_list_id] if args.key?(:remarketing_list_id) + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) + @variable_friendly_name = args[:variable_friendly_name] if args.key?(:variable_friendly_name) + @variable_name = args[:variable_name] if args.key?(:variable_name) end end @@ -6335,7 +6335,7 @@ module Google # Update properties of this object def update!(**args) - @expression = args[:expression] unless args[:expression].nil? + @expression = args[:expression] if args.key?(:expression) end end @@ -6365,8 +6365,8 @@ module Google # Update properties of this object def update!(**args) - @click_duration = args[:click_duration] unless args[:click_duration].nil? - @post_impression_activities_duration = args[:post_impression_activities_duration] unless args[:post_impression_activities_duration].nil? + @click_duration = args[:click_duration] if args.key?(:click_duration) + @post_impression_activities_duration = args[:post_impression_activities_duration] if args.key?(:post_impression_activities_duration) end end @@ -6390,8 +6390,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -6442,13 +6442,13 @@ module Google # Update properties of this object def update!(**args) - @country_code = args[:country_code] unless args[:country_code].nil? - @country_dart_id = args[:country_dart_id] unless args[:country_dart_id].nil? - @dart_id = args[:dart_id] unless args[:dart_id].nil? - @dma_id = args[:dma_id] unless args[:dma_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @metro_code = args[:metro_code] unless args[:metro_code].nil? - @name = args[:name] unless args[:name].nil? + @country_code = args[:country_code] if args.key?(:country_code) + @country_dart_id = args[:country_dart_id] if args.key?(:country_dart_id) + @dart_id = args[:dart_id] if args.key?(:dart_id) + @dma_id = args[:dma_id] if args.key?(:dma_id) + @kind = args[:kind] if args.key?(:kind) + @metro_code = args[:metro_code] if args.key?(:metro_code) + @name = args[:name] if args.key?(:name) end end @@ -6473,8 +6473,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @metros = args[:metros] unless args[:metros].nil? + @kind = args[:kind] if args.key?(:kind) + @metros = args[:metros] if args.key?(:metros) end end @@ -6514,11 +6514,11 @@ module Google # Update properties of this object def update!(**args) - @country_code = args[:country_code] unless args[:country_code].nil? - @country_dart_id = args[:country_dart_id] unless args[:country_dart_id].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @country_code = args[:country_code] if args.key?(:country_code) + @country_dart_id = args[:country_dart_id] if args.key?(:country_dart_id) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -6543,8 +6543,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @mobile_carriers = args[:mobile_carriers] unless args[:mobile_carriers].nil? + @kind = args[:kind] if args.key?(:kind) + @mobile_carriers = args[:mobile_carriers] if args.key?(:mobile_carriers) end end @@ -6577,9 +6577,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @object_ids = args[:object_ids] unless args[:object_ids].nil? - @status = args[:status] unless args[:status].nil? + @kind = args[:kind] if args.key?(:kind) + @object_ids = args[:object_ids] if args.key?(:object_ids) + @status = args[:status] if args.key?(:status) end end @@ -6603,8 +6603,8 @@ module Google # Update properties of this object def update!(**args) - @left = args[:left] unless args[:left].nil? - @top = args[:top] unless args[:top].nil? + @left = args[:left] if args.key?(:left) + @top = args[:top] if args.key?(:top) end end @@ -6632,8 +6632,8 @@ module Google # Update properties of this object def update!(**args) - @omniture_cost_data_enabled = args[:omniture_cost_data_enabled] unless args[:omniture_cost_data_enabled].nil? - @omniture_integration_enabled = args[:omniture_integration_enabled] unless args[:omniture_integration_enabled].nil? + @omniture_cost_data_enabled = args[:omniture_cost_data_enabled] if args.key?(:omniture_cost_data_enabled) + @omniture_integration_enabled = args[:omniture_integration_enabled] if args.key?(:omniture_integration_enabled) end end @@ -6675,11 +6675,11 @@ module Google # Update properties of this object def update!(**args) - @dart_id = args[:dart_id] unless args[:dart_id].nil? - @desktop = args[:desktop] unless args[:desktop].nil? - @kind = args[:kind] unless args[:kind].nil? - @mobile = args[:mobile] unless args[:mobile].nil? - @name = args[:name] unless args[:name].nil? + @dart_id = args[:dart_id] if args.key?(:dart_id) + @desktop = args[:desktop] if args.key?(:desktop) + @kind = args[:kind] if args.key?(:kind) + @mobile = args[:mobile] if args.key?(:mobile) + @name = args[:name] if args.key?(:name) end end @@ -6725,12 +6725,12 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @major_version = args[:major_version] unless args[:major_version].nil? - @minor_version = args[:minor_version] unless args[:minor_version].nil? - @name = args[:name] unless args[:name].nil? - @operating_system = args[:operating_system] unless args[:operating_system].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @major_version = args[:major_version] if args.key?(:major_version) + @minor_version = args[:minor_version] if args.key?(:minor_version) + @name = args[:name] if args.key?(:name) + @operating_system = args[:operating_system] if args.key?(:operating_system) end end @@ -6755,8 +6755,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @operating_system_versions = args[:operating_system_versions] unless args[:operating_system_versions].nil? + @kind = args[:kind] if args.key?(:kind) + @operating_system_versions = args[:operating_system_versions] if args.key?(:operating_system_versions) end end @@ -6781,8 +6781,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @operating_systems = args[:operating_systems] unless args[:operating_systems].nil? + @kind = args[:kind] if args.key?(:kind) + @operating_systems = args[:operating_systems] if args.key?(:operating_systems) end end @@ -6813,9 +6813,9 @@ module Google # Update properties of this object def update!(**args) - @floodlight_activity_id = args[:floodlight_activity_id] unless args[:floodlight_activity_id].nil? - @floodlight_activity_id_dimension_value = args[:floodlight_activity_id_dimension_value] unless args[:floodlight_activity_id_dimension_value].nil? - @weight = args[:weight] unless args[:weight].nil? + @floodlight_activity_id = args[:floodlight_activity_id] if args.key?(:floodlight_activity_id) + @floodlight_activity_id_dimension_value = args[:floodlight_activity_id_dimension_value] if args.key?(:floodlight_activity_id_dimension_value) + @weight = args[:weight] if args.key?(:weight) end end @@ -6930,26 +6930,26 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @approver_user_profile_ids = args[:approver_user_profile_ids] unless args[:approver_user_profile_ids].nil? - @buyer_invoice_id = args[:buyer_invoice_id] unless args[:buyer_invoice_id].nil? - @buyer_organization_name = args[:buyer_organization_name] unless args[:buyer_organization_name].nil? - @comments = args[:comments] unless args[:comments].nil? - @contacts = args[:contacts] unless args[:contacts].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_modified_info = args[:last_modified_info] unless args[:last_modified_info].nil? - @name = args[:name] unless args[:name].nil? - @notes = args[:notes] unless args[:notes].nil? - @planning_term_id = args[:planning_term_id] unless args[:planning_term_id].nil? - @project_id = args[:project_id] unless args[:project_id].nil? - @seller_order_id = args[:seller_order_id] unless args[:seller_order_id].nil? - @seller_organization_name = args[:seller_organization_name] unless args[:seller_organization_name].nil? - @site_id = args[:site_id] unless args[:site_id].nil? - @site_names = args[:site_names] unless args[:site_names].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? - @terms_and_conditions = args[:terms_and_conditions] unless args[:terms_and_conditions].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @approver_user_profile_ids = args[:approver_user_profile_ids] if args.key?(:approver_user_profile_ids) + @buyer_invoice_id = args[:buyer_invoice_id] if args.key?(:buyer_invoice_id) + @buyer_organization_name = args[:buyer_organization_name] if args.key?(:buyer_organization_name) + @comments = args[:comments] if args.key?(:comments) + @contacts = args[:contacts] if args.key?(:contacts) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @name = args[:name] if args.key?(:name) + @notes = args[:notes] if args.key?(:notes) + @planning_term_id = args[:planning_term_id] if args.key?(:planning_term_id) + @project_id = args[:project_id] if args.key?(:project_id) + @seller_order_id = args[:seller_order_id] if args.key?(:seller_order_id) + @seller_organization_name = args[:seller_organization_name] if args.key?(:seller_organization_name) + @site_id = args[:site_id] if args.key?(:site_id) + @site_names = args[:site_names] if args.key?(:site_names) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @terms_and_conditions = args[:terms_and_conditions] if args.key?(:terms_and_conditions) end end @@ -6991,11 +6991,11 @@ module Google # Update properties of this object def update!(**args) - @contact_info = args[:contact_info] unless args[:contact_info].nil? - @contact_name = args[:contact_name] unless args[:contact_name].nil? - @contact_title = args[:contact_title] unless args[:contact_title].nil? - @contact_type = args[:contact_type] unless args[:contact_type].nil? - @signature_user_profile_id = args[:signature_user_profile_id] unless args[:signature_user_profile_id].nil? + @contact_info = args[:contact_info] if args.key?(:contact_info) + @contact_name = args[:contact_name] if args.key?(:contact_name) + @contact_title = args[:contact_title] if args.key?(:contact_title) + @contact_type = args[:contact_type] if args.key?(:contact_type) + @signature_user_profile_id = args[:signature_user_profile_id] if args.key?(:signature_user_profile_id) end end @@ -7099,23 +7099,23 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @amended_order_document_id = args[:amended_order_document_id] unless args[:amended_order_document_id].nil? - @approved_by_user_profile_ids = args[:approved_by_user_profile_ids] unless args[:approved_by_user_profile_ids].nil? - @cancelled = args[:cancelled] unless args[:cancelled].nil? - @created_info = args[:created_info] unless args[:created_info].nil? - @effective_date = args[:effective_date] unless args[:effective_date].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_sent_recipients = args[:last_sent_recipients] unless args[:last_sent_recipients].nil? - @last_sent_time = args[:last_sent_time] unless args[:last_sent_time].nil? - @order_id = args[:order_id] unless args[:order_id].nil? - @project_id = args[:project_id] unless args[:project_id].nil? - @signed = args[:signed] unless args[:signed].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? - @title = args[:title] unless args[:title].nil? - @type = args[:type] unless args[:type].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @amended_order_document_id = args[:amended_order_document_id] if args.key?(:amended_order_document_id) + @approved_by_user_profile_ids = args[:approved_by_user_profile_ids] if args.key?(:approved_by_user_profile_ids) + @cancelled = args[:cancelled] if args.key?(:cancelled) + @created_info = args[:created_info] if args.key?(:created_info) + @effective_date = args[:effective_date] if args.key?(:effective_date) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @last_sent_recipients = args[:last_sent_recipients] if args.key?(:last_sent_recipients) + @last_sent_time = args[:last_sent_time] if args.key?(:last_sent_time) + @order_id = args[:order_id] if args.key?(:order_id) + @project_id = args[:project_id] if args.key?(:project_id) + @signed = args[:signed] if args.key?(:signed) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @title = args[:title] if args.key?(:title) + @type = args[:type] if args.key?(:type) end end @@ -7145,9 +7145,9 @@ module Google # 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? - @order_documents = args[:order_documents] unless args[:order_documents].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @order_documents = args[:order_documents] if args.key?(:order_documents) end end @@ -7177,9 +7177,9 @@ module Google # 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? - @orders = args[:orders] unless args[:orders].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @orders = args[:orders] if args.key?(:orders) end end @@ -7224,11 +7224,11 @@ module Google # Update properties of this object def update!(**args) - @conversion_dimensions = args[:conversion_dimensions] unless args[:conversion_dimensions].nil? - @custom_floodlight_variables = args[:custom_floodlight_variables] unless args[:custom_floodlight_variables].nil? - @kind = args[:kind] unless args[:kind].nil? - @metrics = args[:metrics] unless args[:metrics].nil? - @per_interaction_dimensions = args[:per_interaction_dimensions] unless args[:per_interaction_dimensions].nil? + @conversion_dimensions = args[:conversion_dimensions] if args.key?(:conversion_dimensions) + @custom_floodlight_variables = args[:custom_floodlight_variables] if args.key?(:custom_floodlight_variables) + @kind = args[:kind] if args.key?(:kind) + @metrics = args[:metrics] if args.key?(:metrics) + @per_interaction_dimensions = args[:per_interaction_dimensions] if args.key?(:per_interaction_dimensions) end end @@ -7457,42 +7457,42 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] unless args[:advertiser_id_dimension_value].nil? - @archived = args[:archived] unless args[:archived].nil? - @campaign_id = args[:campaign_id] unless args[:campaign_id].nil? - @campaign_id_dimension_value = args[:campaign_id_dimension_value] unless args[:campaign_id_dimension_value].nil? - @comment = args[:comment] unless args[:comment].nil? - @compatibility = args[:compatibility] unless args[:compatibility].nil? - @content_category_id = args[:content_category_id] unless args[:content_category_id].nil? - @create_info = args[:create_info] unless args[:create_info].nil? - @directory_site_id = args[:directory_site_id] unless args[:directory_site_id].nil? - @directory_site_id_dimension_value = args[:directory_site_id_dimension_value] unless args[:directory_site_id_dimension_value].nil? - @external_id = args[:external_id] unless args[:external_id].nil? - @id = args[:id] unless args[:id].nil? - @id_dimension_value = args[:id_dimension_value] unless args[:id_dimension_value].nil? - @key_name = args[:key_name] unless args[:key_name].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_modified_info = args[:last_modified_info] unless args[:last_modified_info].nil? - @lookback_configuration = args[:lookback_configuration] unless args[:lookback_configuration].nil? - @name = args[:name] unless args[:name].nil? - @payment_approved = args[:payment_approved] unless args[:payment_approved].nil? - @payment_source = args[:payment_source] unless args[:payment_source].nil? - @placement_group_id = args[:placement_group_id] unless args[:placement_group_id].nil? - @placement_group_id_dimension_value = args[:placement_group_id_dimension_value] unless args[:placement_group_id_dimension_value].nil? - @placement_strategy_id = args[:placement_strategy_id] unless args[:placement_strategy_id].nil? - @pricing_schedule = args[:pricing_schedule] unless args[:pricing_schedule].nil? - @primary = args[:primary] unless args[:primary].nil? - @publisher_update_info = args[:publisher_update_info] unless args[:publisher_update_info].nil? - @site_id = args[:site_id] unless args[:site_id].nil? - @site_id_dimension_value = args[:site_id_dimension_value] unless args[:site_id_dimension_value].nil? - @size = args[:size] unless args[:size].nil? - @ssl_required = args[:ssl_required] unless args[:ssl_required].nil? - @status = args[:status] unless args[:status].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? - @tag_formats = args[:tag_formats] unless args[:tag_formats].nil? - @tag_setting = args[:tag_setting] unless args[:tag_setting].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @archived = args[:archived] if args.key?(:archived) + @campaign_id = args[:campaign_id] if args.key?(:campaign_id) + @campaign_id_dimension_value = args[:campaign_id_dimension_value] if args.key?(:campaign_id_dimension_value) + @comment = args[:comment] if args.key?(:comment) + @compatibility = args[:compatibility] if args.key?(:compatibility) + @content_category_id = args[:content_category_id] if args.key?(:content_category_id) + @create_info = args[:create_info] if args.key?(:create_info) + @directory_site_id = args[:directory_site_id] if args.key?(:directory_site_id) + @directory_site_id_dimension_value = args[:directory_site_id_dimension_value] if args.key?(:directory_site_id_dimension_value) + @external_id = args[:external_id] if args.key?(:external_id) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @key_name = args[:key_name] if args.key?(:key_name) + @kind = args[:kind] if args.key?(:kind) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @lookback_configuration = args[:lookback_configuration] if args.key?(:lookback_configuration) + @name = args[:name] if args.key?(:name) + @payment_approved = args[:payment_approved] if args.key?(:payment_approved) + @payment_source = args[:payment_source] if args.key?(:payment_source) + @placement_group_id = args[:placement_group_id] if args.key?(:placement_group_id) + @placement_group_id_dimension_value = args[:placement_group_id_dimension_value] if args.key?(:placement_group_id_dimension_value) + @placement_strategy_id = args[:placement_strategy_id] if args.key?(:placement_strategy_id) + @pricing_schedule = args[:pricing_schedule] if args.key?(:pricing_schedule) + @primary = args[:primary] if args.key?(:primary) + @publisher_update_info = args[:publisher_update_info] if args.key?(:publisher_update_info) + @site_id = args[:site_id] if args.key?(:site_id) + @site_id_dimension_value = args[:site_id_dimension_value] if args.key?(:site_id_dimension_value) + @size = args[:size] if args.key?(:size) + @ssl_required = args[:ssl_required] if args.key?(:ssl_required) + @status = args[:status] if args.key?(:status) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @tag_formats = args[:tag_formats] if args.key?(:tag_formats) + @tag_setting = args[:tag_setting] if args.key?(:tag_setting) end end @@ -7530,10 +7530,10 @@ module Google # Update properties of this object def update!(**args) - @active = args[:active] unless args[:active].nil? - @placement_id = args[:placement_id] unless args[:placement_id].nil? - @placement_id_dimension_value = args[:placement_id_dimension_value] unless args[:placement_id_dimension_value].nil? - @ssl_required = args[:ssl_required] unless args[:ssl_required].nil? + @active = args[:active] if args.key?(:active) + @placement_id = args[:placement_id] if args.key?(:placement_id) + @placement_id_dimension_value = args[:placement_id_dimension_value] if args.key?(:placement_id_dimension_value) + @ssl_required = args[:ssl_required] if args.key?(:ssl_required) end end @@ -7696,32 +7696,32 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] unless args[:advertiser_id_dimension_value].nil? - @archived = args[:archived] unless args[:archived].nil? - @campaign_id = args[:campaign_id] unless args[:campaign_id].nil? - @campaign_id_dimension_value = args[:campaign_id_dimension_value] unless args[:campaign_id_dimension_value].nil? - @child_placement_ids = args[:child_placement_ids] unless args[:child_placement_ids].nil? - @comment = args[:comment] unless args[:comment].nil? - @content_category_id = args[:content_category_id] unless args[:content_category_id].nil? - @create_info = args[:create_info] unless args[:create_info].nil? - @directory_site_id = args[:directory_site_id] unless args[:directory_site_id].nil? - @directory_site_id_dimension_value = args[:directory_site_id_dimension_value] unless args[:directory_site_id_dimension_value].nil? - @external_id = args[:external_id] unless args[:external_id].nil? - @id = args[:id] unless args[:id].nil? - @id_dimension_value = args[:id_dimension_value] unless args[:id_dimension_value].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_modified_info = args[:last_modified_info] unless args[:last_modified_info].nil? - @name = args[:name] unless args[:name].nil? - @placement_group_type = args[:placement_group_type] unless args[:placement_group_type].nil? - @placement_strategy_id = args[:placement_strategy_id] unless args[:placement_strategy_id].nil? - @pricing_schedule = args[:pricing_schedule] unless args[:pricing_schedule].nil? - @primary_placement_id = args[:primary_placement_id] unless args[:primary_placement_id].nil? - @primary_placement_id_dimension_value = args[:primary_placement_id_dimension_value] unless args[:primary_placement_id_dimension_value].nil? - @site_id = args[:site_id] unless args[:site_id].nil? - @site_id_dimension_value = args[:site_id_dimension_value] unless args[:site_id_dimension_value].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @archived = args[:archived] if args.key?(:archived) + @campaign_id = args[:campaign_id] if args.key?(:campaign_id) + @campaign_id_dimension_value = args[:campaign_id_dimension_value] if args.key?(:campaign_id_dimension_value) + @child_placement_ids = args[:child_placement_ids] if args.key?(:child_placement_ids) + @comment = args[:comment] if args.key?(:comment) + @content_category_id = args[:content_category_id] if args.key?(:content_category_id) + @create_info = args[:create_info] if args.key?(:create_info) + @directory_site_id = args[:directory_site_id] if args.key?(:directory_site_id) + @directory_site_id_dimension_value = args[:directory_site_id_dimension_value] if args.key?(:directory_site_id_dimension_value) + @external_id = args[:external_id] if args.key?(:external_id) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @kind = args[:kind] if args.key?(:kind) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @name = args[:name] if args.key?(:name) + @placement_group_type = args[:placement_group_type] if args.key?(:placement_group_type) + @placement_strategy_id = args[:placement_strategy_id] if args.key?(:placement_strategy_id) + @pricing_schedule = args[:pricing_schedule] if args.key?(:pricing_schedule) + @primary_placement_id = args[:primary_placement_id] if args.key?(:primary_placement_id) + @primary_placement_id_dimension_value = args[:primary_placement_id_dimension_value] if args.key?(:primary_placement_id_dimension_value) + @site_id = args[:site_id] if args.key?(:site_id) + @site_id_dimension_value = args[:site_id_dimension_value] if args.key?(:site_id_dimension_value) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) end end @@ -7751,9 +7751,9 @@ module Google # 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? - @placement_groups = args[:placement_groups] unless args[:placement_groups].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @placement_groups = args[:placement_groups] if args.key?(:placement_groups) end end @@ -7783,9 +7783,9 @@ module Google # 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? - @placement_strategies = args[:placement_strategies] unless args[:placement_strategies].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @placement_strategies = args[:placement_strategies] if args.key?(:placement_strategies) end end @@ -7823,10 +7823,10 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -7850,8 +7850,8 @@ module Google # Update properties of this object def update!(**args) - @placement_id = args[:placement_id] unless args[:placement_id].nil? - @tag_datas = args[:tag_datas] unless args[:tag_datas].nil? + @placement_id = args[:placement_id] if args.key?(:placement_id) + @tag_datas = args[:tag_datas] if args.key?(:tag_datas) end end @@ -7876,8 +7876,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @placement_tags = args[:placement_tags] unless args[:placement_tags].nil? + @kind = args[:kind] if args.key?(:kind) + @placement_tags = args[:placement_tags] if args.key?(:placement_tags) end end @@ -7907,9 +7907,9 @@ module Google # 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? - @placements = args[:placements] unless args[:placements].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @placements = args[:placements] if args.key?(:placements) end end @@ -7939,9 +7939,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -7966,8 +7966,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @platform_types = args[:platform_types] unless args[:platform_types].nil? + @kind = args[:kind] if args.key?(:kind) + @platform_types = args[:platform_types] if args.key?(:platform_types) end end @@ -8031,15 +8031,15 @@ module Google # Update properties of this object def update!(**args) - @dimension = args[:dimension] unless args[:dimension].nil? - @offset = args[:offset] unless args[:offset].nil? - @position_type = args[:position_type] unless args[:position_type].nil? - @show_address_bar = args[:show_address_bar] unless args[:show_address_bar].nil? - @show_menu_bar = args[:show_menu_bar] unless args[:show_menu_bar].nil? - @show_scroll_bar = args[:show_scroll_bar] unless args[:show_scroll_bar].nil? - @show_status_bar = args[:show_status_bar] unless args[:show_status_bar].nil? - @show_tool_bar = args[:show_tool_bar] unless args[:show_tool_bar].nil? - @title = args[:title] unless args[:title].nil? + @dimension = args[:dimension] if args.key?(:dimension) + @offset = args[:offset] if args.key?(:offset) + @position_type = args[:position_type] if args.key?(:position_type) + @show_address_bar = args[:show_address_bar] if args.key?(:show_address_bar) + @show_menu_bar = args[:show_menu_bar] if args.key?(:show_menu_bar) + @show_scroll_bar = args[:show_scroll_bar] if args.key?(:show_scroll_bar) + @show_status_bar = args[:show_status_bar] if args.key?(:show_status_bar) + @show_tool_bar = args[:show_tool_bar] if args.key?(:show_tool_bar) + @title = args[:title] if args.key?(:title) end end @@ -8079,11 +8079,11 @@ module Google # Update properties of this object def update!(**args) - @code = args[:code] unless args[:code].nil? - @country_code = args[:country_code] unless args[:country_code].nil? - @country_dart_id = args[:country_dart_id] unless args[:country_dart_id].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? + @code = args[:code] if args.key?(:code) + @country_code = args[:country_code] if args.key?(:country_code) + @country_dart_id = args[:country_dart_id] if args.key?(:country_dart_id) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) end end @@ -8108,8 +8108,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @postal_codes = args[:postal_codes] unless args[:postal_codes].nil? + @kind = args[:kind] if args.key?(:kind) + @postal_codes = args[:postal_codes] if args.key?(:postal_codes) end end @@ -8161,12 +8161,12 @@ module Google # Update properties of this object def update!(**args) - @cap_cost_type = args[:cap_cost_type] unless args[:cap_cost_type].nil? - @end_date = args[:end_date] unless args[:end_date].nil? - @flights = args[:flights] unless args[:flights].nil? - @group_type = args[:group_type] unless args[:group_type].nil? - @pricing_type = args[:pricing_type] unless args[:pricing_type].nil? - @start_date = args[:start_date] unless args[:start_date].nil? + @cap_cost_type = args[:cap_cost_type] if args.key?(:cap_cost_type) + @end_date = args[:end_date] if args.key?(:end_date) + @flights = args[:flights] if args.key?(:flights) + @group_type = args[:group_type] if args.key?(:group_type) + @pricing_type = args[:pricing_type] if args.key?(:pricing_type) + @start_date = args[:start_date] if args.key?(:start_date) end end @@ -8238,15 +8238,15 @@ module Google # Update properties of this object def update!(**args) - @cap_cost_option = args[:cap_cost_option] unless args[:cap_cost_option].nil? - @disregard_overdelivery = args[:disregard_overdelivery] unless args[:disregard_overdelivery].nil? - @end_date = args[:end_date] unless args[:end_date].nil? - @flighted = args[:flighted] unless args[:flighted].nil? - @floodlight_activity_id = args[:floodlight_activity_id] unless args[:floodlight_activity_id].nil? - @pricing_periods = args[:pricing_periods] unless args[:pricing_periods].nil? - @pricing_type = args[:pricing_type] unless args[:pricing_type].nil? - @start_date = args[:start_date] unless args[:start_date].nil? - @testing_start_date = args[:testing_start_date] unless args[:testing_start_date].nil? + @cap_cost_option = args[:cap_cost_option] if args.key?(:cap_cost_option) + @disregard_overdelivery = args[:disregard_overdelivery] if args.key?(:disregard_overdelivery) + @end_date = args[:end_date] if args.key?(:end_date) + @flighted = args[:flighted] if args.key?(:flighted) + @floodlight_activity_id = args[:floodlight_activity_id] if args.key?(:floodlight_activity_id) + @pricing_periods = args[:pricing_periods] if args.key?(:pricing_periods) + @pricing_type = args[:pricing_type] if args.key?(:pricing_type) + @start_date = args[:start_date] if args.key?(:start_date) + @testing_start_date = args[:testing_start_date] if args.key?(:testing_start_date) end end @@ -8292,11 +8292,11 @@ module Google # Update properties of this object def update!(**args) - @end_date = args[:end_date] unless args[:end_date].nil? - @pricing_comment = args[:pricing_comment] unless args[:pricing_comment].nil? - @rate_or_cost_nanos = args[:rate_or_cost_nanos] unless args[:rate_or_cost_nanos].nil? - @start_date = args[:start_date] unless args[:start_date].nil? - @units = args[:units] unless args[:units].nil? + @end_date = args[:end_date] if args.key?(:end_date) + @pricing_comment = args[:pricing_comment] if args.key?(:pricing_comment) + @rate_or_cost_nanos = args[:rate_or_cost_nanos] if args.key?(:rate_or_cost_nanos) + @start_date = args[:start_date] if args.key?(:start_date) + @units = args[:units] if args.key?(:units) end end @@ -8419,27 +8419,27 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @audience_age_group = args[:audience_age_group] unless args[:audience_age_group].nil? - @audience_gender = args[:audience_gender] unless args[:audience_gender].nil? - @budget = args[:budget] unless args[:budget].nil? - @client_billing_code = args[:client_billing_code] unless args[:client_billing_code].nil? - @client_name = args[:client_name] unless args[:client_name].nil? - @end_date = args[:end_date] unless args[:end_date].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_modified_info = args[:last_modified_info] unless args[:last_modified_info].nil? - @name = args[:name] unless args[:name].nil? - @overview = args[:overview] unless args[:overview].nil? - @start_date = args[:start_date] unless args[:start_date].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? - @target_clicks = args[:target_clicks] unless args[:target_clicks].nil? - @target_conversions = args[:target_conversions] unless args[:target_conversions].nil? - @target_cpa_nanos = args[:target_cpa_nanos] unless args[:target_cpa_nanos].nil? - @target_cpc_nanos = args[:target_cpc_nanos] unless args[:target_cpc_nanos].nil? - @target_cpm_nanos = args[:target_cpm_nanos] unless args[:target_cpm_nanos].nil? - @target_impressions = args[:target_impressions] unless args[:target_impressions].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @audience_age_group = args[:audience_age_group] if args.key?(:audience_age_group) + @audience_gender = args[:audience_gender] if args.key?(:audience_gender) + @budget = args[:budget] if args.key?(:budget) + @client_billing_code = args[:client_billing_code] if args.key?(:client_billing_code) + @client_name = args[:client_name] if args.key?(:client_name) + @end_date = args[:end_date] if args.key?(:end_date) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @name = args[:name] if args.key?(:name) + @overview = args[:overview] if args.key?(:overview) + @start_date = args[:start_date] if args.key?(:start_date) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) + @target_clicks = args[:target_clicks] if args.key?(:target_clicks) + @target_conversions = args[:target_conversions] if args.key?(:target_conversions) + @target_cpa_nanos = args[:target_cpa_nanos] if args.key?(:target_cpa_nanos) + @target_cpc_nanos = args[:target_cpc_nanos] if args.key?(:target_cpc_nanos) + @target_cpm_nanos = args[:target_cpm_nanos] if args.key?(:target_cpm_nanos) + @target_impressions = args[:target_impressions] if args.key?(:target_impressions) end end @@ -8469,9 +8469,9 @@ module Google # 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? - @projects = args[:projects] unless args[:projects].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @projects = args[:projects] if args.key?(:projects) end end @@ -8522,12 +8522,12 @@ module Google # Update properties of this object def update!(**args) - @dimension_filters = args[:dimension_filters] unless args[:dimension_filters].nil? - @dimensions = args[:dimensions] unless args[:dimensions].nil? - @kind = args[:kind] unless args[:kind].nil? - @metrics = args[:metrics] unless args[:metrics].nil? - @pivoted_activity_metrics = args[:pivoted_activity_metrics] unless args[:pivoted_activity_metrics].nil? - @reach_by_frequency_metrics = args[:reach_by_frequency_metrics] unless args[:reach_by_frequency_metrics].nil? + @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @kind = args[:kind] if args.key?(:kind) + @metrics = args[:metrics] if args.key?(:metrics) + @pivoted_activity_metrics = args[:pivoted_activity_metrics] if args.key?(:pivoted_activity_metrics) + @reach_by_frequency_metrics = args[:reach_by_frequency_metrics] if args.key?(:reach_by_frequency_metrics) end end @@ -8556,9 +8556,9 @@ module Google # Update properties of this object def update!(**args) - @delivery_type = args[:delivery_type] unless args[:delivery_type].nil? - @email = args[:email] unless args[:email].nil? - @kind = args[:kind] unless args[:kind].nil? + @delivery_type = args[:delivery_type] if args.key?(:delivery_type) + @email = args[:email] if args.key?(:email) + @kind = args[:kind] if args.key?(:kind) end end @@ -8603,12 +8603,12 @@ module Google # Update properties of this object def update!(**args) - @country_code = args[:country_code] unless args[:country_code].nil? - @country_dart_id = args[:country_dart_id] unless args[:country_dart_id].nil? - @dart_id = args[:dart_id] unless args[:dart_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @region_code = args[:region_code] unless args[:region_code].nil? + @country_code = args[:country_code] if args.key?(:country_code) + @country_dart_id = args[:country_dart_id] if args.key?(:country_dart_id) + @dart_id = args[:dart_id] if args.key?(:dart_id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @region_code = args[:region_code] if args.key?(:region_code) end end @@ -8633,8 +8633,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @regions = args[:regions] unless args[:regions].nil? + @kind = args[:kind] if args.key?(:kind) + @regions = args[:regions] if args.key?(:regions) end end @@ -8725,19 +8725,19 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @active = args[:active] unless args[:active].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] unless args[:advertiser_id_dimension_value].nil? - @description = args[:description] unless args[:description].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @life_span = args[:life_span] unless args[:life_span].nil? - @list_population_rule = args[:list_population_rule] unless args[:list_population_rule].nil? - @list_size = args[:list_size] unless args[:list_size].nil? - @list_source = args[:list_source] unless args[:list_source].nil? - @name = args[:name] unless args[:name].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @active = args[:active] if args.key?(:active) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @life_span = args[:life_span] if args.key?(:life_span) + @list_population_rule = args[:list_population_rule] if args.key?(:list_population_rule) + @list_size = args[:list_size] if args.key?(:list_size) + @list_source = args[:list_source] if args.key?(:list_source) + @name = args[:name] if args.key?(:name) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) end end @@ -8775,10 +8775,10 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @remarketing_list_id = args[:remarketing_list_id] unless args[:remarketing_list_id].nil? - @shared_account_ids = args[:shared_account_ids] unless args[:shared_account_ids].nil? - @shared_advertiser_ids = args[:shared_advertiser_ids] unless args[:shared_advertiser_ids].nil? + @kind = args[:kind] if args.key?(:kind) + @remarketing_list_id = args[:remarketing_list_id] if args.key?(:remarketing_list_id) + @shared_account_ids = args[:shared_account_ids] if args.key?(:shared_account_ids) + @shared_advertiser_ids = args[:shared_advertiser_ids] if args.key?(:shared_advertiser_ids) end end @@ -8808,9 +8808,9 @@ module Google # 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? - @remarketing_lists = args[:remarketing_lists] unless args[:remarketing_lists].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @remarketing_lists = args[:remarketing_lists] if args.key?(:remarketing_lists) end end @@ -8919,24 +8919,24 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @criteria = args[:criteria] unless args[:criteria].nil? - @cross_dimension_reach_criteria = args[:cross_dimension_reach_criteria] unless args[:cross_dimension_reach_criteria].nil? - @delivery = args[:delivery] unless args[:delivery].nil? - @etag = args[:etag] unless args[:etag].nil? - @file_name = args[:file_name] unless args[:file_name].nil? - @floodlight_criteria = args[:floodlight_criteria] unless args[:floodlight_criteria].nil? - @format = args[:format] unless args[:format].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_modified_time = args[:last_modified_time] unless args[:last_modified_time].nil? - @name = args[:name] unless args[:name].nil? - @owner_profile_id = args[:owner_profile_id] unless args[:owner_profile_id].nil? - @path_to_conversion_criteria = args[:path_to_conversion_criteria] unless args[:path_to_conversion_criteria].nil? - @reach_criteria = args[:reach_criteria] unless args[:reach_criteria].nil? - @schedule = args[:schedule] unless args[:schedule].nil? - @sub_account_id = args[:sub_account_id] unless args[:sub_account_id].nil? - @type = args[:type] unless args[:type].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @criteria = args[:criteria] if args.key?(:criteria) + @cross_dimension_reach_criteria = args[:cross_dimension_reach_criteria] if args.key?(:cross_dimension_reach_criteria) + @delivery = args[:delivery] if args.key?(:delivery) + @etag = args[:etag] if args.key?(:etag) + @file_name = args[:file_name] if args.key?(:file_name) + @floodlight_criteria = args[:floodlight_criteria] if args.key?(:floodlight_criteria) + @format = args[:format] if args.key?(:format) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) + @name = args[:name] if args.key?(:name) + @owner_profile_id = args[:owner_profile_id] if args.key?(:owner_profile_id) + @path_to_conversion_criteria = args[:path_to_conversion_criteria] if args.key?(:path_to_conversion_criteria) + @reach_criteria = args[:reach_criteria] if args.key?(:reach_criteria) + @schedule = args[:schedule] if args.key?(:schedule) + @sub_account_id = args[:sub_account_id] if args.key?(:sub_account_id) + @type = args[:type] if args.key?(:type) end # The report criteria for a report of type "STANDARD". @@ -8981,12 +8981,12 @@ module Google # Update properties of this object def update!(**args) - @activities = args[:activities] unless args[:activities].nil? - @custom_rich_media_events = args[:custom_rich_media_events] unless args[:custom_rich_media_events].nil? - @date_range = args[:date_range] unless args[:date_range].nil? - @dimension_filters = args[:dimension_filters] unless args[:dimension_filters].nil? - @dimensions = args[:dimensions] unless args[:dimensions].nil? - @metric_names = args[:metric_names] unless args[:metric_names].nil? + @activities = args[:activities] if args.key?(:activities) + @custom_rich_media_events = args[:custom_rich_media_events] if args.key?(:custom_rich_media_events) + @date_range = args[:date_range] if args.key?(:date_range) + @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @metric_names = args[:metric_names] if args.key?(:metric_names) end end @@ -9036,13 +9036,13 @@ module Google # Update properties of this object def update!(**args) - @breakdown = args[:breakdown] unless args[:breakdown].nil? - @date_range = args[:date_range] unless args[:date_range].nil? - @dimension = args[:dimension] unless args[:dimension].nil? - @dimension_filters = args[:dimension_filters] unless args[:dimension_filters].nil? - @metric_names = args[:metric_names] unless args[:metric_names].nil? - @overlap_metric_names = args[:overlap_metric_names] unless args[:overlap_metric_names].nil? - @pivoted = args[:pivoted] unless args[:pivoted].nil? + @breakdown = args[:breakdown] if args.key?(:breakdown) + @date_range = args[:date_range] if args.key?(:date_range) + @dimension = args[:dimension] if args.key?(:dimension) + @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters) + @metric_names = args[:metric_names] if args.key?(:metric_names) + @overlap_metric_names = args[:overlap_metric_names] if args.key?(:overlap_metric_names) + @pivoted = args[:pivoted] if args.key?(:pivoted) end end @@ -9077,10 +9077,10 @@ module Google # Update properties of this object def update!(**args) - @email_owner = args[:email_owner] unless args[:email_owner].nil? - @email_owner_delivery_type = args[:email_owner_delivery_type] unless args[:email_owner_delivery_type].nil? - @message = args[:message] unless args[:message].nil? - @recipients = args[:recipients] unless args[:recipients].nil? + @email_owner = args[:email_owner] if args.key?(:email_owner) + @email_owner_delivery_type = args[:email_owner_delivery_type] if args.key?(:email_owner_delivery_type) + @message = args[:message] if args.key?(:message) + @recipients = args[:recipients] if args.key?(:recipients) end end @@ -9131,13 +9131,13 @@ module Google # Update properties of this object def update!(**args) - @custom_rich_media_events = args[:custom_rich_media_events] unless args[:custom_rich_media_events].nil? - @date_range = args[:date_range] unless args[:date_range].nil? - @dimension_filters = args[:dimension_filters] unless args[:dimension_filters].nil? - @dimensions = args[:dimensions] unless args[:dimensions].nil? - @floodlight_config_id = args[:floodlight_config_id] unless args[:floodlight_config_id].nil? - @metric_names = args[:metric_names] unless args[:metric_names].nil? - @report_properties = args[:report_properties] unless args[:report_properties].nil? + @custom_rich_media_events = args[:custom_rich_media_events] if args.key?(:custom_rich_media_events) + @date_range = args[:date_range] if args.key?(:date_range) + @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @floodlight_config_id = args[:floodlight_config_id] if args.key?(:floodlight_config_id) + @metric_names = args[:metric_names] if args.key?(:metric_names) + @report_properties = args[:report_properties] if args.key?(:report_properties) end # The properties of the report. @@ -9172,9 +9172,9 @@ module Google # Update properties of this object def update!(**args) - @include_attributed_ip_conversions = args[:include_attributed_ip_conversions] unless args[:include_attributed_ip_conversions].nil? - @include_unattributed_cookie_conversions = args[:include_unattributed_cookie_conversions] unless args[:include_unattributed_cookie_conversions].nil? - @include_unattributed_ip_conversions = args[:include_unattributed_ip_conversions] unless args[:include_unattributed_ip_conversions].nil? + @include_attributed_ip_conversions = args[:include_attributed_ip_conversions] if args.key?(:include_attributed_ip_conversions) + @include_unattributed_cookie_conversions = args[:include_unattributed_cookie_conversions] if args.key?(:include_unattributed_cookie_conversions) + @include_unattributed_ip_conversions = args[:include_unattributed_ip_conversions] if args.key?(:include_unattributed_ip_conversions) end end end @@ -9234,15 +9234,15 @@ module Google # Update properties of this object def update!(**args) - @activity_filters = args[:activity_filters] unless args[:activity_filters].nil? - @conversion_dimensions = args[:conversion_dimensions] unless args[:conversion_dimensions].nil? - @custom_floodlight_variables = args[:custom_floodlight_variables] unless args[:custom_floodlight_variables].nil? - @custom_rich_media_events = args[:custom_rich_media_events] unless args[:custom_rich_media_events].nil? - @date_range = args[:date_range] unless args[:date_range].nil? - @floodlight_config_id = args[:floodlight_config_id] unless args[:floodlight_config_id].nil? - @metric_names = args[:metric_names] unless args[:metric_names].nil? - @per_interaction_dimensions = args[:per_interaction_dimensions] unless args[:per_interaction_dimensions].nil? - @report_properties = args[:report_properties] unless args[:report_properties].nil? + @activity_filters = args[:activity_filters] if args.key?(:activity_filters) + @conversion_dimensions = args[:conversion_dimensions] if args.key?(:conversion_dimensions) + @custom_floodlight_variables = args[:custom_floodlight_variables] if args.key?(:custom_floodlight_variables) + @custom_rich_media_events = args[:custom_rich_media_events] if args.key?(:custom_rich_media_events) + @date_range = args[:date_range] if args.key?(:date_range) + @floodlight_config_id = args[:floodlight_config_id] if args.key?(:floodlight_config_id) + @metric_names = args[:metric_names] if args.key?(:metric_names) + @per_interaction_dimensions = args[:per_interaction_dimensions] if args.key?(:per_interaction_dimensions) + @report_properties = args[:report_properties] if args.key?(:report_properties) end # The properties of the report. @@ -9319,15 +9319,15 @@ module Google # Update properties of this object def update!(**args) - @clicks_lookback_window = args[:clicks_lookback_window] unless args[:clicks_lookback_window].nil? - @impressions_lookback_window = args[:impressions_lookback_window] unless args[:impressions_lookback_window].nil? - @include_attributed_ip_conversions = args[:include_attributed_ip_conversions] unless args[:include_attributed_ip_conversions].nil? - @include_unattributed_cookie_conversions = args[:include_unattributed_cookie_conversions] unless args[:include_unattributed_cookie_conversions].nil? - @include_unattributed_ip_conversions = args[:include_unattributed_ip_conversions] unless args[:include_unattributed_ip_conversions].nil? - @maximum_click_interactions = args[:maximum_click_interactions] unless args[:maximum_click_interactions].nil? - @maximum_impression_interactions = args[:maximum_impression_interactions] unless args[:maximum_impression_interactions].nil? - @maximum_interaction_gap = args[:maximum_interaction_gap] unless args[:maximum_interaction_gap].nil? - @pivot_on_interaction_path = args[:pivot_on_interaction_path] unless args[:pivot_on_interaction_path].nil? + @clicks_lookback_window = args[:clicks_lookback_window] if args.key?(:clicks_lookback_window) + @impressions_lookback_window = args[:impressions_lookback_window] if args.key?(:impressions_lookback_window) + @include_attributed_ip_conversions = args[:include_attributed_ip_conversions] if args.key?(:include_attributed_ip_conversions) + @include_unattributed_cookie_conversions = args[:include_unattributed_cookie_conversions] if args.key?(:include_unattributed_cookie_conversions) + @include_unattributed_ip_conversions = args[:include_unattributed_ip_conversions] if args.key?(:include_unattributed_ip_conversions) + @maximum_click_interactions = args[:maximum_click_interactions] if args.key?(:maximum_click_interactions) + @maximum_impression_interactions = args[:maximum_impression_interactions] if args.key?(:maximum_impression_interactions) + @maximum_interaction_gap = args[:maximum_interaction_gap] if args.key?(:maximum_interaction_gap) + @pivot_on_interaction_path = args[:pivot_on_interaction_path] if args.key?(:pivot_on_interaction_path) end end end @@ -9387,14 +9387,14 @@ module Google # Update properties of this object def update!(**args) - @activities = args[:activities] unless args[:activities].nil? - @custom_rich_media_events = args[:custom_rich_media_events] unless args[:custom_rich_media_events].nil? - @date_range = args[:date_range] unless args[:date_range].nil? - @dimension_filters = args[:dimension_filters] unless args[:dimension_filters].nil? - @dimensions = args[:dimensions] unless args[:dimensions].nil? - @enable_all_dimension_combinations = args[:enable_all_dimension_combinations] unless args[:enable_all_dimension_combinations].nil? - @metric_names = args[:metric_names] unless args[:metric_names].nil? - @reach_by_frequency_metric_names = args[:reach_by_frequency_metric_names] unless args[:reach_by_frequency_metric_names].nil? + @activities = args[:activities] if args.key?(:activities) + @custom_rich_media_events = args[:custom_rich_media_events] if args.key?(:custom_rich_media_events) + @date_range = args[:date_range] if args.key?(:date_range) + @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @enable_all_dimension_combinations = args[:enable_all_dimension_combinations] if args.key?(:enable_all_dimension_combinations) + @metric_names = args[:metric_names] if args.key?(:metric_names) + @reach_by_frequency_metric_names = args[:reach_by_frequency_metric_names] if args.key?(:reach_by_frequency_metric_names) end end @@ -9454,13 +9454,13 @@ module Google # Update properties of this object def update!(**args) - @active = args[:active] unless args[:active].nil? - @every = args[:every] unless args[:every].nil? - @expiration_date = args[:expiration_date] unless args[:expiration_date].nil? - @repeats = args[:repeats] unless args[:repeats].nil? - @repeats_on_week_days = args[:repeats_on_week_days] unless args[:repeats_on_week_days].nil? - @runs_on_day_of_month = args[:runs_on_day_of_month] unless args[:runs_on_day_of_month].nil? - @start_date = args[:start_date] unless args[:start_date].nil? + @active = args[:active] if args.key?(:active) + @every = args[:every] if args.key?(:every) + @expiration_date = args[:expiration_date] if args.key?(:expiration_date) + @repeats = args[:repeats] if args.key?(:repeats) + @repeats_on_week_days = args[:repeats_on_week_days] if args.key?(:repeats_on_week_days) + @runs_on_day_of_month = args[:runs_on_day_of_month] if args.key?(:runs_on_day_of_month) + @start_date = args[:start_date] if args.key?(:start_date) end end end @@ -9505,11 +9505,11 @@ module Google # Update properties of this object def update!(**args) - @dimension_filters = args[:dimension_filters] unless args[:dimension_filters].nil? - @dimensions = args[:dimensions] unless args[:dimensions].nil? - @kind = args[:kind] unless args[:kind].nil? - @metrics = args[:metrics] unless args[:metrics].nil? - @pivoted_activity_metrics = args[:pivoted_activity_metrics] unless args[:pivoted_activity_metrics].nil? + @dimension_filters = args[:dimension_filters] if args.key?(:dimension_filters) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @kind = args[:kind] if args.key?(:kind) + @metrics = args[:metrics] if args.key?(:metrics) + @pivoted_activity_metrics = args[:pivoted_activity_metrics] if args.key?(:pivoted_activity_metrics) end end @@ -9546,10 +9546,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -9596,9 +9596,9 @@ module Google # Update properties of this object def update!(**args) - @exposure_to_conversion_enabled = args[:exposure_to_conversion_enabled] unless args[:exposure_to_conversion_enabled].nil? - @lookback_configuration = args[:lookback_configuration] unless args[:lookback_configuration].nil? - @report_generation_time_zone_id = args[:report_generation_time_zone_id] unless args[:report_generation_time_zone_id].nil? + @exposure_to_conversion_enabled = args[:exposure_to_conversion_enabled] if args.key?(:exposure_to_conversion_enabled) + @lookback_configuration = args[:lookback_configuration] if args.key?(:lookback_configuration) + @report_generation_time_zone_id = args[:report_generation_time_zone_id] if args.key?(:report_generation_time_zone_id) end end @@ -9629,9 +9629,9 @@ module Google # Update properties of this object def update!(**args) - @custom_exit_url = args[:custom_exit_url] unless args[:custom_exit_url].nil? - @exit_id = args[:exit_id] unless args[:exit_id].nil? - @use_custom_exit_url = args[:use_custom_exit_url] unless args[:use_custom_exit_url].nil? + @custom_exit_url = args[:custom_exit_url] if args.key?(:custom_exit_url) + @exit_id = args[:exit_id] if args.key?(:exit_id) + @use_custom_exit_url = args[:use_custom_exit_url] if args.key?(:use_custom_exit_url) end end @@ -9711,18 +9711,18 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @approved = args[:approved] unless args[:approved].nil? - @directory_site_id = args[:directory_site_id] unless args[:directory_site_id].nil? - @directory_site_id_dimension_value = args[:directory_site_id_dimension_value] unless args[:directory_site_id_dimension_value].nil? - @id = args[:id] unless args[:id].nil? - @id_dimension_value = args[:id_dimension_value] unless args[:id_dimension_value].nil? - @key_name = args[:key_name] unless args[:key_name].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @site_contacts = args[:site_contacts] unless args[:site_contacts].nil? - @site_settings = args[:site_settings] unless args[:site_settings].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @approved = args[:approved] if args.key?(:approved) + @directory_site_id = args[:directory_site_id] if args.key?(:directory_site_id) + @directory_site_id_dimension_value = args[:directory_site_id_dimension_value] if args.key?(:directory_site_id_dimension_value) + @id = args[:id] if args.key?(:id) + @id_dimension_value = args[:id_dimension_value] if args.key?(:id_dimension_value) + @key_name = args[:key_name] if args.key?(:key_name) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @site_contacts = args[:site_contacts] if args.key?(:site_contacts) + @site_settings = args[:site_settings] if args.key?(:site_settings) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) end end @@ -9776,14 +9776,14 @@ module Google # Update properties of this object def update!(**args) - @address = args[:address] unless args[:address].nil? - @contact_type = args[:contact_type] unless args[:contact_type].nil? - @email = args[:email] unless args[:email].nil? - @first_name = args[:first_name] unless args[:first_name].nil? - @id = args[:id] unless args[:id].nil? - @last_name = args[:last_name] unless args[:last_name].nil? - @phone = args[:phone] unless args[:phone].nil? - @title = args[:title] unless args[:title].nil? + @address = args[:address] if args.key?(:address) + @contact_type = args[:contact_type] if args.key?(:contact_type) + @email = args[:email] if args.key?(:email) + @first_name = args[:first_name] if args.key?(:first_name) + @id = args[:id] if args.key?(:id) + @last_name = args[:last_name] if args.key?(:last_name) + @phone = args[:phone] if args.key?(:phone) + @title = args[:title] if args.key?(:title) end end @@ -9842,13 +9842,13 @@ module Google # Update properties of this object def update!(**args) - @active_view_opt_out = args[:active_view_opt_out] unless args[:active_view_opt_out].nil? - @creative_settings = args[:creative_settings] unless args[:creative_settings].nil? - @disable_brand_safe_ads = args[:disable_brand_safe_ads] unless args[:disable_brand_safe_ads].nil? - @disable_new_cookie = args[:disable_new_cookie] unless args[:disable_new_cookie].nil? - @lookback_configuration = args[:lookback_configuration] unless args[:lookback_configuration].nil? - @tag_setting = args[:tag_setting] unless args[:tag_setting].nil? - @video_active_view_opt_out = args[:video_active_view_opt_out] unless args[:video_active_view_opt_out].nil? + @active_view_opt_out = args[:active_view_opt_out] if args.key?(:active_view_opt_out) + @creative_settings = args[:creative_settings] if args.key?(:creative_settings) + @disable_brand_safe_ads = args[:disable_brand_safe_ads] if args.key?(:disable_brand_safe_ads) + @disable_new_cookie = args[:disable_new_cookie] if args.key?(:disable_new_cookie) + @lookback_configuration = args[:lookback_configuration] if args.key?(:lookback_configuration) + @tag_setting = args[:tag_setting] if args.key?(:tag_setting) + @video_active_view_opt_out = args[:video_active_view_opt_out] if args.key?(:video_active_view_opt_out) end end @@ -9878,9 +9878,9 @@ module Google # 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? - @sites = args[:sites] unless args[:sites].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @sites = args[:sites] if args.key?(:sites) end end @@ -9921,11 +9921,11 @@ module Google # Update properties of this object def update!(**args) - @height = args[:height] unless args[:height].nil? - @iab = args[:iab] unless args[:iab].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @width = args[:width] unless args[:width].nil? + @height = args[:height] if args.key?(:height) + @iab = args[:iab] if args.key?(:iab) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @width = args[:width] if args.key?(:width) end end @@ -9950,8 +9950,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @sizes = args[:sizes] unless args[:sizes].nil? + @kind = args[:kind] if args.key?(:kind) + @sizes = args[:sizes] if args.key?(:sizes) end end @@ -9980,9 +9980,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @sort_order = args[:sort_order] unless args[:sort_order].nil? + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @sort_order = args[:sort_order] if args.key?(:sort_order) end end @@ -10024,11 +10024,11 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @available_permission_ids = args[:available_permission_ids] unless args[:available_permission_ids].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @available_permission_ids = args[:available_permission_ids] if args.key?(:available_permission_ids) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -10058,9 +10058,9 @@ module Google # 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? - @subaccounts = args[:subaccounts] unless args[:subaccounts].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @subaccounts = args[:subaccounts] if args.key?(:subaccounts) end end @@ -10099,11 +10099,11 @@ module Google # Update properties of this object def update!(**args) - @ad_id = args[:ad_id] unless args[:ad_id].nil? - @click_tag = args[:click_tag] unless args[:click_tag].nil? - @creative_id = args[:creative_id] unless args[:creative_id].nil? - @format = args[:format] unless args[:format].nil? - @impression_tag = args[:impression_tag] unless args[:impression_tag].nil? + @ad_id = args[:ad_id] if args.key?(:ad_id) + @click_tag = args[:click_tag] if args.key?(:click_tag) + @creative_id = args[:creative_id] if args.key?(:creative_id) + @format = args[:format] if args.key?(:format) + @impression_tag = args[:impression_tag] if args.key?(:impression_tag) end end @@ -10145,10 +10145,10 @@ module Google # Update properties of this object def update!(**args) - @additional_key_values = args[:additional_key_values] unless args[:additional_key_values].nil? - @include_click_through_urls = args[:include_click_through_urls] unless args[:include_click_through_urls].nil? - @include_click_tracking = args[:include_click_tracking] unless args[:include_click_tracking].nil? - @keyword_option = args[:keyword_option] unless args[:keyword_option].nil? + @additional_key_values = args[:additional_key_values] if args.key?(:additional_key_values) + @include_click_through_urls = args[:include_click_through_urls] if args.key?(:include_click_through_urls) + @include_click_tracking = args[:include_click_tracking] if args.key?(:include_click_tracking) + @keyword_option = args[:keyword_option] if args.key?(:keyword_option) end end @@ -10174,8 +10174,8 @@ module Google # Update properties of this object def update!(**args) - @dynamic_tag_enabled = args[:dynamic_tag_enabled] unless args[:dynamic_tag_enabled].nil? - @image_tag_enabled = args[:image_tag_enabled] unless args[:image_tag_enabled].nil? + @dynamic_tag_enabled = args[:dynamic_tag_enabled] if args.key?(:dynamic_tag_enabled) + @image_tag_enabled = args[:image_tag_enabled] if args.key?(:image_tag_enabled) end end @@ -10200,8 +10200,8 @@ module Google # Update properties of this object def update!(**args) - @custom_html = args[:custom_html] unless args[:custom_html].nil? - @target_window_option = args[:target_window_option] unless args[:target_window_option].nil? + @custom_html = args[:custom_html] if args.key?(:custom_html) + @target_window_option = args[:target_window_option] if args.key?(:target_window_option) end end @@ -10289,18 +10289,18 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @active = args[:active] unless args[:active].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] unless args[:advertiser_id_dimension_value].nil? - @description = args[:description] unless args[:description].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @life_span = args[:life_span] unless args[:life_span].nil? - @list_size = args[:list_size] unless args[:list_size].nil? - @list_source = args[:list_source] unless args[:list_source].nil? - @name = args[:name] unless args[:name].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @active = args[:active] if args.key?(:active) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_id_dimension_value = args[:advertiser_id_dimension_value] if args.key?(:advertiser_id_dimension_value) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @life_span = args[:life_span] if args.key?(:life_span) + @list_size = args[:list_size] if args.key?(:list_size) + @list_source = args[:list_source] if args.key?(:list_source) + @name = args[:name] if args.key?(:name) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) end end @@ -10330,9 +10330,9 @@ module Google # 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? - @targetable_remarketing_lists = args[:targetable_remarketing_lists] unless args[:targetable_remarketing_lists].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @targetable_remarketing_lists = args[:targetable_remarketing_lists] if args.key?(:targetable_remarketing_lists) end end @@ -10394,12 +10394,12 @@ module Google # Update properties of this object def update!(**args) - @browsers = args[:browsers] unless args[:browsers].nil? - @connection_types = args[:connection_types] unless args[:connection_types].nil? - @mobile_carriers = args[:mobile_carriers] unless args[:mobile_carriers].nil? - @operating_system_versions = args[:operating_system_versions] unless args[:operating_system_versions].nil? - @operating_systems = args[:operating_systems] unless args[:operating_systems].nil? - @platform_types = args[:platform_types] unless args[:platform_types].nil? + @browsers = args[:browsers] if args.key?(:browsers) + @connection_types = args[:connection_types] if args.key?(:connection_types) + @mobile_carriers = args[:mobile_carriers] if args.key?(:mobile_carriers) + @operating_system_versions = args[:operating_system_versions] if args.key?(:operating_system_versions) + @operating_systems = args[:operating_systems] if args.key?(:operating_systems) + @platform_types = args[:platform_types] if args.key?(:platform_types) end end @@ -10424,8 +10424,8 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @value = args[:value] unless args[:value].nil? + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) end end @@ -10449,8 +10449,8 @@ module Google # Update properties of this object def update!(**args) - @third_party_url_type = args[:third_party_url_type] unless args[:third_party_url_type].nil? - @url = args[:url] unless args[:url].nil? + @third_party_url_type = args[:third_party_url_type] if args.key?(:third_party_url_type) + @url = args[:url] if args.key?(:url) end end @@ -10481,9 +10481,9 @@ module Google # Update properties of this object def update!(**args) - @data_type = args[:data_type] unless args[:data_type].nil? - @report_name = args[:report_name] unless args[:report_name].nil? - @variable_type = args[:variable_type] unless args[:variable_type].nil? + @data_type = args[:data_type] if args.key?(:data_type) + @report_name = args[:report_name] if args.key?(:report_name) + @variable_type = args[:variable_type] if args.key?(:variable_type) end end @@ -10537,14 +10537,14 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @account_name = args[:account_name] unless args[:account_name].nil? - @etag = args[:etag] unless args[:etag].nil? - @kind = args[:kind] unless args[:kind].nil? - @profile_id = args[:profile_id] unless args[:profile_id].nil? - @sub_account_id = args[:sub_account_id] unless args[:sub_account_id].nil? - @sub_account_name = args[:sub_account_name] unless args[:sub_account_name].nil? - @user_name = args[:user_name] unless args[:user_name].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @account_name = args[:account_name] if args.key?(:account_name) + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @profile_id = args[:profile_id] if args.key?(:profile_id) + @sub_account_id = args[:sub_account_id] if args.key?(:sub_account_id) + @sub_account_name = args[:sub_account_name] if args.key?(:sub_account_name) + @user_name = args[:user_name] if args.key?(:user_name) end end @@ -10573,9 +10573,9 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -10639,14 +10639,14 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @default_user_role = args[:default_user_role] unless args[:default_user_role].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @parent_user_role_id = args[:parent_user_role_id] unless args[:parent_user_role_id].nil? - @permissions = args[:permissions] unless args[:permissions].nil? - @subaccount_id = args[:subaccount_id] unless args[:subaccount_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @default_user_role = args[:default_user_role] if args.key?(:default_user_role) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @parent_user_role_id = args[:parent_user_role_id] if args.key?(:parent_user_role_id) + @permissions = args[:permissions] if args.key?(:permissions) + @subaccount_id = args[:subaccount_id] if args.key?(:subaccount_id) end end @@ -10686,11 +10686,11 @@ module Google # Update properties of this object def update!(**args) - @availability = args[:availability] unless args[:availability].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @permission_group_id = args[:permission_group_id] unless args[:permission_group_id].nil? + @availability = args[:availability] if args.key?(:availability) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @permission_group_id = args[:permission_group_id] if args.key?(:permission_group_id) end end @@ -10720,9 +10720,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -10747,8 +10747,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @user_role_permission_groups = args[:user_role_permission_groups] unless args[:user_role_permission_groups].nil? + @kind = args[:kind] if args.key?(:kind) + @user_role_permission_groups = args[:user_role_permission_groups] if args.key?(:user_role_permission_groups) end end @@ -10773,8 +10773,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @user_role_permissions = args[:user_role_permissions] unless args[:user_role_permissions].nil? + @kind = args[:kind] if args.key?(:kind) + @user_role_permissions = args[:user_role_permissions] if args.key?(:user_role_permissions) end end @@ -10804,9 +10804,9 @@ module Google # 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? - @user_roles = args[:user_roles] unless args[:user_roles].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @user_roles = args[:user_roles] if args.key?(:user_roles) end end end diff --git a/generated/google/apis/discovery_v1/classes.rb b/generated/google/apis/discovery_v1/classes.rb index edd7b65e6..904524b28 100644 --- a/generated/google/apis/discovery_v1/classes.rb +++ b/generated/google/apis/discovery_v1/classes.rb @@ -47,9 +47,9 @@ module Google # Update properties of this object def update!(**args) - @discovery_version = args[:discovery_version] unless args[:discovery_version].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @discovery_version = args[:discovery_version] if args.key?(:discovery_version) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end # @@ -123,18 +123,18 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @discovery_link = args[:discovery_link] unless args[:discovery_link].nil? - @discovery_rest_url = args[:discovery_rest_url] unless args[:discovery_rest_url].nil? - @documentation_link = args[:documentation_link] unless args[:documentation_link].nil? - @icons = args[:icons] unless args[:icons].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @labels = args[:labels] unless args[:labels].nil? - @name = args[:name] unless args[:name].nil? - @preferred = args[:preferred] unless args[:preferred].nil? - @title = args[:title] unless args[:title].nil? - @version = args[:version] unless args[:version].nil? + @description = args[:description] if args.key?(:description) + @discovery_link = args[:discovery_link] if args.key?(:discovery_link) + @discovery_rest_url = args[:discovery_rest_url] if args.key?(:discovery_rest_url) + @documentation_link = args[:documentation_link] if args.key?(:documentation_link) + @icons = args[:icons] if args.key?(:icons) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @preferred = args[:preferred] if args.key?(:preferred) + @title = args[:title] if args.key?(:title) + @version = args[:version] if args.key?(:version) end # Links to 16x16 and 32x32 icons representing the API. @@ -157,8 +157,8 @@ module Google # Update properties of this object def update!(**args) - @x16 = args[:x16] unless args[:x16].nil? - @x32 = args[:x32] unless args[:x32].nil? + @x16 = args[:x16] if args.key?(:x16) + @x32 = args[:x32] if args.key?(:x32) end end end @@ -290,26 +290,26 @@ module Google # Update properties of this object def update!(**args) - @_ref = args[:_ref] unless args[:_ref].nil? - @additional_properties = args[:additional_properties] unless args[:additional_properties].nil? - @annotations = args[:annotations] unless args[:annotations].nil? - @default = args[:default] unless args[:default].nil? - @description = args[:description] unless args[:description].nil? - @enum = args[:enum] unless args[:enum].nil? - @enum_descriptions = args[:enum_descriptions] unless args[:enum_descriptions].nil? - @format = args[:format] unless args[:format].nil? - @id = args[:id] unless args[:id].nil? - @items = args[:items] unless args[:items].nil? - @location = args[:location] unless args[:location].nil? - @maximum = args[:maximum] unless args[:maximum].nil? - @minimum = args[:minimum] unless args[:minimum].nil? - @pattern = args[:pattern] unless args[:pattern].nil? - @properties = args[:properties] unless args[:properties].nil? - @read_only = args[:read_only] unless args[:read_only].nil? - @repeated = args[:repeated] unless args[:repeated].nil? - @required = args[:required] unless args[:required].nil? - @type = args[:type] unless args[:type].nil? - @variant = args[:variant] unless args[:variant].nil? + @_ref = args[:_ref] if args.key?(:_ref) + @additional_properties = args[:additional_properties] if args.key?(:additional_properties) + @annotations = args[:annotations] if args.key?(:annotations) + @default = args[:default] if args.key?(:default) + @description = args[:description] if args.key?(:description) + @enum = args[:enum] if args.key?(:enum) + @enum_descriptions = args[:enum_descriptions] if args.key?(:enum_descriptions) + @format = args[:format] if args.key?(:format) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @location = args[:location] if args.key?(:location) + @maximum = args[:maximum] if args.key?(:maximum) + @minimum = args[:minimum] if args.key?(:minimum) + @pattern = args[:pattern] if args.key?(:pattern) + @properties = args[:properties] if args.key?(:properties) + @read_only = args[:read_only] if args.key?(:read_only) + @repeated = args[:repeated] if args.key?(:repeated) + @required = args[:required] if args.key?(:required) + @type = args[:type] if args.key?(:type) + @variant = args[:variant] if args.key?(:variant) end # Additional information about this property. @@ -327,7 +327,7 @@ module Google # Update properties of this object def update!(**args) - @required = args[:required] unless args[:required].nil? + @required = args[:required] if args.key?(:required) end end @@ -353,8 +353,8 @@ module Google # Update properties of this object def update!(**args) - @discriminant = args[:discriminant] unless args[:discriminant].nil? - @map = args[:map] unless args[:map].nil? + @discriminant = args[:discriminant] if args.key?(:discriminant) + @map = args[:map] if args.key?(:map) end # @@ -377,8 +377,8 @@ module Google # Update properties of this object def update!(**args) - @_ref = args[:_ref] unless args[:_ref].nil? - @type_value = args[:type_value] unless args[:type_value].nil? + @_ref = args[:_ref] if args.key?(:_ref) + @type_value = args[:type_value] if args.key?(:type_value) end end end @@ -549,36 +549,36 @@ module Google # Update properties of this object def update!(**args) - @auth = args[:auth] unless args[:auth].nil? - @base_path = args[:base_path] unless args[:base_path].nil? - @base_url = args[:base_url] unless args[:base_url].nil? - @batch_path = args[:batch_path] unless args[:batch_path].nil? - @canonical_name = args[:canonical_name] unless args[:canonical_name].nil? - @description = args[:description] unless args[:description].nil? - @discovery_version = args[:discovery_version] unless args[:discovery_version].nil? - @documentation_link = args[:documentation_link] unless args[:documentation_link].nil? - @etag = args[:etag] unless args[:etag].nil? - @exponential_backoff_default = args[:exponential_backoff_default] unless args[:exponential_backoff_default].nil? - @features = args[:features] unless args[:features].nil? - @icons = args[:icons] unless args[:icons].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @labels = args[:labels] unless args[:labels].nil? - @api_methods = args[:api_methods] unless args[:api_methods].nil? - @name = args[:name] unless args[:name].nil? - @owner_domain = args[:owner_domain] unless args[:owner_domain].nil? - @owner_name = args[:owner_name] unless args[:owner_name].nil? - @package_path = args[:package_path] unless args[:package_path].nil? - @parameters = args[:parameters] unless args[:parameters].nil? - @protocol = args[:protocol] unless args[:protocol].nil? - @resources = args[:resources] unless args[:resources].nil? - @revision = args[:revision] unless args[:revision].nil? - @root_url = args[:root_url] unless args[:root_url].nil? - @schemas = args[:schemas] unless args[:schemas].nil? - @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? + @auth = args[:auth] if args.key?(:auth) + @base_path = args[:base_path] if args.key?(:base_path) + @base_url = args[:base_url] if args.key?(:base_url) + @batch_path = args[:batch_path] if args.key?(:batch_path) + @canonical_name = args[:canonical_name] if args.key?(:canonical_name) + @description = args[:description] if args.key?(:description) + @discovery_version = args[:discovery_version] if args.key?(:discovery_version) + @documentation_link = args[:documentation_link] if args.key?(:documentation_link) + @etag = args[:etag] if args.key?(:etag) + @exponential_backoff_default = args[:exponential_backoff_default] if args.key?(:exponential_backoff_default) + @features = args[:features] if args.key?(:features) + @icons = args[:icons] if args.key?(:icons) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @labels = args[:labels] if args.key?(:labels) + @api_methods = args[:api_methods] if args.key?(:api_methods) + @name = args[:name] if args.key?(:name) + @owner_domain = args[:owner_domain] if args.key?(:owner_domain) + @owner_name = args[:owner_name] if args.key?(:owner_name) + @package_path = args[:package_path] if args.key?(:package_path) + @parameters = args[:parameters] if args.key?(:parameters) + @protocol = args[:protocol] if args.key?(:protocol) + @resources = args[:resources] if args.key?(:resources) + @revision = args[:revision] if args.key?(:revision) + @root_url = args[:root_url] if args.key?(:root_url) + @schemas = args[:schemas] if args.key?(:schemas) + @service_path = args[:service_path] if args.key?(:service_path) + @title = args[:title] if args.key?(:title) + @version = args[:version] if args.key?(:version) + @version_module = args[:version_module] if args.key?(:version_module) end # Authentication information. @@ -596,7 +596,7 @@ module Google # Update properties of this object def update!(**args) - @oauth2 = args[:oauth2] unless args[:oauth2].nil? + @oauth2 = args[:oauth2] if args.key?(:oauth2) end # OAuth 2.0 authentication information. @@ -614,7 +614,7 @@ module Google # Update properties of this object def update!(**args) - @scopes = args[:scopes] unless args[:scopes].nil? + @scopes = args[:scopes] if args.key?(:scopes) end # The scope value. @@ -632,7 +632,7 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? + @description = args[:description] if args.key?(:description) end end end @@ -658,8 +658,8 @@ module Google # Update properties of this object def update!(**args) - @x16 = args[:x16] unless args[:x16].nil? - @x32 = args[:x32] unless args[:x32].nil? + @x16 = args[:x16] if args.key?(:x16) + @x32 = args[:x32] if args.key?(:x32) end end end @@ -760,21 +760,21 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @etag_required = args[:etag_required] unless args[:etag_required].nil? - @http_method = args[:http_method] unless args[:http_method].nil? - @id = args[:id] unless args[:id].nil? - @media_upload = args[:media_upload] unless args[:media_upload].nil? - @parameter_order = args[:parameter_order] unless args[:parameter_order].nil? - @parameters = args[:parameters] unless args[:parameters].nil? - @path = args[:path] unless args[:path].nil? - @request = args[:request] unless args[:request].nil? - @response = args[:response] unless args[:response].nil? - @scopes = args[:scopes] unless args[:scopes].nil? - @supports_media_download = args[:supports_media_download] unless args[:supports_media_download].nil? - @supports_media_upload = args[:supports_media_upload] unless args[:supports_media_upload].nil? - @supports_subscription = args[:supports_subscription] unless args[:supports_subscription].nil? - @use_media_download_service = args[:use_media_download_service] unless args[:use_media_download_service].nil? + @description = args[:description] if args.key?(:description) + @etag_required = args[:etag_required] if args.key?(:etag_required) + @http_method = args[:http_method] if args.key?(:http_method) + @id = args[:id] if args.key?(:id) + @media_upload = args[:media_upload] if args.key?(:media_upload) + @parameter_order = args[:parameter_order] if args.key?(:parameter_order) + @parameters = args[:parameters] if args.key?(:parameters) + @path = args[:path] if args.key?(:path) + @request = args[:request] if args.key?(:request) + @response = args[:response] if args.key?(:response) + @scopes = args[:scopes] if args.key?(:scopes) + @supports_media_download = args[:supports_media_download] if args.key?(:supports_media_download) + @supports_media_upload = args[:supports_media_upload] if args.key?(:supports_media_upload) + @supports_subscription = args[:supports_subscription] if args.key?(:supports_subscription) + @use_media_download_service = args[:use_media_download_service] if args.key?(:use_media_download_service) end # Media upload parameters. @@ -802,9 +802,9 @@ module Google # Update properties of this object def update!(**args) - @accept = args[:accept] unless args[:accept].nil? - @max_size = args[:max_size] unless args[:max_size].nil? - @protocols = args[:protocols] unless args[:protocols].nil? + @accept = args[:accept] if args.key?(:accept) + @max_size = args[:max_size] if args.key?(:max_size) + @protocols = args[:protocols] if args.key?(:protocols) end # Supported upload protocols. @@ -827,8 +827,8 @@ module Google # Update properties of this object def update!(**args) - @resumable = args[:resumable] unless args[:resumable].nil? - @simple = args[:simple] unless args[:simple].nil? + @resumable = args[:resumable] if args.key?(:resumable) + @simple = args[:simple] if args.key?(:simple) end # Supports the Resumable Media Upload protocol. @@ -853,8 +853,8 @@ module Google # Update properties of this object def update!(**args) - @multipart = args[:multipart] unless args[:multipart].nil? - @path = args[:path] unless args[:path].nil? + @multipart = args[:multipart] if args.key?(:multipart) + @path = args[:path] if args.key?(:path) end end @@ -880,8 +880,8 @@ module Google # Update properties of this object def update!(**args) - @multipart = args[:multipart] unless args[:multipart].nil? - @path = args[:path] unless args[:path].nil? + @multipart = args[:multipart] if args.key?(:multipart) + @path = args[:path] if args.key?(:path) end end end @@ -907,8 +907,8 @@ module Google # Update properties of this object def update!(**args) - @_ref = args[:_ref] unless args[:_ref].nil? - @parameter_name = args[:parameter_name] unless args[:parameter_name].nil? + @_ref = args[:_ref] if args.key?(:_ref) + @parameter_name = args[:parameter_name] if args.key?(:parameter_name) end end @@ -927,7 +927,7 @@ module Google # Update properties of this object def update!(**args) - @_ref = args[:_ref] unless args[:_ref].nil? + @_ref = args[:_ref] if args.key?(:_ref) end end end @@ -952,8 +952,8 @@ module Google # Update properties of this object def update!(**args) - @api_methods = args[:api_methods] unless args[:api_methods].nil? - @resources = args[:resources] unless args[:resources].nil? + @api_methods = args[:api_methods] if args.key?(:api_methods) + @resources = args[:resources] if args.key?(:resources) end end end diff --git a/generated/google/apis/dns_v1/classes.rb b/generated/google/apis/dns_v1/classes.rb index 70b6ed26d..59480e1bc 100644 --- a/generated/google/apis/dns_v1/classes.rb +++ b/generated/google/apis/dns_v1/classes.rb @@ -63,12 +63,12 @@ module Google # Update properties of this object def update!(**args) - @additions = args[:additions] unless args[:additions].nil? - @deletions = args[:deletions] unless args[:deletions].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @start_time = args[:start_time] unless args[:start_time].nil? - @status = args[:status] unless args[:status].nil? + @additions = args[:additions] if args.key?(:additions) + @deletions = args[:deletions] if args.key?(:deletions) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @start_time = args[:start_time] if args.key?(:start_time) + @status = args[:status] if args.key?(:status) end end @@ -105,9 +105,9 @@ module Google # Update properties of this object def update!(**args) - @changes = args[:changes] unless args[:changes].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @changes = args[:changes] if args.key?(:changes) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -171,14 +171,14 @@ module Google # Update properties of this object def update!(**args) - @creation_time = args[:creation_time] unless args[:creation_time].nil? - @description = args[:description] unless args[:description].nil? - @dns_name = args[:dns_name] unless args[:dns_name].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @name_server_set = args[:name_server_set] unless args[:name_server_set].nil? - @name_servers = args[:name_servers] unless args[:name_servers].nil? + @creation_time = args[:creation_time] if args.key?(:creation_time) + @description = args[:description] if args.key?(:description) + @dns_name = args[:dns_name] if args.key?(:dns_name) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @name_server_set = args[:name_server_set] if args.key?(:name_server_set) + @name_servers = args[:name_servers] if args.key?(:name_servers) end end @@ -215,9 +215,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @managed_zones = args[:managed_zones] unless args[:managed_zones].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @kind = args[:kind] if args.key?(:kind) + @managed_zones = args[:managed_zones] if args.key?(:managed_zones) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -255,10 +255,10 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @number = args[:number] unless args[:number].nil? - @quota = args[:quota] unless args[:quota].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @number = args[:number] if args.key?(:number) + @quota = args[:quota] if args.key?(:quota) end end @@ -308,13 +308,13 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @managed_zones = args[:managed_zones] unless args[:managed_zones].nil? - @resource_records_per_rrset = args[:resource_records_per_rrset] unless args[:resource_records_per_rrset].nil? - @rrset_additions_per_change = args[:rrset_additions_per_change] unless args[:rrset_additions_per_change].nil? - @rrset_deletions_per_change = args[:rrset_deletions_per_change] unless args[:rrset_deletions_per_change].nil? - @rrsets_per_managed_zone = args[:rrsets_per_managed_zone] unless args[:rrsets_per_managed_zone].nil? - @total_rrdata_size_per_change = args[:total_rrdata_size_per_change] unless args[:total_rrdata_size_per_change].nil? + @kind = args[:kind] if args.key?(:kind) + @managed_zones = args[:managed_zones] if args.key?(:managed_zones) + @resource_records_per_rrset = args[:resource_records_per_rrset] if args.key?(:resource_records_per_rrset) + @rrset_additions_per_change = args[:rrset_additions_per_change] if args.key?(:rrset_additions_per_change) + @rrset_deletions_per_change = args[:rrset_deletions_per_change] if args.key?(:rrset_deletions_per_change) + @rrsets_per_managed_zone = args[:rrsets_per_managed_zone] if args.key?(:rrsets_per_managed_zone) + @total_rrdata_size_per_change = args[:total_rrdata_size_per_change] if args.key?(:total_rrdata_size_per_change) end end @@ -355,11 +355,11 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @rrdatas = args[:rrdatas] unless args[:rrdatas].nil? - @ttl = args[:ttl] unless args[:ttl].nil? - @type = args[:type] unless args[:type].nil? + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @rrdatas = args[:rrdatas] if args.key?(:rrdatas) + @ttl = args[:ttl] if args.key?(:ttl) + @type = args[:type] if args.key?(:type) end end @@ -396,9 +396,9 @@ module Google # 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? - @rrsets = args[:rrsets] unless args[:rrsets].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @rrsets = args[:rrsets] if args.key?(:rrsets) end end end diff --git a/generated/google/apis/doubleclickbidmanager_v1/classes.rb b/generated/google/apis/doubleclickbidmanager_v1/classes.rb index 23000fa7b..9ff5c40ac 100644 --- a/generated/google/apis/doubleclickbidmanager_v1/classes.rb +++ b/generated/google/apis/doubleclickbidmanager_v1/classes.rb @@ -54,10 +54,10 @@ 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? + @file_spec = args[:file_spec] if args.key?(:file_spec) + @filter_ids = args[:filter_ids] if args.key?(:filter_ids) + @filter_type = args[:filter_type] if args.key?(:filter_type) + @format = args[:format] if args.key?(:format) end end @@ -77,7 +77,7 @@ module Google # Update properties of this object def update!(**args) - @line_items = args[:line_items] unless args[:line_items].nil? + @line_items = args[:line_items] if args.key?(:line_items) end end @@ -101,8 +101,8 @@ module Google # Update properties of this object def update!(**args) - @type = args[:type] unless args[:type].nil? - @value = args[:value] unless args[:value].nil? + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) end end @@ -127,8 +127,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @queries = args[:queries] unless args[:queries].nil? + @kind = args[:kind] if args.key?(:kind) + @queries = args[:queries] if args.key?(:queries) end end @@ -153,8 +153,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @reports = args[:reports] unless args[:reports].nil? + @kind = args[:kind] if args.key?(:kind) + @reports = args[:reports] if args.key?(:reports) end end @@ -193,11 +193,11 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @message = args[:message] unless args[:message].nil? - @source = args[:source] unless args[:source].nil? - @timestamp = args[:timestamp] unless args[:timestamp].nil? - @username = args[:username] unless args[:username].nil? + @id = args[:id] if args.key?(:id) + @message = args[:message] if args.key?(:message) + @source = args[:source] if args.key?(:source) + @timestamp = args[:timestamp] if args.key?(:timestamp) + @username = args[:username] if args.key?(:username) end end @@ -236,11 +236,11 @@ module Google # Update properties of this object def update!(**args) - @action = args[:action] unless args[:action].nil? - @href = args[:href] unless args[:href].nil? - @id = args[:id] unless args[:id].nil? - @notes = args[:notes] unless args[:notes].nil? - @token = args[:token] unless args[:token].nil? + @action = args[:action] if args.key?(:action) + @href = args[:href] if args.key?(:href) + @id = args[:id] if args.key?(:id) + @notes = args[:notes] if args.key?(:notes) + @token = args[:token] if args.key?(:token) end end @@ -280,11 +280,11 @@ module Google # Update properties of this object def update!(**args) - @filters = args[:filters] unless args[:filters].nil? - @group_bys = args[:group_bys] unless args[:group_bys].nil? - @include_invite_data = args[:include_invite_data] unless args[:include_invite_data].nil? - @metrics = args[:metrics] unless args[:metrics].nil? - @type = args[:type] unless args[:type].nil? + @filters = args[:filters] if args.key?(:filters) + @group_bys = args[:group_bys] if args.key?(:group_bys) + @include_invite_data = args[:include_invite_data] if args.key?(:include_invite_data) + @metrics = args[:metrics] if args.key?(:metrics) + @type = args[:type] if args.key?(:type) end end @@ -343,14 +343,14 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @metadata = args[:metadata] unless args[:metadata].nil? - @params = args[:params] unless args[:params].nil? - @query_id = args[:query_id] unless args[:query_id].nil? - @report_data_end_time_ms = args[:report_data_end_time_ms] unless args[:report_data_end_time_ms].nil? - @report_data_start_time_ms = args[:report_data_start_time_ms] unless args[:report_data_start_time_ms].nil? - @schedule = args[:schedule] unless args[:schedule].nil? - @timezone_code = args[:timezone_code] unless args[:timezone_code].nil? + @kind = args[:kind] if args.key?(:kind) + @metadata = args[:metadata] if args.key?(:metadata) + @params = args[:params] if args.key?(:params) + @query_id = args[:query_id] if args.key?(:query_id) + @report_data_end_time_ms = args[:report_data_end_time_ms] if args.key?(:report_data_end_time_ms) + @report_data_start_time_ms = args[:report_data_start_time_ms] if args.key?(:report_data_start_time_ms) + @schedule = args[:schedule] if args.key?(:schedule) + @timezone_code = args[:timezone_code] if args.key?(:timezone_code) end end @@ -427,17 +427,17 @@ module Google # Update properties of this object def update!(**args) - @data_range = args[:data_range] unless args[:data_range].nil? - @format = args[:format] unless args[:format].nil? - @google_cloud_storage_path_for_latest_report = args[:google_cloud_storage_path_for_latest_report] unless args[:google_cloud_storage_path_for_latest_report].nil? - @google_drive_path_for_latest_report = args[:google_drive_path_for_latest_report] unless args[:google_drive_path_for_latest_report].nil? - @latest_report_run_time_ms = args[:latest_report_run_time_ms] unless args[:latest_report_run_time_ms].nil? - @locale = args[:locale] unless args[:locale].nil? - @report_count = args[:report_count] unless args[:report_count].nil? - @running = args[:running] unless args[:running].nil? - @send_notification = args[:send_notification] unless args[:send_notification].nil? - @share_email_address = args[:share_email_address] unless args[:share_email_address].nil? - @title = args[:title] unless args[:title].nil? + @data_range = args[:data_range] if args.key?(:data_range) + @format = args[:format] if args.key?(:format) + @google_cloud_storage_path_for_latest_report = args[:google_cloud_storage_path_for_latest_report] if args.key?(:google_cloud_storage_path_for_latest_report) + @google_drive_path_for_latest_report = args[:google_drive_path_for_latest_report] if args.key?(:google_drive_path_for_latest_report) + @latest_report_run_time_ms = args[:latest_report_run_time_ms] if args.key?(:latest_report_run_time_ms) + @locale = args[:locale] if args.key?(:locale) + @report_count = args[:report_count] if args.key?(:report_count) + @running = args[:running] if args.key?(:running) + @send_notification = args[:send_notification] if args.key?(:send_notification) + @share_email_address = args[:share_email_address] if args.key?(:share_email_address) + @title = args[:title] if args.key?(:title) end end @@ -473,10 +473,10 @@ module Google # Update properties of this object def update!(**args) - @end_time_ms = args[:end_time_ms] unless args[:end_time_ms].nil? - @frequency = args[:frequency] unless args[:frequency].nil? - @next_run_minute_of_day = args[:next_run_minute_of_day] unless args[:next_run_minute_of_day].nil? - @next_run_timezone_code = args[:next_run_timezone_code] unless args[:next_run_timezone_code].nil? + @end_time_ms = args[:end_time_ms] if args.key?(:end_time_ms) + @frequency = args[:frequency] if args.key?(:frequency) + @next_run_minute_of_day = args[:next_run_minute_of_day] if args.key?(:next_run_minute_of_day) + @next_run_timezone_code = args[:next_run_timezone_code] if args.key?(:next_run_timezone_code) end end @@ -505,9 +505,9 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @metadata = args[:metadata] unless args[:metadata].nil? - @params = args[:params] unless args[:params].nil? + @key = args[:key] if args.key?(:key) + @metadata = args[:metadata] if args.key?(:metadata) + @params = args[:params] if args.key?(:params) end end @@ -526,7 +526,7 @@ module Google # Update properties of this object def update!(**args) - @error_code = args[:error_code] unless args[:error_code].nil? + @error_code = args[:error_code] if args.key?(:error_code) end end @@ -550,8 +550,8 @@ module Google # Update properties of this object def update!(**args) - @query_id = args[:query_id] unless args[:query_id].nil? - @report_id = args[:report_id] unless args[:report_id].nil? + @query_id = args[:query_id] if args.key?(:query_id) + @report_id = args[:report_id] if args.key?(:report_id) end end @@ -585,10 +585,10 @@ module Google # Update properties of this object def update!(**args) - @google_cloud_storage_path = args[:google_cloud_storage_path] unless args[:google_cloud_storage_path].nil? - @report_data_end_time_ms = args[:report_data_end_time_ms] unless args[:report_data_end_time_ms].nil? - @report_data_start_time_ms = args[:report_data_start_time_ms] unless args[:report_data_start_time_ms].nil? - @status = args[:status] unless args[:status].nil? + @google_cloud_storage_path = args[:google_cloud_storage_path] if args.key?(:google_cloud_storage_path) + @report_data_end_time_ms = args[:report_data_end_time_ms] if args.key?(:report_data_end_time_ms) + @report_data_start_time_ms = args[:report_data_start_time_ms] if args.key?(:report_data_start_time_ms) + @status = args[:status] if args.key?(:status) end end @@ -622,10 +622,10 @@ module Google # Update properties of this object def update!(**args) - @failure = args[:failure] unless args[:failure].nil? - @finish_time_ms = args[:finish_time_ms] unless args[:finish_time_ms].nil? - @format = args[:format] unless args[:format].nil? - @state = args[:state] unless args[:state].nil? + @failure = args[:failure] if args.key?(:failure) + @finish_time_ms = args[:finish_time_ms] if args.key?(:finish_time_ms) + @format = args[:format] if args.key?(:format) + @state = args[:state] if args.key?(:state) end end @@ -671,12 +671,12 @@ module Google # Update properties of this object def update!(**args) - @changed = args[:changed] unless args[:changed].nil? - @entity_id = args[:entity_id] unless args[:entity_id].nil? - @entity_name = args[:entity_name] unless args[:entity_name].nil? - @errors = args[:errors] unless args[:errors].nil? - @persisted = args[:persisted] unless args[:persisted].nil? - @row_number = args[:row_number] unless args[:row_number].nil? + @changed = args[:changed] if args.key?(:changed) + @entity_id = args[:entity_id] if args.key?(:entity_id) + @entity_name = args[:entity_name] if args.key?(:entity_name) + @errors = args[:errors] if args.key?(:errors) + @persisted = args[:persisted] if args.key?(:persisted) + @row_number = args[:row_number] if args.key?(:row_number) end end @@ -714,10 +714,10 @@ module Google # Update properties of this object def update!(**args) - @data_range = args[:data_range] unless args[:data_range].nil? - @report_data_end_time_ms = args[:report_data_end_time_ms] unless args[:report_data_end_time_ms].nil? - @report_data_start_time_ms = args[:report_data_start_time_ms] unless args[:report_data_start_time_ms].nil? - @timezone_code = args[:timezone_code] unless args[:timezone_code].nil? + @data_range = args[:data_range] if args.key?(:data_range) + @report_data_end_time_ms = args[:report_data_end_time_ms] if args.key?(:report_data_end_time_ms) + @report_data_start_time_ms = args[:report_data_start_time_ms] if args.key?(:report_data_start_time_ms) + @timezone_code = args[:timezone_code] if args.key?(:timezone_code) end end @@ -748,9 +748,9 @@ module Google # Update properties of this object def update!(**args) - @dry_run = args[:dry_run] unless args[:dry_run].nil? - @format = args[:format] unless args[:format].nil? - @line_items = args[:line_items] unless args[:line_items].nil? + @dry_run = args[:dry_run] if args.key?(:dry_run) + @format = args[:format] if args.key?(:format) + @line_items = args[:line_items] if args.key?(:line_items) end end @@ -769,7 +769,7 @@ module Google # Update properties of this object def update!(**args) - @upload_status = args[:upload_status] unless args[:upload_status].nil? + @upload_status = args[:upload_status] if args.key?(:upload_status) end end @@ -793,8 +793,8 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? - @row_status = args[:row_status] unless args[:row_status].nil? + @errors = args[:errors] if args.key?(:errors) + @row_status = args[:row_status] if args.key?(:row_status) end end end diff --git a/generated/google/apis/doubleclicksearch_v2.rb b/generated/google/apis/doubleclicksearch_v2.rb index 7e492da75..19348d0b5 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 = '20160113' + REVISION = '20160120' # 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 870a81a99..a1bf9f5de 100644 --- a/generated/google/apis/doubleclicksearch_v2/classes.rb +++ b/generated/google/apis/doubleclicksearch_v2/classes.rb @@ -65,12 +65,12 @@ module Google # Update properties of this object def update!(**args) - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @agency_id = args[:agency_id] unless args[:agency_id].nil? - @availability_timestamp = args[:availability_timestamp] unless args[:availability_timestamp].nil? - @segmentation_id = args[:segmentation_id] unless args[:segmentation_id].nil? - @segmentation_name = args[:segmentation_name] unless args[:segmentation_name].nil? - @segmentation_type = args[:segmentation_type] unless args[:segmentation_type].nil? + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @agency_id = args[:agency_id] if args.key?(:agency_id) + @availability_timestamp = args[:availability_timestamp] if args.key?(:availability_timestamp) + @segmentation_id = args[:segmentation_id] if args.key?(:segmentation_id) + @segmentation_name = args[:segmentation_name] if args.key?(:segmentation_name) + @segmentation_type = args[:segmentation_type] if args.key?(:segmentation_type) end end @@ -269,39 +269,39 @@ module Google # Update properties of this object def update!(**args) - @ad_group_id = args[:ad_group_id] unless args[:ad_group_id].nil? - @ad_id = args[:ad_id] unless args[:ad_id].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @agency_id = args[:agency_id] unless args[:agency_id].nil? - @attribution_model = args[:attribution_model] unless args[:attribution_model].nil? - @campaign_id = args[:campaign_id] unless args[:campaign_id].nil? - @channel = args[:channel] unless args[:channel].nil? - @click_id = args[:click_id] unless args[:click_id].nil? - @conversion_id = args[:conversion_id] unless args[:conversion_id].nil? - @conversion_modified_timestamp = args[:conversion_modified_timestamp] unless args[:conversion_modified_timestamp].nil? - @conversion_timestamp = args[:conversion_timestamp] unless args[:conversion_timestamp].nil? - @count_millis = args[:count_millis] unless args[:count_millis].nil? - @criterion_id = args[:criterion_id] unless args[:criterion_id].nil? - @currency_code = args[:currency_code] unless args[:currency_code].nil? - @custom_dimension = args[:custom_dimension] unless args[:custom_dimension].nil? - @custom_metric = args[:custom_metric] unless args[:custom_metric].nil? - @device_type = args[:device_type] unless args[:device_type].nil? - @ds_conversion_id = args[:ds_conversion_id] unless args[:ds_conversion_id].nil? - @engine_account_id = args[:engine_account_id] unless args[:engine_account_id].nil? - @floodlight_order_id = args[:floodlight_order_id] unless args[:floodlight_order_id].nil? - @inventory_account_id = args[:inventory_account_id] unless args[:inventory_account_id].nil? - @product_country = args[:product_country] unless args[:product_country].nil? - @product_group_id = args[:product_group_id] unless args[:product_group_id].nil? - @product_id = args[:product_id] unless args[:product_id].nil? - @product_language = args[:product_language] unless args[:product_language].nil? - @quantity_millis = args[:quantity_millis] unless args[:quantity_millis].nil? - @revenue_micros = args[:revenue_micros] unless args[:revenue_micros].nil? - @segmentation_id = args[:segmentation_id] unless args[:segmentation_id].nil? - @segmentation_name = args[:segmentation_name] unless args[:segmentation_name].nil? - @segmentation_type = args[:segmentation_type] unless args[:segmentation_type].nil? - @state = args[:state] unless args[:state].nil? - @store_id = args[:store_id] unless args[:store_id].nil? - @type = args[:type] unless args[:type].nil? + @ad_group_id = args[:ad_group_id] if args.key?(:ad_group_id) + @ad_id = args[:ad_id] if args.key?(:ad_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @agency_id = args[:agency_id] if args.key?(:agency_id) + @attribution_model = args[:attribution_model] if args.key?(:attribution_model) + @campaign_id = args[:campaign_id] if args.key?(:campaign_id) + @channel = args[:channel] if args.key?(:channel) + @click_id = args[:click_id] if args.key?(:click_id) + @conversion_id = args[:conversion_id] if args.key?(:conversion_id) + @conversion_modified_timestamp = args[:conversion_modified_timestamp] if args.key?(:conversion_modified_timestamp) + @conversion_timestamp = args[:conversion_timestamp] if args.key?(:conversion_timestamp) + @count_millis = args[:count_millis] if args.key?(:count_millis) + @criterion_id = args[:criterion_id] if args.key?(:criterion_id) + @currency_code = args[:currency_code] if args.key?(:currency_code) + @custom_dimension = args[:custom_dimension] if args.key?(:custom_dimension) + @custom_metric = args[:custom_metric] if args.key?(:custom_metric) + @device_type = args[:device_type] if args.key?(:device_type) + @ds_conversion_id = args[:ds_conversion_id] if args.key?(:ds_conversion_id) + @engine_account_id = args[:engine_account_id] if args.key?(:engine_account_id) + @floodlight_order_id = args[:floodlight_order_id] if args.key?(:floodlight_order_id) + @inventory_account_id = args[:inventory_account_id] if args.key?(:inventory_account_id) + @product_country = args[:product_country] if args.key?(:product_country) + @product_group_id = args[:product_group_id] if args.key?(:product_group_id) + @product_id = args[:product_id] if args.key?(:product_id) + @product_language = args[:product_language] if args.key?(:product_language) + @quantity_millis = args[:quantity_millis] if args.key?(:quantity_millis) + @revenue_micros = args[:revenue_micros] if args.key?(:revenue_micros) + @segmentation_id = args[:segmentation_id] if args.key?(:segmentation_id) + @segmentation_name = args[:segmentation_name] if args.key?(:segmentation_name) + @segmentation_type = args[:segmentation_type] if args.key?(:segmentation_type) + @state = args[:state] if args.key?(:state) + @store_id = args[:store_id] if args.key?(:store_id) + @type = args[:type] if args.key?(:type) end end @@ -326,8 +326,8 @@ module Google # Update properties of this object def update!(**args) - @conversion = args[:conversion] unless args[:conversion].nil? - @kind = args[:kind] unless args[:kind].nil? + @conversion = args[:conversion] if args.key?(:conversion) + @kind = args[:kind] if args.key?(:kind) end end @@ -351,8 +351,8 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @value = args[:value] unless args[:value].nil? + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) end end @@ -376,8 +376,8 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @value = args[:value] unless args[:value].nil? + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) end end @@ -446,15 +446,15 @@ module Google # Update properties of this object def update!(**args) - @files = args[:files] unless args[:files].nil? - @id = args[:id] unless args[:id].nil? - @is_report_ready = args[:is_report_ready] unless args[:is_report_ready].nil? - @kind = args[:kind] unless args[:kind].nil? - @request = args[:request] unless args[:request].nil? - @row_count = args[:row_count] unless args[:row_count].nil? - @rows = args[:rows] unless args[:rows].nil? - @statistics_currency_code = args[:statistics_currency_code] unless args[:statistics_currency_code].nil? - @statistics_time_zone = args[:statistics_time_zone] unless args[:statistics_time_zone].nil? + @files = args[:files] if args.key?(:files) + @id = args[:id] if args.key?(:id) + @is_report_ready = args[:is_report_ready] if args.key?(:is_report_ready) + @kind = args[:kind] if args.key?(:kind) + @request = args[:request] if args.key?(:request) + @row_count = args[:row_count] if args.key?(:row_count) + @rows = args[:rows] if args.key?(:rows) + @statistics_currency_code = args[:statistics_currency_code] if args.key?(:statistics_currency_code) + @statistics_time_zone = args[:statistics_time_zone] if args.key?(:statistics_time_zone) end # @@ -477,8 +477,8 @@ module Google # Update properties of this object def update!(**args) - @byte_count = args[:byte_count] unless args[:byte_count].nil? - @url = args[:url] unless args[:url].nil? + @byte_count = args[:byte_count] if args.key?(:byte_count) + @url = args[:url] if args.key?(:url) end end end @@ -567,16 +567,16 @@ module Google # Update properties of this object def update!(**args) - @column_name = args[:column_name] unless args[:column_name].nil? - @custom_dimension_name = args[:custom_dimension_name] unless args[:custom_dimension_name].nil? - @custom_metric_name = args[:custom_metric_name] unless args[:custom_metric_name].nil? - @end_date = args[:end_date] unless args[:end_date].nil? - @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? + @column_name = args[:column_name] if args.key?(:column_name) + @custom_dimension_name = args[:custom_dimension_name] if args.key?(:custom_dimension_name) + @custom_metric_name = args[:custom_metric_name] if args.key?(:custom_metric_name) + @end_date = args[:end_date] if args.key?(:end_date) + @group_by_column = args[:group_by_column] if args.key?(:group_by_column) + @header_text = args[:header_text] if args.key?(:header_text) + @platform_source = args[:platform_source] if args.key?(:platform_source) + @product_report_perspective = args[:product_report_perspective] if args.key?(:product_report_perspective) + @saved_column_name = args[:saved_column_name] if args.key?(:saved_column_name) + @start_date = args[:start_date] if args.key?(:start_date) end end @@ -684,20 +684,20 @@ module Google # Update properties of this object def update!(**args) - @columns = args[:columns] unless args[:columns].nil? - @download_format = args[:download_format] unless args[:download_format].nil? - @filters = args[:filters] unless args[:filters].nil? - @include_deleted_entities = args[:include_deleted_entities] unless args[:include_deleted_entities].nil? - @include_removed_entities = args[:include_removed_entities] unless args[:include_removed_entities].nil? - @max_rows_per_file = args[:max_rows_per_file] unless args[:max_rows_per_file].nil? - @order_by = args[:order_by] unless args[:order_by].nil? - @report_scope = args[:report_scope] unless args[:report_scope].nil? - @report_type = args[:report_type] unless args[:report_type].nil? - @row_count = args[:row_count] unless args[:row_count].nil? - @start_row = args[:start_row] unless args[:start_row].nil? - @statistics_currency = args[:statistics_currency] unless args[:statistics_currency].nil? - @time_range = args[:time_range] unless args[:time_range].nil? - @verify_single_time_zone = args[:verify_single_time_zone] unless args[:verify_single_time_zone].nil? + @columns = args[:columns] if args.key?(:columns) + @download_format = args[:download_format] if args.key?(:download_format) + @filters = args[:filters] if args.key?(:filters) + @include_deleted_entities = args[:include_deleted_entities] if args.key?(:include_deleted_entities) + @include_removed_entities = args[:include_removed_entities] if args.key?(:include_removed_entities) + @max_rows_per_file = args[:max_rows_per_file] if args.key?(:max_rows_per_file) + @order_by = args[:order_by] if args.key?(:order_by) + @report_scope = args[:report_scope] if args.key?(:report_scope) + @report_type = args[:report_type] if args.key?(:report_type) + @row_count = args[:row_count] if args.key?(:row_count) + @start_row = args[:start_row] if args.key?(:start_row) + @statistics_currency = args[:statistics_currency] if args.key?(:statistics_currency) + @time_range = args[:time_range] if args.key?(:time_range) + @verify_single_time_zone = args[:verify_single_time_zone] if args.key?(:verify_single_time_zone) end # @@ -726,9 +726,9 @@ module Google # Update properties of this object def update!(**args) - @column = args[:column] unless args[:column].nil? - @operator = args[:operator] unless args[:operator].nil? - @values = args[:values] unless args[:values].nil? + @column = args[:column] if args.key?(:column) + @operator = args[:operator] if args.key?(:operator) + @values = args[:values] if args.key?(:values) end end @@ -752,8 +752,8 @@ module Google # Update properties of this object def update!(**args) - @column = args[:column] unless args[:column].nil? - @sort_order = args[:sort_order] unless args[:sort_order].nil? + @column = args[:column] if args.key?(:column) + @sort_order = args[:sort_order] if args.key?(:sort_order) end end @@ -804,13 +804,13 @@ module Google # Update properties of this object def update!(**args) - @ad_group_id = args[:ad_group_id] unless args[:ad_group_id].nil? - @ad_id = args[:ad_id] unless args[:ad_id].nil? - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @agency_id = args[:agency_id] unless args[:agency_id].nil? - @campaign_id = args[:campaign_id] unless args[:campaign_id].nil? - @engine_account_id = args[:engine_account_id] unless args[:engine_account_id].nil? - @keyword_id = args[:keyword_id] unless args[:keyword_id].nil? + @ad_group_id = args[:ad_group_id] if args.key?(:ad_group_id) + @ad_id = args[:ad_id] if args.key?(:ad_id) + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @agency_id = args[:agency_id] if args.key?(:agency_id) + @campaign_id = args[:campaign_id] if args.key?(:campaign_id) + @engine_account_id = args[:engine_account_id] if args.key?(:engine_account_id) + @keyword_id = args[:keyword_id] if args.key?(:keyword_id) end end @@ -847,10 +847,10 @@ module Google # Update properties of this object def update!(**args) - @changed_attributes_since_timestamp = args[:changed_attributes_since_timestamp] unless args[:changed_attributes_since_timestamp].nil? - @changed_metrics_since_timestamp = args[:changed_metrics_since_timestamp] unless args[:changed_metrics_since_timestamp].nil? - @end_date = args[:end_date] unless args[:end_date].nil? - @start_date = args[:start_date] unless args[:start_date].nil? + @changed_attributes_since_timestamp = args[:changed_attributes_since_timestamp] if args.key?(:changed_attributes_since_timestamp) + @changed_metrics_since_timestamp = args[:changed_metrics_since_timestamp] if args.key?(:changed_metrics_since_timestamp) + @end_date = args[:end_date] if args.key?(:end_date) + @start_date = args[:start_date] if args.key?(:start_date) end end end @@ -881,9 +881,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @saved_column_name = args[:saved_column_name] unless args[:saved_column_name].nil? - @type = args[:type] unless args[:type].nil? + @kind = args[:kind] if args.key?(:kind) + @saved_column_name = args[:saved_column_name] if args.key?(:saved_column_name) + @type = args[:type] if args.key?(:type) end end @@ -911,8 +911,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -931,7 +931,7 @@ module Google # Update properties of this object def update!(**args) - @availabilities = args[:availabilities] unless args[:availabilities].nil? + @availabilities = args[:availabilities] if args.key?(:availabilities) end end @@ -950,7 +950,7 @@ module Google # Update properties of this object def update!(**args) - @availabilities = args[:availabilities] unless args[:availabilities].nil? + @availabilities = args[:availabilities] if args.key?(:availabilities) end end end diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index bf54bed15..2823f479e 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 = '20160114' + REVISION = '20160126' # 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 83b451994..1804099a7 100644 --- a/generated/google/apis/drive_v2/classes.rb +++ b/generated/google/apis/drive_v2/classes.rb @@ -163,30 +163,30 @@ module Google # Update properties of this object def update!(**args) - @additional_role_info = args[:additional_role_info] unless args[:additional_role_info].nil? - @domain_sharing_policy = args[:domain_sharing_policy] unless args[:domain_sharing_policy].nil? - @etag = args[:etag] unless args[:etag].nil? - @export_formats = args[:export_formats] unless args[:export_formats].nil? - @features = args[:features] unless args[:features].nil? - @folder_color_palette = args[:folder_color_palette] unless args[:folder_color_palette].nil? - @import_formats = args[:import_formats] unless args[:import_formats].nil? - @is_current_app_installed = args[:is_current_app_installed] unless args[:is_current_app_installed].nil? - @kind = args[:kind] unless args[:kind].nil? - @language_code = args[:language_code] unless args[:language_code].nil? - @largest_change_id = args[:largest_change_id] unless args[:largest_change_id].nil? - @max_upload_sizes = args[:max_upload_sizes] unless args[:max_upload_sizes].nil? - @name = args[:name] unless args[:name].nil? - @permission_id = args[:permission_id] unless args[:permission_id].nil? - @quota_bytes_by_service = args[:quota_bytes_by_service] unless args[:quota_bytes_by_service].nil? - @quota_bytes_total = args[:quota_bytes_total] unless args[:quota_bytes_total].nil? - @quota_bytes_used = args[:quota_bytes_used] unless args[:quota_bytes_used].nil? - @quota_bytes_used_aggregate = args[:quota_bytes_used_aggregate] unless args[:quota_bytes_used_aggregate].nil? - @quota_bytes_used_in_trash = args[:quota_bytes_used_in_trash] unless args[:quota_bytes_used_in_trash].nil? - @quota_type = args[:quota_type] unless args[:quota_type].nil? - @remaining_change_ids = args[:remaining_change_ids] unless args[:remaining_change_ids].nil? - @root_folder_id = args[:root_folder_id] unless args[:root_folder_id].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @user = args[:user] unless args[:user].nil? + @additional_role_info = args[:additional_role_info] if args.key?(:additional_role_info) + @domain_sharing_policy = args[:domain_sharing_policy] if args.key?(:domain_sharing_policy) + @etag = args[:etag] if args.key?(:etag) + @export_formats = args[:export_formats] if args.key?(:export_formats) + @features = args[:features] if args.key?(:features) + @folder_color_palette = args[:folder_color_palette] if args.key?(:folder_color_palette) + @import_formats = args[:import_formats] if args.key?(:import_formats) + @is_current_app_installed = args[:is_current_app_installed] if args.key?(:is_current_app_installed) + @kind = args[:kind] if args.key?(:kind) + @language_code = args[:language_code] if args.key?(:language_code) + @largest_change_id = args[:largest_change_id] if args.key?(:largest_change_id) + @max_upload_sizes = args[:max_upload_sizes] if args.key?(:max_upload_sizes) + @name = args[:name] if args.key?(:name) + @permission_id = args[:permission_id] if args.key?(:permission_id) + @quota_bytes_by_service = args[:quota_bytes_by_service] if args.key?(:quota_bytes_by_service) + @quota_bytes_total = args[:quota_bytes_total] if args.key?(:quota_bytes_total) + @quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used) + @quota_bytes_used_aggregate = args[:quota_bytes_used_aggregate] if args.key?(:quota_bytes_used_aggregate) + @quota_bytes_used_in_trash = args[:quota_bytes_used_in_trash] if args.key?(:quota_bytes_used_in_trash) + @quota_type = args[:quota_type] if args.key?(:quota_type) + @remaining_change_ids = args[:remaining_change_ids] if args.key?(:remaining_change_ids) + @root_folder_id = args[:root_folder_id] if args.key?(:root_folder_id) + @self_link = args[:self_link] if args.key?(:self_link) + @user = args[:user] if args.key?(:user) end # @@ -209,8 +209,8 @@ module Google # Update properties of this object def update!(**args) - @role_sets = args[:role_sets] unless args[:role_sets].nil? - @type = args[:type] unless args[:type].nil? + @role_sets = args[:role_sets] if args.key?(:role_sets) + @type = args[:type] if args.key?(:type) end # @@ -233,8 +233,8 @@ module Google # Update properties of this object def update!(**args) - @additional_roles = args[:additional_roles] unless args[:additional_roles].nil? - @primary_role = args[:primary_role] unless args[:primary_role].nil? + @additional_roles = args[:additional_roles] if args.key?(:additional_roles) + @primary_role = args[:primary_role] if args.key?(:primary_role) end end end @@ -259,8 +259,8 @@ module Google # Update properties of this object def update!(**args) - @source = args[:source] unless args[:source].nil? - @targets = args[:targets] unless args[:targets].nil? + @source = args[:source] if args.key?(:source) + @targets = args[:targets] if args.key?(:targets) end end @@ -284,8 +284,8 @@ module Google # Update properties of this object def update!(**args) - @feature_name = args[:feature_name] unless args[:feature_name].nil? - @feature_rate = args[:feature_rate] unless args[:feature_rate].nil? + @feature_name = args[:feature_name] if args.key?(:feature_name) + @feature_rate = args[:feature_rate] if args.key?(:feature_rate) end end @@ -309,8 +309,8 @@ module Google # Update properties of this object def update!(**args) - @source = args[:source] unless args[:source].nil? - @targets = args[:targets] unless args[:targets].nil? + @source = args[:source] if args.key?(:source) + @targets = args[:targets] if args.key?(:targets) end end @@ -334,8 +334,8 @@ module Google # Update properties of this object def update!(**args) - @size = args[:size] unless args[:size].nil? - @type = args[:type] unless args[:type].nil? + @size = args[:size] if args.key?(:size) + @type = args[:type] if args.key?(:type) end end @@ -359,8 +359,8 @@ module Google # Update properties of this object def update!(**args) - @bytes_used = args[:bytes_used] unless args[:bytes_used].nil? - @service_name = args[:service_name] unless args[:service_name].nil? + @bytes_used = args[:bytes_used] if args.key?(:bytes_used) + @service_name = args[:service_name] if args.key?(:service_name) end end end @@ -511,30 +511,30 @@ module Google # Update properties of this object def update!(**args) - @authorized = args[:authorized] unless args[:authorized].nil? - @create_in_folder_template = args[:create_in_folder_template] unless args[:create_in_folder_template].nil? - @create_url = args[:create_url] unless args[:create_url].nil? - @has_drive_wide_scope = args[:has_drive_wide_scope] unless args[:has_drive_wide_scope].nil? - @icons = args[:icons] unless args[:icons].nil? - @id = args[:id] unless args[:id].nil? - @installed = args[:installed] unless args[:installed].nil? - @kind = args[:kind] unless args[:kind].nil? - @long_description = args[:long_description] unless args[:long_description].nil? - @name = args[:name] unless args[:name].nil? - @object_type = args[:object_type] unless args[:object_type].nil? - @open_url_template = args[:open_url_template] unless args[:open_url_template].nil? - @primary_file_extensions = args[:primary_file_extensions] unless args[:primary_file_extensions].nil? - @primary_mime_types = args[:primary_mime_types] unless args[:primary_mime_types].nil? - @product_id = args[:product_id] unless args[:product_id].nil? - @product_url = args[:product_url] unless args[:product_url].nil? - @secondary_file_extensions = args[:secondary_file_extensions] unless args[:secondary_file_extensions].nil? - @secondary_mime_types = args[:secondary_mime_types] unless args[:secondary_mime_types].nil? - @short_description = args[:short_description] unless args[:short_description].nil? - @supports_create = args[:supports_create] unless args[:supports_create].nil? - @supports_import = args[:supports_import] unless args[:supports_import].nil? - @supports_multi_open = args[:supports_multi_open] unless args[:supports_multi_open].nil? - @supports_offline_create = args[:supports_offline_create] unless args[:supports_offline_create].nil? - @use_by_default = args[:use_by_default] unless args[:use_by_default].nil? + @authorized = args[:authorized] if args.key?(:authorized) + @create_in_folder_template = args[:create_in_folder_template] if args.key?(:create_in_folder_template) + @create_url = args[:create_url] if args.key?(:create_url) + @has_drive_wide_scope = args[:has_drive_wide_scope] if args.key?(:has_drive_wide_scope) + @icons = args[:icons] if args.key?(:icons) + @id = args[:id] if args.key?(:id) + @installed = args[:installed] if args.key?(:installed) + @kind = args[:kind] if args.key?(:kind) + @long_description = args[:long_description] if args.key?(:long_description) + @name = args[:name] if args.key?(:name) + @object_type = args[:object_type] if args.key?(:object_type) + @open_url_template = args[:open_url_template] if args.key?(:open_url_template) + @primary_file_extensions = args[:primary_file_extensions] if args.key?(:primary_file_extensions) + @primary_mime_types = args[:primary_mime_types] if args.key?(:primary_mime_types) + @product_id = args[:product_id] if args.key?(:product_id) + @product_url = args[:product_url] if args.key?(:product_url) + @secondary_file_extensions = args[:secondary_file_extensions] if args.key?(:secondary_file_extensions) + @secondary_mime_types = args[:secondary_mime_types] if args.key?(:secondary_mime_types) + @short_description = args[:short_description] if args.key?(:short_description) + @supports_create = args[:supports_create] if args.key?(:supports_create) + @supports_import = args[:supports_import] if args.key?(:supports_import) + @supports_multi_open = args[:supports_multi_open] if args.key?(:supports_multi_open) + @supports_offline_create = args[:supports_offline_create] if args.key?(:supports_offline_create) + @use_by_default = args[:use_by_default] if args.key?(:use_by_default) end # @@ -565,9 +565,9 @@ module Google # Update properties of this object def update!(**args) - @category = args[:category] unless args[:category].nil? - @icon_url = args[:icon_url] unless args[:icon_url].nil? - @size = args[:size] unless args[:size].nil? + @category = args[:category] if args.key?(:category) + @icon_url = args[:icon_url] if args.key?(:icon_url) + @size = args[:size] if args.key?(:size) end end end @@ -609,11 +609,11 @@ module Google # Update properties of this object def update!(**args) - @default_app_ids = args[:default_app_ids] unless args[:default_app_ids].nil? - @etag = args[:etag] unless args[:etag].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @default_app_ids = args[:default_app_ids] if args.key?(:default_app_ids) + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -663,13 +663,13 @@ module Google # Update properties of this object def update!(**args) - @deleted = args[:deleted] unless args[:deleted].nil? - @file = args[:file] unless args[:file].nil? - @file_id = args[:file_id] unless args[:file_id].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @modification_date = args[:modification_date] unless args[:modification_date].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @deleted = args[:deleted] if args.key?(:deleted) + @file = args[:file] if args.key?(:file) + @file_id = args[:file_id] if args.key?(:file_id) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @modification_date = args[:modification_date] if args.key?(:modification_date) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -718,13 +718,13 @@ module Google # 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? - @largest_change_id = args[:largest_change_id] unless args[:largest_change_id].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @largest_change_id = args[:largest_change_id] if args.key?(:largest_change_id) + @next_link = args[:next_link] if args.key?(:next_link) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -793,16 +793,16 @@ module Google # Update properties of this object def update!(**args) - @address = args[:address] unless args[:address].nil? - @expiration = args[:expiration] unless args[:expiration].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @params = args[:params] unless args[:params].nil? - @payload = args[:payload] unless args[:payload].nil? - @resource_id = args[:resource_id] unless args[:resource_id].nil? - @resource_uri = args[:resource_uri] unless args[:resource_uri].nil? - @token = args[:token] unless args[:token].nil? - @type = args[:type] unless args[:type].nil? + @address = args[:address] if args.key?(:address) + @expiration = args[:expiration] if args.key?(:expiration) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @params = args[:params] if args.key?(:params) + @payload = args[:payload] if args.key?(:payload) + @resource_id = args[:resource_id] if args.key?(:resource_id) + @resource_uri = args[:resource_uri] if args.key?(:resource_uri) + @token = args[:token] if args.key?(:token) + @type = args[:type] if args.key?(:type) end end @@ -846,12 +846,12 @@ module Google # 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_link = args[:next_link] unless args[:next_link].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -885,10 +885,10 @@ module Google # Update properties of this object def update!(**args) - @child_link = args[:child_link] unless args[:child_link].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @child_link = args[:child_link] if args.key?(:child_link) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -985,21 +985,21 @@ module Google # Update properties of this object def update!(**args) - @anchor = args[:anchor] unless args[:anchor].nil? - @author = args[:author] unless args[:author].nil? - @comment_id = args[:comment_id] unless args[:comment_id].nil? - @content = args[:content] unless args[:content].nil? - @context = args[:context] unless args[:context].nil? - @created_date = args[:created_date] unless args[:created_date].nil? - @deleted = args[:deleted] unless args[:deleted].nil? - @file_id = args[:file_id] unless args[:file_id].nil? - @file_title = args[:file_title] unless args[:file_title].nil? - @html_content = args[:html_content] unless args[:html_content].nil? - @kind = args[:kind] unless args[:kind].nil? - @modified_date = args[:modified_date] unless args[:modified_date].nil? - @replies = args[:replies] unless args[:replies].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @status = args[:status] unless args[:status].nil? + @anchor = args[:anchor] if args.key?(:anchor) + @author = args[:author] if args.key?(:author) + @comment_id = args[:comment_id] if args.key?(:comment_id) + @content = args[:content] if args.key?(:content) + @context = args[:context] if args.key?(:context) + @created_date = args[:created_date] if args.key?(:created_date) + @deleted = args[:deleted] if args.key?(:deleted) + @file_id = args[:file_id] if args.key?(:file_id) + @file_title = args[:file_title] if args.key?(:file_title) + @html_content = args[:html_content] if args.key?(:html_content) + @kind = args[:kind] if args.key?(:kind) + @modified_date = args[:modified_date] if args.key?(:modified_date) + @replies = args[:replies] if args.key?(:replies) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) end # The context of the file which is being commented on. @@ -1024,8 +1024,8 @@ module Google # Update properties of this object def update!(**args) - @type = args[:type] unless args[:type].nil? - @value = args[:value] unless args[:value].nil? + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) end end end @@ -1065,11 +1065,11 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -1136,15 +1136,15 @@ module Google # Update properties of this object def update!(**args) - @author = args[:author] unless args[:author].nil? - @content = args[:content] unless args[:content].nil? - @created_date = args[:created_date] unless args[:created_date].nil? - @deleted = args[:deleted] unless args[:deleted].nil? - @html_content = args[:html_content] unless args[:html_content].nil? - @kind = args[:kind] unless args[:kind].nil? - @modified_date = args[:modified_date] unless args[:modified_date].nil? - @reply_id = args[:reply_id] unless args[:reply_id].nil? - @verb = args[:verb] unless args[:verb].nil? + @author = args[:author] if args.key?(:author) + @content = args[:content] if args.key?(:content) + @created_date = args[:created_date] if args.key?(:created_date) + @deleted = args[:deleted] if args.key?(:deleted) + @html_content = args[:html_content] if args.key?(:html_content) + @kind = args[:kind] if args.key?(:kind) + @modified_date = args[:modified_date] if args.key?(:modified_date) + @reply_id = args[:reply_id] if args.key?(:reply_id) + @verb = args[:verb] if args.key?(:verb) end end @@ -1183,11 +1183,11 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -1529,62 +1529,62 @@ module Google # Update properties of this object def update!(**args) - @alternate_link = args[:alternate_link] unless args[:alternate_link].nil? - @app_data_contents = args[:app_data_contents] unless args[:app_data_contents].nil? - @can_comment = args[:can_comment] unless args[:can_comment].nil? - @copyable = args[:copyable] unless args[:copyable].nil? - @created_date = args[:created_date] unless args[:created_date].nil? - @default_open_with_link = args[:default_open_with_link] unless args[:default_open_with_link].nil? - @description = args[:description] unless args[:description].nil? - @download_url = args[:download_url] unless args[:download_url].nil? - @editable = args[:editable] unless args[:editable].nil? - @embed_link = args[:embed_link] unless args[:embed_link].nil? - @etag = args[:etag] unless args[:etag].nil? - @explicitly_trashed = args[:explicitly_trashed] unless args[:explicitly_trashed].nil? - @export_links = args[:export_links] unless args[:export_links].nil? - @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? - @image_media_metadata = args[:image_media_metadata] unless args[:image_media_metadata].nil? - @indexable_text = args[:indexable_text] unless args[:indexable_text].nil? - @kind = args[:kind] unless args[:kind].nil? - @labels = args[:labels] unless args[:labels].nil? - @last_modifying_user = args[:last_modifying_user] unless args[:last_modifying_user].nil? - @last_modifying_user_name = args[:last_modifying_user_name] unless args[:last_modifying_user_name].nil? - @last_viewed_by_me_date = args[:last_viewed_by_me_date] unless args[:last_viewed_by_me_date].nil? - @marked_viewed_by_me_date = args[:marked_viewed_by_me_date] unless args[:marked_viewed_by_me_date].nil? - @md5_checksum = args[:md5_checksum] unless args[:md5_checksum].nil? - @mime_type = args[:mime_type] unless args[:mime_type].nil? - @modified_by_me_date = args[:modified_by_me_date] unless args[:modified_by_me_date].nil? - @modified_date = args[:modified_date] unless args[:modified_date].nil? - @open_with_links = args[:open_with_links] unless args[:open_with_links].nil? - @original_filename = args[:original_filename] unless args[:original_filename].nil? - @owned_by_me = args[:owned_by_me] unless args[:owned_by_me].nil? - @owner_names = args[:owner_names] unless args[:owner_names].nil? - @owners = args[:owners] unless args[:owners].nil? - @parents = args[:parents] unless args[:parents].nil? - @permissions = args[:permissions] unless args[:permissions].nil? - @properties = args[:properties] unless args[:properties].nil? - @quota_bytes_used = args[:quota_bytes_used] unless args[:quota_bytes_used].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @shareable = args[:shareable] unless args[:shareable].nil? - @shared = args[:shared] unless args[:shared].nil? - @shared_with_me_date = args[:shared_with_me_date] unless args[:shared_with_me_date].nil? - @sharing_user = args[:sharing_user] unless args[:sharing_user].nil? - @spaces = args[:spaces] unless args[:spaces].nil? - @thumbnail = args[:thumbnail] unless args[:thumbnail].nil? - @thumbnail_link = args[:thumbnail_link] unless args[:thumbnail_link].nil? - @title = args[:title] unless args[:title].nil? - @user_permission = args[:user_permission] unless args[:user_permission].nil? - @version = args[:version] unless args[:version].nil? - @video_media_metadata = args[:video_media_metadata] unless args[:video_media_metadata].nil? - @web_content_link = args[:web_content_link] unless args[:web_content_link].nil? - @web_view_link = args[:web_view_link] unless args[:web_view_link].nil? - @writers_can_share = args[:writers_can_share] unless args[:writers_can_share].nil? + @alternate_link = args[:alternate_link] if args.key?(:alternate_link) + @app_data_contents = args[:app_data_contents] if args.key?(:app_data_contents) + @can_comment = args[:can_comment] if args.key?(:can_comment) + @copyable = args[:copyable] if args.key?(:copyable) + @created_date = args[:created_date] if args.key?(:created_date) + @default_open_with_link = args[:default_open_with_link] if args.key?(:default_open_with_link) + @description = args[:description] if args.key?(:description) + @download_url = args[:download_url] if args.key?(:download_url) + @editable = args[:editable] if args.key?(:editable) + @embed_link = args[:embed_link] if args.key?(:embed_link) + @etag = args[:etag] if args.key?(:etag) + @explicitly_trashed = args[:explicitly_trashed] if args.key?(:explicitly_trashed) + @export_links = args[:export_links] if args.key?(:export_links) + @file_extension = args[:file_extension] if args.key?(:file_extension) + @file_size = args[:file_size] if args.key?(:file_size) + @folder_color_rgb = args[:folder_color_rgb] if args.key?(:folder_color_rgb) + @full_file_extension = args[:full_file_extension] if args.key?(:full_file_extension) + @head_revision_id = args[:head_revision_id] if args.key?(:head_revision_id) + @icon_link = args[:icon_link] if args.key?(:icon_link) + @id = args[:id] if args.key?(:id) + @image_media_metadata = args[:image_media_metadata] if args.key?(:image_media_metadata) + @indexable_text = args[:indexable_text] if args.key?(:indexable_text) + @kind = args[:kind] if args.key?(:kind) + @labels = args[:labels] if args.key?(:labels) + @last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user) + @last_modifying_user_name = args[:last_modifying_user_name] if args.key?(:last_modifying_user_name) + @last_viewed_by_me_date = args[:last_viewed_by_me_date] if args.key?(:last_viewed_by_me_date) + @marked_viewed_by_me_date = args[:marked_viewed_by_me_date] if args.key?(:marked_viewed_by_me_date) + @md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @modified_by_me_date = args[:modified_by_me_date] if args.key?(:modified_by_me_date) + @modified_date = args[:modified_date] if args.key?(:modified_date) + @open_with_links = args[:open_with_links] if args.key?(:open_with_links) + @original_filename = args[:original_filename] if args.key?(:original_filename) + @owned_by_me = args[:owned_by_me] if args.key?(:owned_by_me) + @owner_names = args[:owner_names] if args.key?(:owner_names) + @owners = args[:owners] if args.key?(:owners) + @parents = args[:parents] if args.key?(:parents) + @permissions = args[:permissions] if args.key?(:permissions) + @properties = args[:properties] if args.key?(:properties) + @quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used) + @self_link = args[:self_link] if args.key?(:self_link) + @shareable = args[:shareable] if args.key?(:shareable) + @shared = args[:shared] if args.key?(:shared) + @shared_with_me_date = args[:shared_with_me_date] if args.key?(:shared_with_me_date) + @sharing_user = args[:sharing_user] if args.key?(:sharing_user) + @spaces = args[:spaces] if args.key?(:spaces) + @thumbnail = args[:thumbnail] if args.key?(:thumbnail) + @thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link) + @title = args[:title] if args.key?(:title) + @user_permission = args[:user_permission] if args.key?(:user_permission) + @version = args[:version] if args.key?(:version) + @video_media_metadata = args[:video_media_metadata] if args.key?(:video_media_metadata) + @web_content_link = args[:web_content_link] if args.key?(:web_content_link) + @web_view_link = args[:web_view_link] if args.key?(:web_view_link) + @writers_can_share = args[:writers_can_share] if args.key?(:writers_can_share) end # Metadata about image media. This will only be present for image types, and its @@ -1705,27 +1705,27 @@ module Google # Update properties of this object def update!(**args) - @aperture = args[:aperture] unless args[:aperture].nil? - @camera_make = args[:camera_make] unless args[:camera_make].nil? - @camera_model = args[:camera_model] unless args[:camera_model].nil? - @color_space = args[:color_space] unless args[:color_space].nil? - @date = args[:date] unless args[:date].nil? - @exposure_bias = args[:exposure_bias] unless args[:exposure_bias].nil? - @exposure_mode = args[:exposure_mode] unless args[:exposure_mode].nil? - @exposure_time = args[:exposure_time] unless args[:exposure_time].nil? - @flash_used = args[:flash_used] unless args[:flash_used].nil? - @focal_length = args[:focal_length] unless args[:focal_length].nil? - @height = args[:height] unless args[:height].nil? - @iso_speed = args[:iso_speed] unless args[:iso_speed].nil? - @lens = args[:lens] unless args[:lens].nil? - @location = args[:location] unless args[:location].nil? - @max_aperture_value = args[:max_aperture_value] unless args[:max_aperture_value].nil? - @metering_mode = args[:metering_mode] unless args[:metering_mode].nil? - @rotation = args[:rotation] unless args[:rotation].nil? - @sensor = args[:sensor] unless args[:sensor].nil? - @subject_distance = args[:subject_distance] unless args[:subject_distance].nil? - @white_balance = args[:white_balance] unless args[:white_balance].nil? - @width = args[:width] unless args[:width].nil? + @aperture = args[:aperture] if args.key?(:aperture) + @camera_make = args[:camera_make] if args.key?(:camera_make) + @camera_model = args[:camera_model] if args.key?(:camera_model) + @color_space = args[:color_space] if args.key?(:color_space) + @date = args[:date] if args.key?(:date) + @exposure_bias = args[:exposure_bias] if args.key?(:exposure_bias) + @exposure_mode = args[:exposure_mode] if args.key?(:exposure_mode) + @exposure_time = args[:exposure_time] if args.key?(:exposure_time) + @flash_used = args[:flash_used] if args.key?(:flash_used) + @focal_length = args[:focal_length] if args.key?(:focal_length) + @height = args[:height] if args.key?(:height) + @iso_speed = args[:iso_speed] if args.key?(:iso_speed) + @lens = args[:lens] if args.key?(:lens) + @location = args[:location] if args.key?(:location) + @max_aperture_value = args[:max_aperture_value] if args.key?(:max_aperture_value) + @metering_mode = args[:metering_mode] if args.key?(:metering_mode) + @rotation = args[:rotation] if args.key?(:rotation) + @sensor = args[:sensor] if args.key?(:sensor) + @subject_distance = args[:subject_distance] if args.key?(:subject_distance) + @white_balance = args[:white_balance] if args.key?(:white_balance) + @width = args[:width] if args.key?(:width) end # Geographic location information stored in the image. @@ -1753,9 +1753,9 @@ module Google # Update properties of this object def update!(**args) - @altitude = args[:altitude] unless args[:altitude].nil? - @latitude = args[:latitude] unless args[:latitude].nil? - @longitude = args[:longitude] unless args[:longitude].nil? + @altitude = args[:altitude] if args.key?(:altitude) + @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) end end end @@ -1775,7 +1775,7 @@ module Google # Update properties of this object def update!(**args) - @text = args[:text] unless args[:text].nil? + @text = args[:text] if args.key?(:text) end end @@ -1821,11 +1821,11 @@ module Google # Update properties of this object def update!(**args) - @hidden = args[:hidden] unless args[:hidden].nil? - @restricted = args[:restricted] unless args[:restricted].nil? - @starred = args[:starred] unless args[:starred].nil? - @trashed = args[:trashed] unless args[:trashed].nil? - @viewed = args[:viewed] unless args[:viewed].nil? + @hidden = args[:hidden] if args.key?(:hidden) + @restricted = args[:restricted] if args.key?(:restricted) + @starred = args[:starred] if args.key?(:starred) + @trashed = args[:trashed] if args.key?(:trashed) + @viewed = args[:viewed] if args.key?(:viewed) end end @@ -1851,8 +1851,8 @@ module Google # Update properties of this object def update!(**args) - @image = args[:image] unless args[:image].nil? - @mime_type = args[:mime_type] unless args[:mime_type].nil? + @image = args[:image] if args.key?(:image) + @mime_type = args[:mime_type] if args.key?(:mime_type) end end @@ -1881,9 +1881,9 @@ module Google # Update properties of this object def update!(**args) - @duration_millis = args[:duration_millis] unless args[:duration_millis].nil? - @height = args[:height] unless args[:height].nil? - @width = args[:width] unless args[:width].nil? + @duration_millis = args[:duration_millis] if args.key?(:duration_millis) + @height = args[:height] if args.key?(:height) + @width = args[:width] if args.key?(:width) end end end @@ -1928,12 +1928,12 @@ module Google # 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_link = args[:next_link] unless args[:next_link].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -1962,9 +1962,9 @@ module Google # 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? + @ids = args[:ids] if args.key?(:ids) + @kind = args[:kind] if args.key?(:kind) + @space = args[:space] if args.key?(:space) end end @@ -1998,10 +1998,10 @@ module Google # 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? - @self_link = args[:self_link] unless args[:self_link].nil? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -2041,11 +2041,11 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @is_root = args[:is_root] unless args[:is_root].nil? - @kind = args[:kind] unless args[:kind].nil? - @parent_link = args[:parent_link] unless args[:parent_link].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @id = args[:id] if args.key?(:id) + @is_root = args[:is_root] if args.key?(:is_root) + @kind = args[:kind] if args.key?(:kind) + @parent_link = args[:parent_link] if args.key?(:parent_link) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -2143,20 +2143,20 @@ module Google # Update properties of this object def update!(**args) - @additional_roles = args[:additional_roles] unless args[:additional_roles].nil? - @auth_key = args[:auth_key] unless args[:auth_key].nil? - @domain = args[:domain] unless args[:domain].nil? - @email_address = args[:email_address] unless args[:email_address].nil? - @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? - @photo_link = args[:photo_link] unless args[:photo_link].nil? - @role = args[:role] unless args[:role].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @type = args[:type] unless args[:type].nil? - @value = args[:value] unless args[:value].nil? - @with_link = args[:with_link] unless args[:with_link].nil? + @additional_roles = args[:additional_roles] if args.key?(:additional_roles) + @auth_key = args[:auth_key] if args.key?(:auth_key) + @domain = args[:domain] if args.key?(:domain) + @email_address = args[:email_address] if args.key?(:email_address) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @photo_link = args[:photo_link] if args.key?(:photo_link) + @role = args[:role] if args.key?(:role) + @self_link = args[:self_link] if args.key?(:self_link) + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) + @with_link = args[:with_link] if args.key?(:with_link) end end @@ -2180,8 +2180,8 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) end end @@ -2215,10 +2215,10 @@ module Google # 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? - @self_link = args[:self_link] unless args[:self_link].nil? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -2269,12 +2269,12 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @key = args[:key] unless args[:key].nil? - @kind = args[:kind] unless args[:kind].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @value = args[:value] unless args[:value].nil? - @visibility = args[:visibility] unless args[:visibility].nil? + @etag = args[:etag] if args.key?(:etag) + @key = args[:key] if args.key?(:key) + @kind = args[:kind] if args.key?(:kind) + @self_link = args[:self_link] if args.key?(:self_link) + @value = args[:value] if args.key?(:value) + @visibility = args[:visibility] if args.key?(:visibility) end end @@ -2309,10 +2309,10 @@ module Google # 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? - @self_link = args[:self_link] unless args[:self_link].nil? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -2430,24 +2430,24 @@ module Google # Update properties of this object def update!(**args) - @download_url = args[:download_url] unless args[:download_url].nil? - @etag = args[:etag] unless args[:etag].nil? - @export_links = args[:export_links] unless args[:export_links].nil? - @file_size = args[:file_size] unless args[:file_size].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_modifying_user = args[:last_modifying_user] unless args[:last_modifying_user].nil? - @last_modifying_user_name = args[:last_modifying_user_name] unless args[:last_modifying_user_name].nil? - @md5_checksum = args[:md5_checksum] unless args[:md5_checksum].nil? - @mime_type = args[:mime_type] unless args[:mime_type].nil? - @modified_date = args[:modified_date] unless args[:modified_date].nil? - @original_filename = args[:original_filename] unless args[:original_filename].nil? - @pinned = args[:pinned] unless args[:pinned].nil? - @publish_auto = args[:publish_auto] unless args[:publish_auto].nil? - @published = args[:published] unless args[:published].nil? - @published_link = args[:published_link] unless args[:published_link].nil? - @published_outside_domain = args[:published_outside_domain] unless args[:published_outside_domain].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @download_url = args[:download_url] if args.key?(:download_url) + @etag = args[:etag] if args.key?(:etag) + @export_links = args[:export_links] if args.key?(:export_links) + @file_size = args[:file_size] if args.key?(:file_size) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user) + @last_modifying_user_name = args[:last_modifying_user_name] if args.key?(:last_modifying_user_name) + @md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @modified_date = args[:modified_date] if args.key?(:modified_date) + @original_filename = args[:original_filename] if args.key?(:original_filename) + @pinned = args[:pinned] if args.key?(:pinned) + @publish_auto = args[:publish_auto] if args.key?(:publish_auto) + @published = args[:published] if args.key?(:published) + @published_link = args[:published_link] if args.key?(:published_link) + @published_outside_domain = args[:published_outside_domain] if args.key?(:published_outside_domain) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -2481,10 +2481,10 @@ module Google # 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? - @self_link = args[:self_link] unless args[:self_link].nil? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -2530,12 +2530,12 @@ module Google # Update properties of this object def update!(**args) - @display_name = args[:display_name] unless args[:display_name].nil? - @email_address = args[:email_address] unless args[:email_address].nil? - @is_authenticated_user = args[:is_authenticated_user] unless args[:is_authenticated_user].nil? - @kind = args[:kind] unless args[:kind].nil? - @permission_id = args[:permission_id] unless args[:permission_id].nil? - @picture = args[:picture] unless args[:picture].nil? + @display_name = args[:display_name] if args.key?(:display_name) + @email_address = args[:email_address] if args.key?(:email_address) + @is_authenticated_user = args[:is_authenticated_user] if args.key?(:is_authenticated_user) + @kind = args[:kind] if args.key?(:kind) + @permission_id = args[:permission_id] if args.key?(:permission_id) + @picture = args[:picture] if args.key?(:picture) end # The user's profile picture. @@ -2553,7 +2553,7 @@ module Google # Update properties of this object def update!(**args) - @url = args[:url] unless args[:url].nil? + @url = args[:url] if args.key?(:url) end end end diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index c55522870..1c500b09a 100644 --- a/generated/google/apis/drive_v3.rb +++ b/generated/google/apis/drive_v3.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/drive/ module DriveV3 VERSION = 'V3' - REVISION = '20160114' + REVISION = '20160126' # View and manage the files in your Google Drive AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' diff --git a/generated/google/apis/drive_v3/classes.rb b/generated/google/apis/drive_v3/classes.rb index 1023869eb..31067ff00 100644 --- a/generated/google/apis/drive_v3/classes.rb +++ b/generated/google/apis/drive_v3/classes.rb @@ -78,15 +78,15 @@ module Google # Update properties of this object def update!(**args) - @app_installed = args[:app_installed] unless args[:app_installed].nil? - @export_formats = args[:export_formats] unless args[:export_formats].nil? - @folder_color_palette = args[:folder_color_palette] unless args[:folder_color_palette].nil? - @import_formats = args[:import_formats] unless args[:import_formats].nil? - @kind = args[:kind] unless args[:kind].nil? - @max_import_sizes = args[:max_import_sizes] unless args[:max_import_sizes].nil? - @max_upload_size = args[:max_upload_size] unless args[:max_upload_size].nil? - @storage_quota = args[:storage_quota] unless args[:storage_quota].nil? - @user = args[:user] unless args[:user].nil? + @app_installed = args[:app_installed] if args.key?(:app_installed) + @export_formats = args[:export_formats] if args.key?(:export_formats) + @folder_color_palette = args[:folder_color_palette] if args.key?(:folder_color_palette) + @import_formats = args[:import_formats] if args.key?(:import_formats) + @kind = args[:kind] if args.key?(:kind) + @max_import_sizes = args[:max_import_sizes] if args.key?(:max_import_sizes) + @max_upload_size = args[:max_upload_size] if args.key?(:max_upload_size) + @storage_quota = args[:storage_quota] if args.key?(:storage_quota) + @user = args[:user] if args.key?(:user) end # The user's storage quota limits and usage. All fields are measured in bytes. @@ -120,10 +120,10 @@ module Google # Update properties of this object def update!(**args) - @limit = args[:limit] unless args[:limit].nil? - @usage = args[:usage] unless args[:usage].nil? - @usage_in_drive = args[:usage_in_drive] unless args[:usage_in_drive].nil? - @usage_in_drive_trash = args[:usage_in_drive_trash] unless args[:usage_in_drive_trash].nil? + @limit = args[:limit] if args.key?(:limit) + @usage = args[:usage] if args.key?(:usage) + @usage_in_drive = args[:usage_in_drive] if args.key?(:usage_in_drive) + @usage_in_drive_trash = args[:usage_in_drive_trash] if args.key?(:usage_in_drive_trash) end end end @@ -165,11 +165,11 @@ module Google # Update properties of this object def update!(**args) - @file = args[:file] unless args[:file].nil? - @file_id = args[:file_id] unless args[:file_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @removed = args[:removed] unless args[:removed].nil? - @time = args[:time] unless args[:time].nil? + @file = args[:file] if args.key?(:file) + @file_id = args[:file_id] if args.key?(:file_id) + @kind = args[:kind] if args.key?(:kind) + @removed = args[:removed] if args.key?(:removed) + @time = args[:time] if args.key?(:time) end end @@ -205,10 +205,10 @@ module Google # Update properties of this object def update!(**args) - @changes = args[:changes] unless args[:changes].nil? - @kind = args[:kind] unless args[:kind].nil? - @new_start_page_token = args[:new_start_page_token] unless args[:new_start_page_token].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @changes = args[:changes] if args.key?(:changes) + @kind = args[:kind] if args.key?(:kind) + @new_start_page_token = args[:new_start_page_token] if args.key?(:new_start_page_token) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -277,16 +277,16 @@ module Google # Update properties of this object def update!(**args) - @address = args[:address] unless args[:address].nil? - @expiration = args[:expiration] unless args[:expiration].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @params = args[:params] unless args[:params].nil? - @payload = args[:payload] unless args[:payload].nil? - @resource_id = args[:resource_id] unless args[:resource_id].nil? - @resource_uri = args[:resource_uri] unless args[:resource_uri].nil? - @token = args[:token] unless args[:token].nil? - @type = args[:type] unless args[:type].nil? + @address = args[:address] if args.key?(:address) + @expiration = args[:expiration] if args.key?(:expiration) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @params = args[:params] if args.key?(:params) + @payload = args[:payload] if args.key?(:payload) + @resource_id = args[:resource_id] if args.key?(:resource_id) + @resource_uri = args[:resource_uri] if args.key?(:resource_uri) + @token = args[:token] if args.key?(:token) + @type = args[:type] if args.key?(:type) end end @@ -367,18 +367,18 @@ module Google # Update properties of this object def update!(**args) - @anchor = args[:anchor] unless args[:anchor].nil? - @author = args[:author] unless args[:author].nil? - @content = args[:content] unless args[:content].nil? - @created_time = args[:created_time] unless args[:created_time].nil? - @deleted = args[:deleted] unless args[:deleted].nil? - @html_content = args[:html_content] unless args[:html_content].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @modified_time = args[:modified_time] unless args[:modified_time].nil? - @quoted_file_content = args[:quoted_file_content] unless args[:quoted_file_content].nil? - @replies = args[:replies] unless args[:replies].nil? - @resolved = args[:resolved] unless args[:resolved].nil? + @anchor = args[:anchor] if args.key?(:anchor) + @author = args[:author] if args.key?(:author) + @content = args[:content] if args.key?(:content) + @created_time = args[:created_time] if args.key?(:created_time) + @deleted = args[:deleted] if args.key?(:deleted) + @html_content = args[:html_content] if args.key?(:html_content) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @modified_time = args[:modified_time] if args.key?(:modified_time) + @quoted_file_content = args[:quoted_file_content] if args.key?(:quoted_file_content) + @replies = args[:replies] if args.key?(:replies) + @resolved = args[:resolved] if args.key?(:resolved) end # The file content to which the comment refers, typically within the anchor @@ -404,8 +404,8 @@ module Google # Update properties of this object def update!(**args) - @mime_type = args[:mime_type] unless args[:mime_type].nil? - @value = args[:value] unless args[:value].nil? + @mime_type = args[:mime_type] if args.key?(:mime_type) + @value = args[:value] if args.key?(:value) end end end @@ -436,9 +436,9 @@ module Google # Update properties of this object def update!(**args) - @comments = args[:comments] unless args[:comments].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @comments = args[:comments] if args.key?(:comments) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -715,49 +715,49 @@ module Google # Update properties of this object def update!(**args) - @app_properties = args[:app_properties] unless args[:app_properties].nil? - @capabilities = args[:capabilities] unless args[:capabilities].nil? - @content_hints = args[:content_hints] unless args[:content_hints].nil? - @created_time = args[:created_time] unless args[:created_time].nil? - @description = args[:description] unless args[:description].nil? - @explicitly_trashed = args[:explicitly_trashed] unless args[:explicitly_trashed].nil? - @file_extension = args[:file_extension] unless args[:file_extension].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? - @image_media_metadata = args[:image_media_metadata] unless args[:image_media_metadata].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_modifying_user = args[:last_modifying_user] unless args[:last_modifying_user].nil? - @md5_checksum = args[:md5_checksum] unless args[:md5_checksum].nil? - @mime_type = args[:mime_type] unless args[:mime_type].nil? - @modified_by_me_time = args[:modified_by_me_time] unless args[:modified_by_me_time].nil? - @modified_time = args[:modified_time] unless args[:modified_time].nil? - @name = args[:name] unless args[:name].nil? - @original_filename = args[:original_filename] unless args[:original_filename].nil? - @owned_by_me = args[:owned_by_me] unless args[:owned_by_me].nil? - @owners = args[:owners] unless args[:owners].nil? - @parents = args[:parents] unless args[:parents].nil? - @permissions = args[:permissions] unless args[:permissions].nil? - @properties = args[:properties] unless args[:properties].nil? - @quota_bytes_used = args[:quota_bytes_used] unless args[:quota_bytes_used].nil? - @shared = args[:shared] unless args[:shared].nil? - @shared_with_me_time = args[:shared_with_me_time] unless args[:shared_with_me_time].nil? - @sharing_user = args[:sharing_user] unless args[:sharing_user].nil? - @size = args[:size] unless args[:size].nil? - @spaces = args[:spaces] unless args[:spaces].nil? - @starred = args[:starred] unless args[:starred].nil? - @thumbnail_link = args[:thumbnail_link] unless args[:thumbnail_link].nil? - @trashed = args[:trashed] unless args[:trashed].nil? - @version = args[:version] unless args[:version].nil? - @video_media_metadata = args[:video_media_metadata] unless args[:video_media_metadata].nil? - @viewed_by_me = args[:viewed_by_me] unless args[:viewed_by_me].nil? - @viewed_by_me_time = args[:viewed_by_me_time] unless args[:viewed_by_me_time].nil? - @viewers_can_copy_content = args[:viewers_can_copy_content] unless args[:viewers_can_copy_content].nil? - @web_content_link = args[:web_content_link] unless args[:web_content_link].nil? - @web_view_link = args[:web_view_link] unless args[:web_view_link].nil? - @writers_can_share = args[:writers_can_share] unless args[:writers_can_share].nil? + @app_properties = args[:app_properties] if args.key?(:app_properties) + @capabilities = args[:capabilities] if args.key?(:capabilities) + @content_hints = args[:content_hints] if args.key?(:content_hints) + @created_time = args[:created_time] if args.key?(:created_time) + @description = args[:description] if args.key?(:description) + @explicitly_trashed = args[:explicitly_trashed] if args.key?(:explicitly_trashed) + @file_extension = args[:file_extension] if args.key?(:file_extension) + @folder_color_rgb = args[:folder_color_rgb] if args.key?(:folder_color_rgb) + @full_file_extension = args[:full_file_extension] if args.key?(:full_file_extension) + @head_revision_id = args[:head_revision_id] if args.key?(:head_revision_id) + @icon_link = args[:icon_link] if args.key?(:icon_link) + @id = args[:id] if args.key?(:id) + @image_media_metadata = args[:image_media_metadata] if args.key?(:image_media_metadata) + @kind = args[:kind] if args.key?(:kind) + @last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user) + @md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @modified_by_me_time = args[:modified_by_me_time] if args.key?(:modified_by_me_time) + @modified_time = args[:modified_time] if args.key?(:modified_time) + @name = args[:name] if args.key?(:name) + @original_filename = args[:original_filename] if args.key?(:original_filename) + @owned_by_me = args[:owned_by_me] if args.key?(:owned_by_me) + @owners = args[:owners] if args.key?(:owners) + @parents = args[:parents] if args.key?(:parents) + @permissions = args[:permissions] if args.key?(:permissions) + @properties = args[:properties] if args.key?(:properties) + @quota_bytes_used = args[:quota_bytes_used] if args.key?(:quota_bytes_used) + @shared = args[:shared] if args.key?(:shared) + @shared_with_me_time = args[:shared_with_me_time] if args.key?(:shared_with_me_time) + @sharing_user = args[:sharing_user] if args.key?(:sharing_user) + @size = args[:size] if args.key?(:size) + @spaces = args[:spaces] if args.key?(:spaces) + @starred = args[:starred] if args.key?(:starred) + @thumbnail_link = args[:thumbnail_link] if args.key?(:thumbnail_link) + @trashed = args[:trashed] if args.key?(:trashed) + @version = args[:version] if args.key?(:version) + @video_media_metadata = args[:video_media_metadata] if args.key?(:video_media_metadata) + @viewed_by_me = args[:viewed_by_me] if args.key?(:viewed_by_me) + @viewed_by_me_time = args[:viewed_by_me_time] if args.key?(:viewed_by_me_time) + @viewers_can_copy_content = args[:viewers_can_copy_content] if args.key?(:viewers_can_copy_content) + @web_content_link = args[:web_content_link] if args.key?(:web_content_link) + @web_view_link = args[:web_view_link] if args.key?(:web_view_link) + @writers_can_share = args[:writers_can_share] if args.key?(:writers_can_share) end # Capabilities the current user has on the file. @@ -794,10 +794,10 @@ module Google # Update properties of this object def update!(**args) - @can_comment = args[:can_comment] unless args[:can_comment].nil? - @can_copy = args[:can_copy] unless args[:can_copy].nil? - @can_edit = args[:can_edit] unless args[:can_edit].nil? - @can_share = args[:can_share] unless args[:can_share].nil? + @can_comment = args[:can_comment] if args.key?(:can_comment) + @can_copy = args[:can_copy] if args.key?(:can_copy) + @can_edit = args[:can_edit] if args.key?(:can_edit) + @can_share = args[:can_share] if args.key?(:can_share) end end @@ -824,8 +824,8 @@ module Google # Update properties of this object def update!(**args) - @indexable_text = args[:indexable_text] unless args[:indexable_text].nil? - @thumbnail = args[:thumbnail] unless args[:thumbnail].nil? + @indexable_text = args[:indexable_text] if args.key?(:indexable_text) + @thumbnail = args[:thumbnail] if args.key?(:thumbnail) end # A thumbnail for the file. This will only be used if Drive cannot generate a @@ -849,8 +849,8 @@ module Google # Update properties of this object def update!(**args) - @image = args[:image] unless args[:image].nil? - @mime_type = args[:mime_type] unless args[:mime_type].nil? + @image = args[:image] if args.key?(:image) + @mime_type = args[:mime_type] if args.key?(:mime_type) end end end @@ -972,27 +972,27 @@ module Google # Update properties of this object def update!(**args) - @aperture = args[:aperture] unless args[:aperture].nil? - @camera_make = args[:camera_make] unless args[:camera_make].nil? - @camera_model = args[:camera_model] unless args[:camera_model].nil? - @color_space = args[:color_space] unless args[:color_space].nil? - @exposure_bias = args[:exposure_bias] unless args[:exposure_bias].nil? - @exposure_mode = args[:exposure_mode] unless args[:exposure_mode].nil? - @exposure_time = args[:exposure_time] unless args[:exposure_time].nil? - @flash_used = args[:flash_used] unless args[:flash_used].nil? - @focal_length = args[:focal_length] unless args[:focal_length].nil? - @height = args[:height] unless args[:height].nil? - @iso_speed = args[:iso_speed] unless args[:iso_speed].nil? - @lens = args[:lens] unless args[:lens].nil? - @location = args[:location] unless args[:location].nil? - @max_aperture_value = args[:max_aperture_value] unless args[:max_aperture_value].nil? - @metering_mode = args[:metering_mode] unless args[:metering_mode].nil? - @rotation = args[:rotation] unless args[:rotation].nil? - @sensor = args[:sensor] unless args[:sensor].nil? - @subject_distance = args[:subject_distance] unless args[:subject_distance].nil? - @time = args[:time] unless args[:time].nil? - @white_balance = args[:white_balance] unless args[:white_balance].nil? - @width = args[:width] unless args[:width].nil? + @aperture = args[:aperture] if args.key?(:aperture) + @camera_make = args[:camera_make] if args.key?(:camera_make) + @camera_model = args[:camera_model] if args.key?(:camera_model) + @color_space = args[:color_space] if args.key?(:color_space) + @exposure_bias = args[:exposure_bias] if args.key?(:exposure_bias) + @exposure_mode = args[:exposure_mode] if args.key?(:exposure_mode) + @exposure_time = args[:exposure_time] if args.key?(:exposure_time) + @flash_used = args[:flash_used] if args.key?(:flash_used) + @focal_length = args[:focal_length] if args.key?(:focal_length) + @height = args[:height] if args.key?(:height) + @iso_speed = args[:iso_speed] if args.key?(:iso_speed) + @lens = args[:lens] if args.key?(:lens) + @location = args[:location] if args.key?(:location) + @max_aperture_value = args[:max_aperture_value] if args.key?(:max_aperture_value) + @metering_mode = args[:metering_mode] if args.key?(:metering_mode) + @rotation = args[:rotation] if args.key?(:rotation) + @sensor = args[:sensor] if args.key?(:sensor) + @subject_distance = args[:subject_distance] if args.key?(:subject_distance) + @time = args[:time] if args.key?(:time) + @white_balance = args[:white_balance] if args.key?(:white_balance) + @width = args[:width] if args.key?(:width) end # Geographic location information stored in the image. @@ -1020,9 +1020,9 @@ module Google # Update properties of this object def update!(**args) - @altitude = args[:altitude] unless args[:altitude].nil? - @latitude = args[:latitude] unless args[:latitude].nil? - @longitude = args[:longitude] unless args[:longitude].nil? + @altitude = args[:altitude] if args.key?(:altitude) + @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) end end end @@ -1053,9 +1053,9 @@ module Google # Update properties of this object def update!(**args) - @duration_millis = args[:duration_millis] unless args[:duration_millis].nil? - @height = args[:height] unless args[:height].nil? - @width = args[:width] unless args[:width].nil? + @duration_millis = args[:duration_millis] if args.key?(:duration_millis) + @height = args[:height] if args.key?(:height) + @width = args[:width] if args.key?(:width) end end end @@ -1086,9 +1086,9 @@ module Google # Update properties of this object def update!(**args) - @files = args[:files] unless args[:files].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @files = args[:files] if args.key?(:files) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1117,9 +1117,9 @@ module Google # 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? + @ids = args[:ids] if args.key?(:ids) + @kind = args[:kind] if args.key?(:kind) + @space = args[:space] if args.key?(:space) end end @@ -1190,15 +1190,15 @@ module Google # Update properties of this object def update!(**args) - @allow_file_discovery = args[:allow_file_discovery] unless args[:allow_file_discovery].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @domain = args[:domain] unless args[:domain].nil? - @email_address = args[:email_address] unless args[:email_address].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @photo_link = args[:photo_link] unless args[:photo_link].nil? - @role = args[:role] unless args[:role].nil? - @type = args[:type] unless args[:type].nil? + @allow_file_discovery = args[:allow_file_discovery] if args.key?(:allow_file_discovery) + @display_name = args[:display_name] if args.key?(:display_name) + @domain = args[:domain] if args.key?(:domain) + @email_address = args[:email_address] if args.key?(:email_address) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @photo_link = args[:photo_link] if args.key?(:photo_link) + @role = args[:role] if args.key?(:role) + @type = args[:type] if args.key?(:type) end end @@ -1222,8 +1222,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @permissions = args[:permissions] unless args[:permissions].nil? + @kind = args[:kind] if args.key?(:kind) + @permissions = args[:permissions] if args.key?(:permissions) end end @@ -1287,15 +1287,15 @@ module Google # Update properties of this object def update!(**args) - @action = args[:action] unless args[:action].nil? - @author = args[:author] unless args[:author].nil? - @content = args[:content] unless args[:content].nil? - @created_time = args[:created_time] unless args[:created_time].nil? - @deleted = args[:deleted] unless args[:deleted].nil? - @html_content = args[:html_content] unless args[:html_content].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @modified_time = args[:modified_time] unless args[:modified_time].nil? + @action = args[:action] if args.key?(:action) + @author = args[:author] if args.key?(:author) + @content = args[:content] if args.key?(:content) + @created_time = args[:created_time] if args.key?(:created_time) + @deleted = args[:deleted] if args.key?(:deleted) + @html_content = args[:html_content] if args.key?(:html_content) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @modified_time = args[:modified_time] if args.key?(:modified_time) end end @@ -1325,9 +1325,9 @@ module Google # 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? - @replies = args[:replies] unless args[:replies].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @replies = args[:replies] if args.key?(:replies) end end @@ -1414,18 +1414,18 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @keep_forever = args[:keep_forever] unless args[:keep_forever].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_modifying_user = args[:last_modifying_user] unless args[:last_modifying_user].nil? - @md5_checksum = args[:md5_checksum] unless args[:md5_checksum].nil? - @mime_type = args[:mime_type] unless args[:mime_type].nil? - @modified_time = args[:modified_time] unless args[:modified_time].nil? - @original_filename = args[:original_filename] unless args[:original_filename].nil? - @publish_auto = args[:publish_auto] unless args[:publish_auto].nil? - @published = args[:published] unless args[:published].nil? - @published_outside_domain = args[:published_outside_domain] unless args[:published_outside_domain].nil? - @size = args[:size] unless args[:size].nil? + @id = args[:id] if args.key?(:id) + @keep_forever = args[:keep_forever] if args.key?(:keep_forever) + @kind = args[:kind] if args.key?(:kind) + @last_modifying_user = args[:last_modifying_user] if args.key?(:last_modifying_user) + @md5_checksum = args[:md5_checksum] if args.key?(:md5_checksum) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @modified_time = args[:modified_time] if args.key?(:modified_time) + @original_filename = args[:original_filename] if args.key?(:original_filename) + @publish_auto = args[:publish_auto] if args.key?(:publish_auto) + @published = args[:published] if args.key?(:published) + @published_outside_domain = args[:published_outside_domain] if args.key?(:published_outside_domain) + @size = args[:size] if args.key?(:size) end end @@ -1449,8 +1449,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @revisions = args[:revisions] unless args[:revisions].nil? + @kind = args[:kind] if args.key?(:kind) + @revisions = args[:revisions] if args.key?(:revisions) end end @@ -1474,8 +1474,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @start_page_token = args[:start_page_token] unless args[:start_page_token].nil? + @kind = args[:kind] if args.key?(:kind) + @start_page_token = args[:start_page_token] if args.key?(:start_page_token) end end @@ -1521,12 +1521,12 @@ module Google # Update properties of this object def update!(**args) - @display_name = args[:display_name] unless args[:display_name].nil? - @email_address = args[:email_address] unless args[:email_address].nil? - @kind = args[:kind] unless args[:kind].nil? - @me = args[:me] unless args[:me].nil? - @permission_id = args[:permission_id] unless args[:permission_id].nil? - @photo_link = args[:photo_link] unless args[:photo_link].nil? + @display_name = args[:display_name] if args.key?(:display_name) + @email_address = args[:email_address] if args.key?(:email_address) + @kind = args[:kind] if args.key?(:kind) + @me = args[:me] if args.key?(:me) + @permission_id = args[:permission_id] if args.key?(:permission_id) + @photo_link = args[:photo_link] if args.key?(:photo_link) end end end diff --git a/generated/google/apis/fitness_v1/classes.rb b/generated/google/apis/fitness_v1/classes.rb index f5616e331..6a205f6a5 100644 --- a/generated/google/apis/fitness_v1/classes.rb +++ b/generated/google/apis/fitness_v1/classes.rb @@ -64,12 +64,12 @@ module Google # Update properties of this object def update!(**args) - @activity = args[:activity] unless args[:activity].nil? - @dataset = args[:dataset] unless args[:dataset].nil? - @end_time_millis = args[:end_time_millis] unless args[:end_time_millis].nil? - @session = args[:session] unless args[:session].nil? - @start_time_millis = args[:start_time_millis] unless args[:start_time_millis].nil? - @type = args[:type] unless args[:type].nil? + @activity = args[:activity] if args.key?(:activity) + @dataset = args[:dataset] if args.key?(:dataset) + @end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis) + @session = args[:session] if args.key?(:session) + @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis) + @type = args[:type] if args.key?(:type) end end @@ -98,8 +98,8 @@ module Google # Update properties of this object def update!(**args) - @data_source_id = args[:data_source_id] unless args[:data_source_id].nil? - @data_type_name = args[:data_type_name] unless args[:data_type_name].nil? + @data_source_id = args[:data_source_id] if args.key?(:data_source_id) + @data_type_name = args[:data_type_name] if args.key?(:data_type_name) end end @@ -163,13 +163,13 @@ module Google # Update properties of this object def update!(**args) - @aggregate_by = args[:aggregate_by] unless args[:aggregate_by].nil? - @bucket_by_activity_segment = args[:bucket_by_activity_segment] unless args[:bucket_by_activity_segment].nil? - @bucket_by_activity_type = args[:bucket_by_activity_type] unless args[:bucket_by_activity_type].nil? - @bucket_by_session = args[:bucket_by_session] unless args[:bucket_by_session].nil? - @bucket_by_time = args[:bucket_by_time] unless args[:bucket_by_time].nil? - @end_time_millis = args[:end_time_millis] unless args[:end_time_millis].nil? - @start_time_millis = args[:start_time_millis] unless args[:start_time_millis].nil? + @aggregate_by = args[:aggregate_by] if args.key?(:aggregate_by) + @bucket_by_activity_segment = args[:bucket_by_activity_segment] if args.key?(:bucket_by_activity_segment) + @bucket_by_activity_type = args[:bucket_by_activity_type] if args.key?(:bucket_by_activity_type) + @bucket_by_session = args[:bucket_by_session] if args.key?(:bucket_by_session) + @bucket_by_time = args[:bucket_by_time] if args.key?(:bucket_by_time) + @end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis) + @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis) end end @@ -188,7 +188,7 @@ module Google # Update properties of this object def update!(**args) - @bucket = args[:bucket] unless args[:bucket].nil? + @bucket = args[:bucket] if args.key?(:bucket) end end @@ -229,10 +229,10 @@ module Google # Update properties of this object def update!(**args) - @details_url = args[:details_url] unless args[:details_url].nil? - @name = args[:name] unless args[:name].nil? - @package_name = args[:package_name] unless args[:package_name].nil? - @version = args[:version] unless args[:version].nil? + @details_url = args[:details_url] if args.key?(:details_url) + @name = args[:name] if args.key?(:name) + @package_name = args[:package_name] if args.key?(:package_name) + @version = args[:version] if args.key?(:version) end end @@ -258,8 +258,8 @@ module Google # Update properties of this object def update!(**args) - @activity_data_source_id = args[:activity_data_source_id] unless args[:activity_data_source_id].nil? - @min_duration_millis = args[:min_duration_millis] unless args[:min_duration_millis].nil? + @activity_data_source_id = args[:activity_data_source_id] if args.key?(:activity_data_source_id) + @min_duration_millis = args[:min_duration_millis] if args.key?(:min_duration_millis) end end @@ -279,7 +279,7 @@ module Google # Update properties of this object def update!(**args) - @min_duration_millis = args[:min_duration_millis] unless args[:min_duration_millis].nil? + @min_duration_millis = args[:min_duration_millis] if args.key?(:min_duration_millis) end end @@ -300,7 +300,7 @@ module Google # Update properties of this object def update!(**args) - @duration_millis = args[:duration_millis] unless args[:duration_millis].nil? + @duration_millis = args[:duration_millis] if args.key?(:duration_millis) end end @@ -373,14 +373,14 @@ module Google # Update properties of this object def update!(**args) - @computation_time_millis = args[:computation_time_millis] unless args[:computation_time_millis].nil? - @data_type_name = args[:data_type_name] unless args[:data_type_name].nil? - @end_time_nanos = args[:end_time_nanos] unless args[:end_time_nanos].nil? - @modified_time_millis = args[:modified_time_millis] unless args[:modified_time_millis].nil? - @origin_data_source_id = args[:origin_data_source_id] unless args[:origin_data_source_id].nil? - @raw_timestamp_nanos = args[:raw_timestamp_nanos] unless args[:raw_timestamp_nanos].nil? - @start_time_nanos = args[:start_time_nanos] unless args[:start_time_nanos].nil? - @value = args[:value] unless args[:value].nil? + @computation_time_millis = args[:computation_time_millis] if args.key?(:computation_time_millis) + @data_type_name = args[:data_type_name] if args.key?(:data_type_name) + @end_time_nanos = args[:end_time_nanos] if args.key?(:end_time_nanos) + @modified_time_millis = args[:modified_time_millis] if args.key?(:modified_time_millis) + @origin_data_source_id = args[:origin_data_source_id] if args.key?(:origin_data_source_id) + @raw_timestamp_nanos = args[:raw_timestamp_nanos] if args.key?(:raw_timestamp_nanos) + @start_time_nanos = args[:start_time_nanos] if args.key?(:start_time_nanos) + @value = args[:value] if args.key?(:value) end end @@ -480,13 +480,13 @@ module Google # Update properties of this object def update!(**args) - @application = args[:application] unless args[:application].nil? - @data_stream_id = args[:data_stream_id] unless args[:data_stream_id].nil? - @data_stream_name = args[:data_stream_name] unless args[:data_stream_name].nil? - @data_type = args[:data_type] unless args[:data_type].nil? - @device = args[:device] unless args[:device].nil? - @name = args[:name] unless args[:name].nil? - @type = args[:type] unless args[:type].nil? + @application = args[:application] if args.key?(:application) + @data_stream_id = args[:data_stream_id] if args.key?(:data_stream_id) + @data_stream_name = args[:data_stream_name] if args.key?(:data_stream_name) + @data_type = args[:data_type] if args.key?(:data_type) + @device = args[:device] if args.key?(:device) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) end end @@ -511,8 +511,8 @@ module Google # Update properties of this object def update!(**args) - @field = args[:field] unless args[:field].nil? - @name = args[:name] unless args[:name].nil? + @field = args[:field] if args.key?(:field) + @name = args[:name] if args.key?(:name) end end @@ -548,9 +548,9 @@ module Google # Update properties of this object def update!(**args) - @format = args[:format] unless args[:format].nil? - @name = args[:name] unless args[:name].nil? - @optional = args[:optional] unless args[:optional].nil? + @format = args[:format] if args.key?(:format) + @name = args[:name] if args.key?(:name) + @optional = args[:optional] if args.key?(:optional) end end @@ -601,11 +601,11 @@ module Google # Update properties of this object def update!(**args) - @data_source_id = args[:data_source_id] unless args[:data_source_id].nil? - @max_end_time_ns = args[:max_end_time_ns] unless args[:max_end_time_ns].nil? - @min_start_time_ns = args[:min_start_time_ns] unless args[:min_start_time_ns].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @point = args[:point] unless args[:point].nil? + @data_source_id = args[:data_source_id] if args.key?(:data_source_id) + @max_end_time_ns = args[:max_end_time_ns] if args.key?(:max_end_time_ns) + @min_start_time_ns = args[:min_start_time_ns] if args.key?(:min_start_time_ns) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @point = args[:point] if args.key?(:point) end end @@ -657,11 +657,11 @@ module Google # Update properties of this object def update!(**args) - @manufacturer = args[:manufacturer] unless args[:manufacturer].nil? - @model = args[:model] unless args[:model].nil? - @type = args[:type] unless args[:type].nil? - @uid = args[:uid] unless args[:uid].nil? - @version = args[:version] unless args[:version].nil? + @manufacturer = args[:manufacturer] if args.key?(:manufacturer) + @model = args[:model] if args.key?(:model) + @type = args[:type] if args.key?(:type) + @uid = args[:uid] if args.key?(:uid) + @version = args[:version] if args.key?(:version) end end @@ -680,7 +680,7 @@ module Google # Update properties of this object def update!(**args) - @data_source = args[:data_source] unless args[:data_source].nil? + @data_source = args[:data_source] if args.key?(:data_source) end end @@ -712,9 +712,9 @@ module Google # Update properties of this object def update!(**args) - @deleted_session = args[:deleted_session] unless args[:deleted_session].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @session = args[:session] unless args[:session].nil? + @deleted_session = args[:deleted_session] if args.key?(:deleted_session) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @session = args[:session] if args.key?(:session) end end @@ -734,7 +734,7 @@ module Google # Update properties of this object def update!(**args) - @fp_val = args[:fp_val] unless args[:fp_val].nil? + @fp_val = args[:fp_val] if args.key?(:fp_val) end end @@ -799,15 +799,15 @@ module Google # Update properties of this object def update!(**args) - @active_time_millis = args[:active_time_millis] unless args[:active_time_millis].nil? - @activity_type = args[:activity_type] unless args[:activity_type].nil? - @application = args[:application] unless args[:application].nil? - @description = args[:description] unless args[:description].nil? - @end_time_millis = args[:end_time_millis] unless args[:end_time_millis].nil? - @id = args[:id] unless args[:id].nil? - @modified_time_millis = args[:modified_time_millis] unless args[:modified_time_millis].nil? - @name = args[:name] unless args[:name].nil? - @start_time_millis = args[:start_time_millis] unless args[:start_time_millis].nil? + @active_time_millis = args[:active_time_millis] if args.key?(:active_time_millis) + @activity_type = args[:activity_type] if args.key?(:activity_type) + @application = args[:application] if args.key?(:application) + @description = args[:description] if args.key?(:description) + @end_time_millis = args[:end_time_millis] if args.key?(:end_time_millis) + @id = args[:id] if args.key?(:id) + @modified_time_millis = args[:modified_time_millis] if args.key?(:modified_time_millis) + @name = args[:name] if args.key?(:name) + @start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis) end end @@ -848,10 +848,10 @@ module Google # Update properties of this object def update!(**args) - @fp_val = args[:fp_val] unless args[:fp_val].nil? - @int_val = args[:int_val] unless args[:int_val].nil? - @map_val = args[:map_val] unless args[:map_val].nil? - @string_val = args[:string_val] unless args[:string_val].nil? + @fp_val = args[:fp_val] if args.key?(:fp_val) + @int_val = args[:int_val] if args.key?(:int_val) + @map_val = args[:map_val] if args.key?(:map_val) + @string_val = args[:string_val] if args.key?(:string_val) end end @@ -876,8 +876,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end diff --git a/generated/google/apis/fusiontables_v2/classes.rb b/generated/google/apis/fusiontables_v2/classes.rb index fe0284be7..fda3806ec 100644 --- a/generated/google/apis/fusiontables_v2/classes.rb +++ b/generated/google/apis/fusiontables_v2/classes.rb @@ -65,12 +65,12 @@ module Google # Update properties of this object def update!(**args) - @color = args[:color] unless args[:color].nil? - @icon = args[:icon] unless args[:icon].nil? - @max = args[:max] unless args[:max].nil? - @min = args[:min] unless args[:min].nil? - @opacity = args[:opacity] unless args[:opacity].nil? - @weight = args[:weight] unless args[:weight].nil? + @color = args[:color] if args.key?(:color) + @icon = args[:icon] if args.key?(:icon) + @max = args[:max] if args.key?(:max) + @min = args[:min] if args.key?(:min) + @opacity = args[:opacity] if args.key?(:opacity) + @weight = args[:weight] if args.key?(:weight) end end @@ -171,18 +171,18 @@ module Google # Update properties of this object def update!(**args) - @base_column = args[:base_column] unless args[:base_column].nil? - @column_id = args[:column_id] unless args[:column_id].nil? - @column_json_schema = args[:column_json_schema] unless args[:column_json_schema].nil? - @column_properties_json = args[:column_properties_json] unless args[:column_properties_json].nil? - @description = args[:description] unless args[:description].nil? - @format_pattern = args[:format_pattern] unless args[:format_pattern].nil? - @graph_predicate = args[:graph_predicate] unless args[:graph_predicate].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @type = args[:type] unless args[:type].nil? - @valid_values = args[:valid_values] unless args[:valid_values].nil? - @validate_data = args[:validate_data] unless args[:validate_data].nil? + @base_column = args[:base_column] if args.key?(:base_column) + @column_id = args[:column_id] if args.key?(:column_id) + @column_json_schema = args[:column_json_schema] if args.key?(:column_json_schema) + @column_properties_json = args[:column_properties_json] if args.key?(:column_properties_json) + @description = args[:description] if args.key?(:description) + @format_pattern = args[:format_pattern] if args.key?(:format_pattern) + @graph_predicate = args[:graph_predicate] if args.key?(:graph_predicate) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) + @valid_values = args[:valid_values] if args.key?(:valid_values) + @validate_data = args[:validate_data] if args.key?(:validate_data) end # Identifier of the base column. If present, this column is derived from the @@ -206,8 +206,8 @@ module Google # Update properties of this object def update!(**args) - @column_id = args[:column_id] unless args[:column_id].nil? - @table_index = args[:table_index] unless args[:table_index].nil? + @column_id = args[:column_id] if args.key?(:column_id) + @table_index = args[:table_index] if args.key?(:table_index) end end end @@ -244,10 +244,10 @@ module Google # 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? - @total_items = args[:total_items] unless args[:total_items].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @total_items = args[:total_items] if args.key?(:total_items) end end @@ -276,9 +276,9 @@ module Google # Update properties of this object def update!(**args) - @geometries = args[:geometries] unless args[:geometries].nil? - @geometry = args[:geometry] unless args[:geometry].nil? - @type = args[:type] unless args[:type].nil? + @geometries = args[:geometries] if args.key?(:geometries) + @geometry = args[:geometry] if args.key?(:geometry) + @type = args[:type] if args.key?(:type) end end @@ -302,8 +302,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @num_rows_received = args[:num_rows_received] unless args[:num_rows_received].nil? + @kind = args[:kind] if args.key?(:kind) + @num_rows_received = args[:num_rows_received] if args.key?(:num_rows_received) end end @@ -327,8 +327,8 @@ module Google # Update properties of this object def update!(**args) - @coordinates = args[:coordinates] unless args[:coordinates].nil? - @type = args[:type] unless args[:type].nil? + @coordinates = args[:coordinates] if args.key?(:coordinates) + @type = args[:type] if args.key?(:type) end end @@ -367,11 +367,11 @@ module Google # Update properties of this object def update!(**args) - @stroke_color = args[:stroke_color] unless args[:stroke_color].nil? - @stroke_color_styler = args[:stroke_color_styler] unless args[:stroke_color_styler].nil? - @stroke_opacity = args[:stroke_opacity] unless args[:stroke_opacity].nil? - @stroke_weight = args[:stroke_weight] unless args[:stroke_weight].nil? - @stroke_weight_styler = args[:stroke_weight_styler] unless args[:stroke_weight_styler].nil? + @stroke_color = args[:stroke_color] if args.key?(:stroke_color) + @stroke_color_styler = args[:stroke_color_styler] if args.key?(:stroke_color_styler) + @stroke_opacity = args[:stroke_opacity] if args.key?(:stroke_opacity) + @stroke_weight = args[:stroke_weight] if args.key?(:stroke_weight) + @stroke_weight_styler = args[:stroke_weight_styler] if args.key?(:stroke_weight_styler) end end @@ -395,8 +395,8 @@ module Google # Update properties of this object def update!(**args) - @coordinates = args[:coordinates] unless args[:coordinates].nil? - @type = args[:type] unless args[:type].nil? + @coordinates = args[:coordinates] if args.key?(:coordinates) + @type = args[:type] if args.key?(:type) end end @@ -421,8 +421,8 @@ module Google # Update properties of this object def update!(**args) - @icon_name = args[:icon_name] unless args[:icon_name].nil? - @icon_styler = args[:icon_styler] unless args[:icon_styler].nil? + @icon_name = args[:icon_name] if args.key?(:icon_name) + @icon_styler = args[:icon_styler] if args.key?(:icon_styler) end end @@ -446,8 +446,8 @@ module Google # Update properties of this object def update!(**args) - @coordinates = args[:coordinates] unless args[:coordinates].nil? - @type = args[:type] unless args[:type].nil? + @coordinates = args[:coordinates] if args.key?(:coordinates) + @type = args[:type] if args.key?(:type) end end @@ -501,14 +501,14 @@ module Google # Update properties of this object def update!(**args) - @fill_color = args[:fill_color] unless args[:fill_color].nil? - @fill_color_styler = args[:fill_color_styler] unless args[:fill_color_styler].nil? - @fill_opacity = args[:fill_opacity] unless args[:fill_opacity].nil? - @stroke_color = args[:stroke_color] unless args[:stroke_color].nil? - @stroke_color_styler = args[:stroke_color_styler] unless args[:stroke_color_styler].nil? - @stroke_opacity = args[:stroke_opacity] unless args[:stroke_opacity].nil? - @stroke_weight = args[:stroke_weight] unless args[:stroke_weight].nil? - @stroke_weight_styler = args[:stroke_weight_styler] unless args[:stroke_weight_styler].nil? + @fill_color = args[:fill_color] if args.key?(:fill_color) + @fill_color_styler = args[:fill_color_styler] if args.key?(:fill_color_styler) + @fill_opacity = args[:fill_opacity] if args.key?(:fill_opacity) + @stroke_color = args[:stroke_color] if args.key?(:stroke_color) + @stroke_color_styler = args[:stroke_color_styler] if args.key?(:stroke_color_styler) + @stroke_opacity = args[:stroke_opacity] if args.key?(:stroke_opacity) + @stroke_weight = args[:stroke_weight] if args.key?(:stroke_weight) + @stroke_weight_styler = args[:stroke_weight_styler] if args.key?(:stroke_weight_styler) end end @@ -540,9 +540,9 @@ module Google # Update properties of this object def update!(**args) - @columns = args[:columns] unless args[:columns].nil? - @kind = args[:kind] unless args[:kind].nil? - @rows = args[:rows] unless args[:rows].nil? + @columns = args[:columns] if args.key?(:columns) + @kind = args[:kind] if args.key?(:kind) + @rows = args[:rows] if args.key?(:rows) end end @@ -582,10 +582,10 @@ module Google # Update properties of this object def update!(**args) - @buckets = args[:buckets] unless args[:buckets].nil? - @column_name = args[:column_name] unless args[:column_name].nil? - @gradient = args[:gradient] unless args[:gradient].nil? - @kind = args[:kind] unless args[:kind].nil? + @buckets = args[:buckets] if args.key?(:buckets) + @column_name = args[:column_name] if args.key?(:column_name) + @gradient = args[:gradient] if args.key?(:gradient) + @kind = args[:kind] if args.key?(:kind) end # Gradient function that interpolates a range of colors based on column value. @@ -615,9 +615,9 @@ module Google # Update properties of this object def update!(**args) - @colors = args[:colors] unless args[:colors].nil? - @max = args[:max] unless args[:max].nil? - @min = args[:min] unless args[:min].nil? + @colors = args[:colors] if args.key?(:colors) + @max = args[:max] if args.key?(:max) + @min = args[:min] if args.key?(:min) end # @@ -640,8 +640,8 @@ module Google # Update properties of this object def update!(**args) - @color = args[:color] unless args[:color].nil? - @opacity = args[:opacity] unless args[:opacity].nil? + @color = args[:color] if args.key?(:color) + @opacity = args[:opacity] if args.key?(:opacity) end end end @@ -695,13 +695,13 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @marker_options = args[:marker_options] unless args[:marker_options].nil? - @name = args[:name] unless args[:name].nil? - @polygon_options = args[:polygon_options] unless args[:polygon_options].nil? - @polyline_options = args[:polyline_options] unless args[:polyline_options].nil? - @style_id = args[:style_id] unless args[:style_id].nil? - @table_id = args[:table_id] unless args[:table_id].nil? + @kind = args[:kind] if args.key?(:kind) + @marker_options = args[:marker_options] if args.key?(:marker_options) + @name = args[:name] if args.key?(:name) + @polygon_options = args[:polygon_options] if args.key?(:polygon_options) + @polyline_options = args[:polyline_options] if args.key?(:polyline_options) + @style_id = args[:style_id] if args.key?(:style_id) + @table_id = args[:table_id] if args.key?(:table_id) end end @@ -737,10 +737,10 @@ module Google # 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? - @total_items = args[:total_items] unless args[:total_items].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @total_items = args[:total_items] if args.key?(:total_items) end end @@ -820,19 +820,19 @@ module Google # Update properties of this object def update!(**args) - @attribution = args[:attribution] unless args[:attribution].nil? - @attribution_link = args[:attribution_link] unless args[:attribution_link].nil? - @base_table_ids = args[:base_table_ids] unless args[:base_table_ids].nil? - @column_properties_json_schema = args[:column_properties_json_schema] unless args[:column_properties_json_schema].nil? - @columns = args[:columns] unless args[:columns].nil? - @description = args[:description] unless args[:description].nil? - @is_exportable = args[:is_exportable] unless args[:is_exportable].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @sql = args[:sql] unless args[:sql].nil? - @table_id = args[:table_id] unless args[:table_id].nil? - @table_properties_json = args[:table_properties_json] unless args[:table_properties_json].nil? - @table_properties_json_schema = args[:table_properties_json_schema] unless args[:table_properties_json_schema].nil? + @attribution = args[:attribution] if args.key?(:attribution) + @attribution_link = args[:attribution_link] if args.key?(:attribution_link) + @base_table_ids = args[:base_table_ids] if args.key?(:base_table_ids) + @column_properties_json_schema = args[:column_properties_json_schema] if args.key?(:column_properties_json_schema) + @columns = args[:columns] if args.key?(:columns) + @description = args[:description] if args.key?(:description) + @is_exportable = args[:is_exportable] if args.key?(:is_exportable) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @sql = args[:sql] if args.key?(:sql) + @table_id = args[:table_id] if args.key?(:table_id) + @table_properties_json = args[:table_properties_json] if args.key?(:table_properties_json) + @table_properties_json_schema = args[:table_properties_json_schema] if args.key?(:table_properties_json_schema) end end @@ -863,9 +863,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -907,11 +907,11 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @progress = args[:progress] unless args[:progress].nil? - @started = args[:started] unless args[:started].nil? - @task_id = args[:task_id] unless args[:task_id].nil? - @type = args[:type] unless args[:type].nil? + @kind = args[:kind] if args.key?(:kind) + @progress = args[:progress] if args.key?(:progress) + @started = args[:started] if args.key?(:started) + @task_id = args[:task_id] if args.key?(:task_id) + @type = args[:type] if args.key?(:type) end end @@ -946,10 +946,10 @@ module Google # 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? - @total_items = args[:total_items] unless args[:total_items].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @total_items = args[:total_items] if args.key?(:total_items) end end @@ -996,12 +996,12 @@ module Google # Update properties of this object def update!(**args) - @automatic_column_names = args[:automatic_column_names] unless args[:automatic_column_names].nil? - @body = args[:body] unless args[:body].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @table_id = args[:table_id] unless args[:table_id].nil? - @template_id = args[:template_id] unless args[:template_id].nil? + @automatic_column_names = args[:automatic_column_names] if args.key?(:automatic_column_names) + @body = args[:body] if args.key?(:body) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @table_id = args[:table_id] if args.key?(:table_id) + @template_id = args[:template_id] if args.key?(:template_id) end end @@ -1037,10 +1037,10 @@ module Google # 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? - @total_items = args[:total_items] unless args[:total_items].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @total_items = args[:total_items] if args.key?(:total_items) end end end diff --git a/generated/google/apis/games_configuration_v1configuration.rb b/generated/google/apis/games_configuration_v1configuration.rb index cc9863597..2d398ee71 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 = '20160119' + REVISION = '20160120' # 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/classes.rb b/generated/google/apis/games_configuration_v1configuration/classes.rb index 80c1e294c..69588d47b 100644 --- a/generated/google/apis/games_configuration_v1configuration/classes.rb +++ b/generated/google/apis/games_configuration_v1configuration/classes.rb @@ -80,14 +80,14 @@ module Google # Update properties of this object def update!(**args) - @achievement_type = args[:achievement_type] unless args[:achievement_type].nil? - @draft = args[:draft] unless args[:draft].nil? - @id = args[:id] unless args[:id].nil? - @initial_state = args[:initial_state] unless args[:initial_state].nil? - @kind = args[:kind] unless args[:kind].nil? - @published = args[:published] unless args[:published].nil? - @steps_to_unlock = args[:steps_to_unlock] unless args[:steps_to_unlock].nil? - @token = args[:token] unless args[:token].nil? + @achievement_type = args[:achievement_type] if args.key?(:achievement_type) + @draft = args[:draft] if args.key?(:draft) + @id = args[:id] if args.key?(:id) + @initial_state = args[:initial_state] if args.key?(:initial_state) + @kind = args[:kind] if args.key?(:kind) + @published = args[:published] if args.key?(:published) + @steps_to_unlock = args[:steps_to_unlock] if args.key?(:steps_to_unlock) + @token = args[:token] if args.key?(:token) end end @@ -132,12 +132,12 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @icon_url = args[:icon_url] unless args[:icon_url].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @point_value = args[:point_value] unless args[:point_value].nil? - @sort_rank = args[:sort_rank] unless args[:sort_rank].nil? + @description = args[:description] if args.key?(:description) + @icon_url = args[:icon_url] if args.key?(:icon_url) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @point_value = args[:point_value] if args.key?(:point_value) + @sort_rank = args[:sort_rank] if args.key?(:sort_rank) end end @@ -167,9 +167,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -213,12 +213,12 @@ module Google # Update properties of this object def update!(**args) - @few = args[:few] unless args[:few].nil? - @many = args[:many] unless args[:many].nil? - @one = args[:one] unless args[:one].nil? - @other = args[:other] unless args[:other].nil? - @two = args[:two] unless args[:two].nil? - @zero = args[:zero] unless args[:zero].nil? + @few = args[:few] if args.key?(:few) + @many = args[:many] if args.key?(:many) + @one = args[:one] if args.key?(:one) + @other = args[:other] if args.key?(:other) + @two = args[:two] if args.key?(:two) + @zero = args[:zero] if args.key?(:zero) end end @@ -258,10 +258,10 @@ module Google # Update properties of this object def update!(**args) - @currency_code = args[:currency_code] unless args[:currency_code].nil? - @num_decimal_places = args[:num_decimal_places] unless args[:num_decimal_places].nil? - @number_format_type = args[:number_format_type] unless args[:number_format_type].nil? - @suffix = args[:suffix] unless args[:suffix].nil? + @currency_code = args[:currency_code] if args.key?(:currency_code) + @num_decimal_places = args[:num_decimal_places] if args.key?(:num_decimal_places) + @number_format_type = args[:number_format_type] if args.key?(:number_format_type) + @suffix = args[:suffix] if args.key?(:suffix) end end @@ -296,10 +296,10 @@ module Google # Update properties of this object def update!(**args) - @image_type = args[:image_type] unless args[:image_type].nil? - @kind = args[:kind] unless args[:kind].nil? - @resource_id = args[:resource_id] unless args[:resource_id].nil? - @url = args[:url] unless args[:url].nil? + @image_type = args[:image_type] if args.key?(:image_type) + @kind = args[:kind] if args.key?(:kind) + @resource_id = args[:resource_id] if args.key?(:resource_id) + @url = args[:url] if args.key?(:url) end end @@ -357,14 +357,14 @@ module Google # Update properties of this object def update!(**args) - @draft = args[:draft] unless args[:draft].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @published = args[:published] unless args[:published].nil? - @score_max = args[:score_max] unless args[:score_max].nil? - @score_min = args[:score_min] unless args[:score_min].nil? - @score_order = args[:score_order] unless args[:score_order].nil? - @token = args[:token] unless args[:token].nil? + @draft = args[:draft] if args.key?(:draft) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @published = args[:published] if args.key?(:published) + @score_max = args[:score_max] if args.key?(:score_max) + @score_min = args[:score_min] if args.key?(:score_min) + @score_order = args[:score_order] if args.key?(:score_order) + @token = args[:token] if args.key?(:token) end end @@ -404,11 +404,11 @@ module Google # Update properties of this object def update!(**args) - @icon_url = args[:icon_url] unless args[:icon_url].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @score_format = args[:score_format] unless args[:score_format].nil? - @sort_rank = args[:sort_rank] unless args[:sort_rank].nil? + @icon_url = args[:icon_url] if args.key?(:icon_url) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @score_format = args[:score_format] if args.key?(:score_format) + @sort_rank = args[:sort_rank] if args.key?(:sort_rank) end end @@ -438,9 +438,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -470,9 +470,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @locale = args[:locale] unless args[:locale].nil? - @value = args[:value] unless args[:value].nil? + @kind = args[:kind] if args.key?(:kind) + @locale = args[:locale] if args.key?(:locale) + @value = args[:value] if args.key?(:value) end end @@ -497,8 +497,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @translations = args[:translations] unless args[:translations].nil? + @kind = args[:kind] if args.key?(:kind) + @translations = args[:translations] if args.key?(:translations) end end end diff --git a/generated/google/apis/games_management_v1management.rb b/generated/google/apis/games_management_v1management.rb index b243d0d2a..73ba474e1 100644 --- a/generated/google/apis/games_management_v1management.rb +++ b/generated/google/apis/games_management_v1management.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/games/services module GamesManagementV1management VERSION = 'V1management' - REVISION = '20160119' + REVISION = '20160120' # Share your Google+ profile information and view and manage your game activity AUTH_GAMES = 'https://www.googleapis.com/auth/games' diff --git a/generated/google/apis/games_management_v1management/classes.rb b/generated/google/apis/games_management_v1management/classes.rb index 060986f69..8224243b5 100644 --- a/generated/google/apis/games_management_v1management/classes.rb +++ b/generated/google/apis/games_management_v1management/classes.rb @@ -43,8 +43,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @results = args[:results] unless args[:results].nil? + @kind = args[:kind] if args.key?(:kind) + @results = args[:results] if args.key?(:results) end end @@ -69,8 +69,8 @@ module Google # 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? + @achievement_ids = args[:achievement_ids] if args.key?(:achievement_ids) + @kind = args[:kind] if args.key?(:kind) end end @@ -111,10 +111,10 @@ module Google # 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? + @current_state = args[:current_state] if args.key?(:current_state) + @definition_id = args[:definition_id] if args.key?(:definition_id) + @kind = args[:kind] if args.key?(:kind) + @update_occurred = args[:update_occurred] if args.key?(:update_occurred) end end @@ -139,8 +139,8 @@ module Google # 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? + @event_ids = args[:event_ids] if args.key?(:event_ids) + @kind = args[:kind] if args.key?(:kind) end end @@ -167,8 +167,8 @@ module Google # 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? + @auto_matched = args[:auto_matched] if args.key?(:auto_matched) + @time_millis = args[:time_millis] if args.key?(:time_millis) end end @@ -202,10 +202,10 @@ module Google # 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? + @current_experience_points = args[:current_experience_points] if args.key?(:current_experience_points) + @current_level = args[:current_level] if args.key?(:current_level) + @last_level_up_timestamp_millis = args[:last_level_up_timestamp_millis] if args.key?(:last_level_up_timestamp_millis) + @next_level = args[:next_level] if args.key?(:next_level) end end @@ -234,9 +234,9 @@ module Google # 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? + @level = args[:level] if args.key?(:level) + @max_experience_points = args[:max_experience_points] if args.key?(:max_experience_points) + @min_experience_points = args[:min_experience_points] if args.key?(:min_experience_points) end end @@ -266,9 +266,9 @@ module Google # 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? + @hidden_time_millis = args[:hidden_time_millis] if args.key?(:hidden_time_millis) + @kind = args[:kind] if args.key?(:kind) + @player = args[:player] if args.key?(:player) end end @@ -298,9 +298,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -367,16 +367,16 @@ 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? - @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? + @avatar_image_url = args[:avatar_image_url] if args.key?(:avatar_image_url) + @banner_url_landscape = args[:banner_url_landscape] if args.key?(:banner_url_landscape) + @banner_url_portrait = args[:banner_url_portrait] if args.key?(:banner_url_portrait) + @display_name = args[:display_name] if args.key?(:display_name) + @experience_info = args[:experience_info] if args.key?(:experience_info) + @kind = args[:kind] if args.key?(:kind) + @last_played_with = args[:last_played_with] if args.key?(:last_played_with) + @name = args[:name] if args.key?(:name) + @player_id = args[:player_id] if args.key?(:player_id) + @title = args[:title] if args.key?(:title) end # An object representation of the individual components of the player's name. @@ -400,8 +400,8 @@ module Google # 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? + @family_name = args[:family_name] if args.key?(:family_name) + @given_name = args[:given_name] if args.key?(:given_name) end end end @@ -427,8 +427,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @results = args[:results] unless args[:results].nil? + @kind = args[:kind] if args.key?(:kind) + @results = args[:results] if args.key?(:results) end end @@ -462,9 +462,9 @@ module Google # 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? + @definition_id = args[:definition_id] if args.key?(:definition_id) + @kind = args[:kind] if args.key?(:kind) + @reset_score_time_spans = args[:reset_score_time_spans] if args.key?(:reset_score_time_spans) end end @@ -489,8 +489,8 @@ module Google # 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? + @kind = args[:kind] if args.key?(:kind) + @quest_ids = args[:quest_ids] if args.key?(:quest_ids) end end @@ -515,8 +515,8 @@ module Google # 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? + @kind = args[:kind] if args.key?(:kind) + @leaderboard_ids = args[:leaderboard_ids] if args.key?(:leaderboard_ids) end end end diff --git a/generated/google/apis/games_v1.rb b/generated/google/apis/games_v1.rb index 1e688f1e6..9e36dea2f 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 = '20160119' + REVISION = '20160120' # 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 59383b945..9cc518a12 100644 --- a/generated/google/apis/games_v1/classes.rb +++ b/generated/google/apis/games_v1/classes.rb @@ -109,19 +109,19 @@ module Google # Update properties of this object def update!(**args) - @achievement_type = args[:achievement_type] unless args[:achievement_type].nil? - @description = args[:description] unless args[:description].nil? - @experience_points = args[:experience_points] unless args[:experience_points].nil? - @formatted_total_steps = args[:formatted_total_steps] unless args[:formatted_total_steps].nil? - @id = args[:id] unless args[:id].nil? - @initial_state = args[:initial_state] unless args[:initial_state].nil? - @is_revealed_icon_url_default = args[:is_revealed_icon_url_default] unless args[:is_revealed_icon_url_default].nil? - @is_unlocked_icon_url_default = args[:is_unlocked_icon_url_default] unless args[:is_unlocked_icon_url_default].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @revealed_icon_url = args[:revealed_icon_url] unless args[:revealed_icon_url].nil? - @total_steps = args[:total_steps] unless args[:total_steps].nil? - @unlocked_icon_url = args[:unlocked_icon_url] unless args[:unlocked_icon_url].nil? + @achievement_type = args[:achievement_type] if args.key?(:achievement_type) + @description = args[:description] if args.key?(:description) + @experience_points = args[:experience_points] if args.key?(:experience_points) + @formatted_total_steps = args[:formatted_total_steps] if args.key?(:formatted_total_steps) + @id = args[:id] if args.key?(:id) + @initial_state = args[:initial_state] if args.key?(:initial_state) + @is_revealed_icon_url_default = args[:is_revealed_icon_url_default] if args.key?(:is_revealed_icon_url_default) + @is_unlocked_icon_url_default = args[:is_unlocked_icon_url_default] if args.key?(:is_unlocked_icon_url_default) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @revealed_icon_url = args[:revealed_icon_url] if args.key?(:revealed_icon_url) + @total_steps = args[:total_steps] if args.key?(:total_steps) + @unlocked_icon_url = args[:unlocked_icon_url] if args.key?(:unlocked_icon_url) end end @@ -151,9 +151,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -185,9 +185,9 @@ module Google # Update properties of this object def update!(**args) - @current_steps = args[:current_steps] unless args[:current_steps].nil? - @kind = args[:kind] unless args[:kind].nil? - @newly_unlocked = args[:newly_unlocked] unless args[:newly_unlocked].nil? + @current_steps = args[:current_steps] if args.key?(:current_steps) + @kind = args[:kind] if args.key?(:kind) + @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked) end end @@ -216,8 +216,8 @@ module Google # Update properties of this object def update!(**args) - @current_state = args[:current_state] unless args[:current_state].nil? - @kind = args[:kind] unless args[:kind].nil? + @current_state = args[:current_state] if args.key?(:current_state) + @kind = args[:kind] if args.key?(:kind) end end @@ -249,9 +249,9 @@ module Google # Update properties of this object def update!(**args) - @current_steps = args[:current_steps] unless args[:current_steps].nil? - @kind = args[:kind] unless args[:kind].nil? - @newly_unlocked = args[:newly_unlocked] unless args[:newly_unlocked].nil? + @current_steps = args[:current_steps] if args.key?(:current_steps) + @kind = args[:kind] if args.key?(:kind) + @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked) end end @@ -278,8 +278,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @newly_unlocked = args[:newly_unlocked] unless args[:newly_unlocked].nil? + @kind = args[:kind] if args.key?(:kind) + @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked) end end @@ -304,8 +304,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @updates = args[:updates] unless args[:updates].nil? + @kind = args[:kind] if args.key?(:kind) + @updates = args[:updates] if args.key?(:updates) end end @@ -330,8 +330,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @updated_achievements = args[:updated_achievements] unless args[:updated_achievements].nil? + @kind = args[:kind] if args.key?(:kind) + @updated_achievements = args[:updated_achievements] if args.key?(:updated_achievements) end end @@ -377,11 +377,11 @@ module Google # Update properties of this object def update!(**args) - @achievement_id = args[:achievement_id] unless args[:achievement_id].nil? - @increment_payload = args[:increment_payload] unless args[:increment_payload].nil? - @kind = args[:kind] unless args[:kind].nil? - @set_steps_at_least_payload = args[:set_steps_at_least_payload] unless args[:set_steps_at_least_payload].nil? - @update_type = args[:update_type] unless args[:update_type].nil? + @achievement_id = args[:achievement_id] if args.key?(:achievement_id) + @increment_payload = args[:increment_payload] if args.key?(:increment_payload) + @kind = args[:kind] if args.key?(:kind) + @set_steps_at_least_payload = args[:set_steps_at_least_payload] if args.key?(:set_steps_at_least_payload) + @update_type = args[:update_type] if args.key?(:update_type) end end @@ -433,12 +433,12 @@ module Google # Update properties of this object def update!(**args) - @achievement_id = args[:achievement_id] unless args[:achievement_id].nil? - @current_state = args[:current_state] unless args[:current_state].nil? - @current_steps = args[:current_steps] unless args[:current_steps].nil? - @kind = args[:kind] unless args[:kind].nil? - @newly_unlocked = args[:newly_unlocked] unless args[:newly_unlocked].nil? - @update_occurred = args[:update_occurred] unless args[:update_occurred].nil? + @achievement_id = args[:achievement_id] if args.key?(:achievement_id) + @current_state = args[:current_state] if args.key?(:current_state) + @current_steps = args[:current_steps] if args.key?(:current_steps) + @kind = args[:kind] if args.key?(:kind) + @newly_unlocked = args[:newly_unlocked] if args.key?(:newly_unlocked) + @update_occurred = args[:update_occurred] if args.key?(:update_occurred) end end @@ -478,11 +478,11 @@ module Google # Update properties of this object def update!(**args) - @count = args[:count] unless args[:count].nil? - @kind = args[:kind] unless args[:kind].nil? - @max = args[:max] unless args[:max].nil? - @min = args[:min] unless args[:min].nil? - @sum = args[:sum] unless args[:sum].nil? + @count = args[:count] if args.key?(:count) + @kind = args[:kind] if args.key?(:kind) + @max = args[:max] if args.key?(:max) + @min = args[:min] if args.key?(:min) + @sum = args[:sum] if args.key?(:sum) end end @@ -512,9 +512,9 @@ module Google # Update properties of this object def update!(**args) - @avatar_image_url = args[:avatar_image_url] unless args[:avatar_image_url].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @kind = args[:kind] unless args[:kind].nil? + @avatar_image_url = args[:avatar_image_url] if args.key?(:avatar_image_url) + @display_name = args[:display_name] if args.key?(:display_name) + @kind = args[:kind] if args.key?(:kind) end end @@ -597,19 +597,19 @@ module Google # Update properties of this object def update!(**args) - @achievement_count = args[:achievement_count] unless args[:achievement_count].nil? - @assets = args[:assets] unless args[:assets].nil? - @author = args[:author] unless args[:author].nil? - @category = args[:category] unless args[:category].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? - @instances = args[:instances] unless args[:instances].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_updated_timestamp = args[:last_updated_timestamp] unless args[:last_updated_timestamp].nil? - @leaderboard_count = args[:leaderboard_count] unless args[:leaderboard_count].nil? - @name = args[:name] unless args[:name].nil? - @theme_color = args[:theme_color] unless args[:theme_color].nil? + @achievement_count = args[:achievement_count] if args.key?(:achievement_count) + @assets = args[:assets] if args.key?(:assets) + @author = args[:author] if args.key?(:author) + @category = args[:category] if args.key?(:category) + @description = args[:description] if args.key?(:description) + @enabled_features = args[:enabled_features] if args.key?(:enabled_features) + @id = args[:id] if args.key?(:id) + @instances = args[:instances] if args.key?(:instances) + @kind = args[:kind] if args.key?(:kind) + @last_updated_timestamp = args[:last_updated_timestamp] if args.key?(:last_updated_timestamp) + @leaderboard_count = args[:leaderboard_count] if args.key?(:leaderboard_count) + @name = args[:name] if args.key?(:name) + @theme_color = args[:theme_color] if args.key?(:theme_color) end end @@ -639,9 +639,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @primary = args[:primary] unless args[:primary].nil? - @secondary = args[:secondary] unless args[:secondary].nil? + @kind = args[:kind] if args.key?(:kind) + @primary = args[:primary] if args.key?(:primary) + @secondary = args[:secondary] if args.key?(:secondary) end end @@ -667,8 +667,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @player_id = args[:player_id] unless args[:player_id].nil? + @kind = args[:kind] if args.key?(:kind) + @player_id = args[:player_id] if args.key?(:player_id) end end @@ -698,9 +698,9 @@ module Google # Update properties of this object def update!(**args) - @category = args[:category] unless args[:category].nil? - @experience_points = args[:experience_points] unless args[:experience_points].nil? - @kind = args[:kind] unless args[:kind].nil? + @category = args[:category] if args.key?(:category) + @experience_points = args[:experience_points] if args.key?(:experience_points) + @kind = args[:kind] if args.key?(:kind) end end @@ -730,9 +730,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -773,9 +773,9 @@ module Google # Update properties of this object def update!(**args) - @failure_cause = args[:failure_cause] unless args[:failure_cause].nil? - @kind = args[:kind] unless args[:kind].nil? - @range = args[:range] unless args[:range].nil? + @failure_cause = args[:failure_cause] if args.key?(:failure_cause) + @kind = args[:kind] if args.key?(:kind) + @range = args[:range] if args.key?(:range) end end @@ -800,8 +800,8 @@ module Google # Update properties of this object def update!(**args) - @child_id = args[:child_id] unless args[:child_id].nil? - @kind = args[:kind] unless args[:kind].nil? + @child_id = args[:child_id] if args.key?(:child_id) + @kind = args[:kind] if args.key?(:kind) end end @@ -862,14 +862,14 @@ module Google # Update properties of this object def update!(**args) - @child_events = args[:child_events] unless args[:child_events].nil? - @description = args[:description] unless args[:description].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @id = args[:id] unless args[:id].nil? - @image_url = args[:image_url] unless args[:image_url].nil? - @is_default_image_url = args[:is_default_image_url] unless args[:is_default_image_url].nil? - @kind = args[:kind] unless args[:kind].nil? - @visibility = args[:visibility] unless args[:visibility].nil? + @child_events = args[:child_events] if args.key?(:child_events) + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @image_url = args[:image_url] if args.key?(:image_url) + @is_default_image_url = args[:is_default_image_url] if args.key?(:is_default_image_url) + @kind = args[:kind] if args.key?(:kind) + @visibility = args[:visibility] if args.key?(:visibility) end end @@ -899,9 +899,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -932,9 +932,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @period_end_millis = args[:period_end_millis] unless args[:period_end_millis].nil? - @period_start_millis = args[:period_start_millis] unless args[:period_start_millis].nil? + @kind = args[:kind] if args.key?(:kind) + @period_end_millis = args[:period_end_millis] if args.key?(:period_end_millis) + @period_start_millis = args[:period_start_millis] if args.key?(:period_start_millis) end end @@ -964,9 +964,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @time_period = args[:time_period] unless args[:time_period].nil? - @updates = args[:updates] unless args[:updates].nil? + @kind = args[:kind] if args.key?(:kind) + @time_period = args[:time_period] if args.key?(:time_period) + @updates = args[:updates] if args.key?(:updates) end end @@ -1000,9 +1000,9 @@ module Google # Update properties of this object def update!(**args) - @event_id = args[:event_id] unless args[:event_id].nil? - @failure_cause = args[:failure_cause] unless args[:failure_cause].nil? - @kind = args[:kind] unless args[:kind].nil? + @event_id = args[:event_id] if args.key?(:event_id) + @failure_cause = args[:failure_cause] if args.key?(:failure_cause) + @kind = args[:kind] if args.key?(:kind) end end @@ -1038,10 +1038,10 @@ module Google # Update properties of this object def update!(**args) - @current_time_millis = args[:current_time_millis] unless args[:current_time_millis].nil? - @kind = args[:kind] unless args[:kind].nil? - @request_id = args[:request_id] unless args[:request_id].nil? - @time_periods = args[:time_periods] unless args[:time_periods].nil? + @current_time_millis = args[:current_time_millis] if args.key?(:current_time_millis) + @kind = args[:kind] if args.key?(:kind) + @request_id = args[:request_id] if args.key?(:request_id) + @time_periods = args[:time_periods] if args.key?(:time_periods) end end @@ -1071,9 +1071,9 @@ module Google # 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? - @update_count = args[:update_count] unless args[:update_count].nil? + @definition_id = args[:definition_id] if args.key?(:definition_id) + @kind = args[:kind] if args.key?(:kind) + @update_count = args[:update_count] if args.key?(:update_count) end end @@ -1108,10 +1108,10 @@ module Google # Update properties of this object def update!(**args) - @batch_failures = args[:batch_failures] unless args[:batch_failures].nil? - @event_failures = args[:event_failures] unless args[:event_failures].nil? - @kind = args[:kind] unless args[:kind].nil? - @player_events = args[:player_events] unless args[:player_events].nil? + @batch_failures = args[:batch_failures] if args.key?(:batch_failures) + @event_failures = args[:event_failures] if args.key?(:event_failures) + @kind = args[:kind] if args.key?(:kind) + @player_events = args[:player_events] if args.key?(:player_events) end end @@ -1141,9 +1141,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @request_id = args[:request_id] unless args[:request_id].nil? - @steps = args[:steps] unless args[:steps].nil? + @kind = args[:kind] if args.key?(:kind) + @request_id = args[:request_id] if args.key?(:request_id) + @steps = args[:steps] if args.key?(:steps) end end @@ -1168,8 +1168,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @steps = args[:steps] unless args[:steps].nil? + @kind = args[:kind] if args.key?(:kind) + @steps = args[:steps] if args.key?(:steps) end end @@ -1209,11 +1209,11 @@ module Google # Update properties of this object def update!(**args) - @height = args[:height] unless args[:height].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @url = args[:url] unless args[:url].nil? - @width = args[:width] unless args[:width].nil? + @height = args[:height] if args.key?(:height) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) end end @@ -1279,15 +1279,15 @@ module Google # Update properties of this object def update!(**args) - @acquisition_uri = args[:acquisition_uri] unless args[:acquisition_uri].nil? - @android_instance = args[:android_instance] unless args[:android_instance].nil? - @ios_instance = args[:ios_instance] unless args[:ios_instance].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @platform_type = args[:platform_type] unless args[:platform_type].nil? - @realtime_play = args[:realtime_play] unless args[:realtime_play].nil? - @turn_based_play = args[:turn_based_play] unless args[:turn_based_play].nil? - @web_instance = args[:web_instance] unless args[:web_instance].nil? + @acquisition_uri = args[:acquisition_uri] if args.key?(:acquisition_uri) + @android_instance = args[:android_instance] if args.key?(:android_instance) + @ios_instance = args[:ios_instance] if args.key?(:ios_instance) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @platform_type = args[:platform_type] if args.key?(:platform_type) + @realtime_play = args[:realtime_play] if args.key?(:realtime_play) + @turn_based_play = args[:turn_based_play] if args.key?(:turn_based_play) + @web_instance = args[:web_instance] if args.key?(:web_instance) end end @@ -1324,10 +1324,10 @@ module Google # Update properties of this object def update!(**args) - @enable_piracy_check = args[:enable_piracy_check] unless args[:enable_piracy_check].nil? - @kind = args[:kind] unless args[:kind].nil? - @package_name = args[:package_name] unless args[:package_name].nil? - @preferred = args[:preferred] unless args[:preferred].nil? + @enable_piracy_check = args[:enable_piracy_check] if args.key?(:enable_piracy_check) + @kind = args[:kind] if args.key?(:kind) + @package_name = args[:package_name] if args.key?(:package_name) + @preferred = args[:preferred] if args.key?(:preferred) end end @@ -1383,13 +1383,13 @@ module Google # Update properties of this object def update!(**args) - @bundle_identifier = args[:bundle_identifier] unless args[:bundle_identifier].nil? - @itunes_app_id = args[:itunes_app_id] unless args[:itunes_app_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @preferred_for_ipad = args[:preferred_for_ipad] unless args[:preferred_for_ipad].nil? - @preferred_for_iphone = args[:preferred_for_iphone] unless args[:preferred_for_iphone].nil? - @support_ipad = args[:support_ipad] unless args[:support_ipad].nil? - @support_iphone = args[:support_iphone] unless args[:support_iphone].nil? + @bundle_identifier = args[:bundle_identifier] if args.key?(:bundle_identifier) + @itunes_app_id = args[:itunes_app_id] if args.key?(:itunes_app_id) + @kind = args[:kind] if args.key?(:kind) + @preferred_for_ipad = args[:preferred_for_ipad] if args.key?(:preferred_for_ipad) + @preferred_for_iphone = args[:preferred_for_iphone] if args.key?(:preferred_for_iphone) + @support_ipad = args[:support_ipad] if args.key?(:support_ipad) + @support_iphone = args[:support_iphone] if args.key?(:support_iphone) end end @@ -1420,9 +1420,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @launch_url = args[:launch_url] unless args[:launch_url].nil? - @preferred = args[:preferred] unless args[:preferred].nil? + @kind = args[:kind] if args.key?(:kind) + @launch_url = args[:launch_url] if args.key?(:launch_url) + @preferred = args[:preferred] if args.key?(:preferred) end end @@ -1474,12 +1474,12 @@ module Google # Update properties of this object def update!(**args) - @icon_url = args[:icon_url] unless args[:icon_url].nil? - @id = args[:id] unless args[:id].nil? - @is_icon_url_default = args[:is_icon_url_default] unless args[:is_icon_url_default].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @order = args[:order] unless args[:order].nil? + @icon_url = args[:icon_url] if args.key?(:icon_url) + @id = args[:id] if args.key?(:id) + @is_icon_url_default = args[:is_icon_url_default] if args.key?(:is_icon_url_default) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @order = args[:order] if args.key?(:order) end end @@ -1545,15 +1545,15 @@ module Google # Update properties of this object def update!(**args) - @formatted_score = args[:formatted_score] unless args[:formatted_score].nil? - @formatted_score_rank = args[:formatted_score_rank] unless args[:formatted_score_rank].nil? - @kind = args[:kind] unless args[:kind].nil? - @player = args[:player] unless args[:player].nil? - @score_rank = args[:score_rank] unless args[:score_rank].nil? - @score_tag = args[:score_tag] unless args[:score_tag].nil? - @score_value = args[:score_value] unless args[:score_value].nil? - @time_span = args[:time_span] unless args[:time_span].nil? - @write_timestamp_millis = args[:write_timestamp_millis] unless args[:write_timestamp_millis].nil? + @formatted_score = args[:formatted_score] if args.key?(:formatted_score) + @formatted_score_rank = args[:formatted_score_rank] if args.key?(:formatted_score_rank) + @kind = args[:kind] if args.key?(:kind) + @player = args[:player] if args.key?(:player) + @score_rank = args[:score_rank] if args.key?(:score_rank) + @score_tag = args[:score_tag] if args.key?(:score_tag) + @score_value = args[:score_value] if args.key?(:score_value) + @time_span = args[:time_span] if args.key?(:time_span) + @write_timestamp_millis = args[:write_timestamp_millis] if args.key?(:write_timestamp_millis) end end @@ -1583,9 +1583,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1625,11 +1625,11 @@ module Google # Update properties of this object def update!(**args) - @formatted_num_scores = args[:formatted_num_scores] unless args[:formatted_num_scores].nil? - @formatted_rank = args[:formatted_rank] unless args[:formatted_rank].nil? - @kind = args[:kind] unless args[:kind].nil? - @num_scores = args[:num_scores] unless args[:num_scores].nil? - @rank = args[:rank] unless args[:rank].nil? + @formatted_num_scores = args[:formatted_num_scores] if args.key?(:formatted_num_scores) + @formatted_rank = args[:formatted_rank] if args.key?(:formatted_rank) + @kind = args[:kind] if args.key?(:kind) + @num_scores = args[:num_scores] if args.key?(:num_scores) + @rank = args[:rank] if args.key?(:rank) end end @@ -1674,12 +1674,12 @@ module Google # 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? - @num_scores = args[:num_scores] unless args[:num_scores].nil? - @player_score = args[:player_score] unless args[:player_score].nil? - @prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @num_scores = args[:num_scores] if args.key?(:num_scores) + @player_score = args[:player_score] if args.key?(:player_score) + @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token) end end @@ -1710,9 +1710,9 @@ module Google # Update properties of this object def update!(**args) - @current_version = args[:current_version] unless args[:current_version].nil? - @kind = args[:kind] unless args[:kind].nil? - @player_levels = args[:player_levels] unless args[:player_levels].nil? + @current_version = args[:current_version] if args.key?(:current_version) + @kind = args[:kind] if args.key?(:kind) + @player_levels = args[:player_levels] if args.key?(:player_levels) end end @@ -1770,13 +1770,13 @@ module Google # Update properties of this object def update!(**args) - @android_network_subtype = args[:android_network_subtype] unless args[:android_network_subtype].nil? - @android_network_type = args[:android_network_type] unless args[:android_network_type].nil? - @ios_network_type = args[:ios_network_type] unless args[:ios_network_type].nil? - @kind = args[:kind] unless args[:kind].nil? - @network_operator_code = args[:network_operator_code] unless args[:network_operator_code].nil? - @network_operator_name = args[:network_operator_name] unless args[:network_operator_name].nil? - @registration_latency_millis = args[:registration_latency_millis] unless args[:registration_latency_millis].nil? + @android_network_subtype = args[:android_network_subtype] if args.key?(:android_network_subtype) + @android_network_type = args[:android_network_type] if args.key?(:android_network_type) + @ios_network_type = args[:ios_network_type] if args.key?(:ios_network_type) + @kind = args[:kind] if args.key?(:kind) + @network_operator_code = args[:network_operator_code] if args.key?(:network_operator_code) + @network_operator_name = args[:network_operator_name] if args.key?(:network_operator_name) + @registration_latency_millis = args[:registration_latency_millis] if args.key?(:registration_latency_millis) end end @@ -1823,10 +1823,10 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @participant_id = args[:participant_id] unless args[:participant_id].nil? - @placing = args[:placing] unless args[:placing].nil? - @result = args[:result] unless args[:result].nil? + @kind = args[:kind] if args.key?(:kind) + @participant_id = args[:participant_id] if args.key?(:participant_id) + @placing = args[:placing] if args.key?(:placing) + @result = args[:result] if args.key?(:result) end end @@ -1881,14 +1881,14 @@ module Google # Update properties of this object def update!(**args) - @bytes_received = args[:bytes_received] unless args[:bytes_received].nil? - @bytes_sent = args[:bytes_sent] unless args[:bytes_sent].nil? - @kind = args[:kind] unless args[:kind].nil? - @num_messages_lost = args[:num_messages_lost] unless args[:num_messages_lost].nil? - @num_messages_received = args[:num_messages_received] unless args[:num_messages_received].nil? - @num_messages_sent = args[:num_messages_sent] unless args[:num_messages_sent].nil? - @num_send_failures = args[:num_send_failures] unless args[:num_send_failures].nil? - @roundtrip_latency_millis = args[:roundtrip_latency_millis] unless args[:roundtrip_latency_millis].nil? + @bytes_received = args[:bytes_received] if args.key?(:bytes_received) + @bytes_sent = args[:bytes_sent] if args.key?(:bytes_sent) + @kind = args[:kind] if args.key?(:kind) + @num_messages_lost = args[:num_messages_lost] if args.key?(:num_messages_lost) + @num_messages_received = args[:num_messages_received] if args.key?(:num_messages_received) + @num_messages_sent = args[:num_messages_sent] if args.key?(:num_messages_sent) + @num_send_failures = args[:num_send_failures] if args.key?(:num_send_failures) + @roundtrip_latency_millis = args[:roundtrip_latency_millis] if args.key?(:roundtrip_latency_millis) end end @@ -1928,11 +1928,11 @@ module Google # Update properties of this object def update!(**args) - @connected_timestamp_millis = args[:connected_timestamp_millis] unless args[:connected_timestamp_millis].nil? - @kind = args[:kind] unless args[:kind].nil? - @participant_id = args[:participant_id] unless args[:participant_id].nil? - @reliable_channel = args[:reliable_channel] unless args[:reliable_channel].nil? - @unreliable_channel = args[:unreliable_channel] unless args[:unreliable_channel].nil? + @connected_timestamp_millis = args[:connected_timestamp_millis] if args.key?(:connected_timestamp_millis) + @kind = args[:kind] if args.key?(:kind) + @participant_id = args[:participant_id] if args.key?(:participant_id) + @reliable_channel = args[:reliable_channel] if args.key?(:reliable_channel) + @unreliable_channel = args[:unreliable_channel] if args.key?(:unreliable_channel) end end @@ -1965,9 +1965,9 @@ module Google # Update properties of this object def update!(**args) - @auto_matched = args[:auto_matched] unless args[:auto_matched].nil? - @kind = args[:kind] unless args[:kind].nil? - @time_millis = args[:time_millis] unless args[:time_millis].nil? + @auto_matched = args[:auto_matched] if args.key?(:auto_matched) + @kind = args[:kind] if args.key?(:kind) + @time_millis = args[:time_millis] if args.key?(:time_millis) end end @@ -2034,16 +2034,16 @@ 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? - @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? + @avatar_image_url = args[:avatar_image_url] if args.key?(:avatar_image_url) + @banner_url_landscape = args[:banner_url_landscape] if args.key?(:banner_url_landscape) + @banner_url_portrait = args[:banner_url_portrait] if args.key?(:banner_url_portrait) + @display_name = args[:display_name] if args.key?(:display_name) + @experience_info = args[:experience_info] if args.key?(:experience_info) + @kind = args[:kind] if args.key?(:kind) + @last_played_with = args[:last_played_with] if args.key?(:last_played_with) + @name = args[:name] if args.key?(:name) + @player_id = args[:player_id] if args.key?(:player_id) + @title = args[:title] if args.key?(:title) end # An object representation of the individual components of the player's name. @@ -2067,8 +2067,8 @@ module Google # 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? + @family_name = args[:family_name] if args.key?(:family_name) + @given_name = args[:given_name] if args.key?(:given_name) end end end @@ -2125,13 +2125,13 @@ module Google # Update properties of this object def update!(**args) - @achievement_state = args[:achievement_state] unless args[:achievement_state].nil? - @current_steps = args[:current_steps] unless args[:current_steps].nil? - @experience_points = args[:experience_points] unless args[:experience_points].nil? - @formatted_current_steps_string = args[:formatted_current_steps_string] unless args[:formatted_current_steps_string].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_updated_timestamp = args[:last_updated_timestamp] unless args[:last_updated_timestamp].nil? + @achievement_state = args[:achievement_state] if args.key?(:achievement_state) + @current_steps = args[:current_steps] if args.key?(:current_steps) + @experience_points = args[:experience_points] if args.key?(:experience_points) + @formatted_current_steps_string = args[:formatted_current_steps_string] if args.key?(:formatted_current_steps_string) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @last_updated_timestamp = args[:last_updated_timestamp] if args.key?(:last_updated_timestamp) end end @@ -2161,9 +2161,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -2205,11 +2205,11 @@ module Google # Update properties of this object def update!(**args) - @definition_id = args[:definition_id] unless args[:definition_id].nil? - @formatted_num_events = args[:formatted_num_events] unless args[:formatted_num_events].nil? - @kind = args[:kind] unless args[:kind].nil? - @num_events = args[:num_events] unless args[:num_events].nil? - @player_id = args[:player_id] unless args[:player_id].nil? + @definition_id = args[:definition_id] if args.key?(:definition_id) + @formatted_num_events = args[:formatted_num_events] if args.key?(:formatted_num_events) + @kind = args[:kind] if args.key?(:kind) + @num_events = args[:num_events] if args.key?(:num_events) + @player_id = args[:player_id] if args.key?(:player_id) end end @@ -2239,9 +2239,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -2281,11 +2281,11 @@ module Google # 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? - @kind = args[:kind] unless args[:kind].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? + @current_experience_points = args[:current_experience_points] if args.key?(:current_experience_points) + @current_level = args[:current_level] if args.key?(:current_level) + @kind = args[:kind] if args.key?(:kind) + @last_level_up_timestamp_millis = args[:last_level_up_timestamp_millis] if args.key?(:last_level_up_timestamp_millis) + @next_level = args[:next_level] if args.key?(:next_level) end end @@ -2351,15 +2351,15 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @leaderboard_id = args[:leaderboard_id] unless args[:leaderboard_id].nil? - @public_rank = args[:public_rank] unless args[:public_rank].nil? - @score_string = args[:score_string] unless args[:score_string].nil? - @score_tag = args[:score_tag] unless args[:score_tag].nil? - @score_value = args[:score_value] unless args[:score_value].nil? - @social_rank = args[:social_rank] unless args[:social_rank].nil? - @time_span = args[:time_span] unless args[:time_span].nil? - @write_timestamp = args[:write_timestamp] unless args[:write_timestamp].nil? + @kind = args[:kind] if args.key?(:kind) + @leaderboard_id = args[:leaderboard_id] if args.key?(:leaderboard_id) + @public_rank = args[:public_rank] if args.key?(:public_rank) + @score_string = args[:score_string] if args.key?(:score_string) + @score_tag = args[:score_tag] if args.key?(:score_tag) + @score_value = args[:score_value] if args.key?(:score_value) + @social_rank = args[:social_rank] if args.key?(:social_rank) + @time_span = args[:time_span] if args.key?(:time_span) + @write_timestamp = args[:write_timestamp] if args.key?(:write_timestamp) end end @@ -2394,10 +2394,10 @@ module Google # 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? - @player = args[:player] unless args[:player].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @player = args[:player] if args.key?(:player) end end @@ -2432,10 +2432,10 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @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? + @kind = args[:kind] if args.key?(:kind) + @level = args[:level] if args.key?(:level) + @max_experience_points = args[:max_experience_points] if args.key?(:max_experience_points) + @min_experience_points = args[:min_experience_points] if args.key?(:min_experience_points) end end @@ -2465,9 +2465,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -2512,11 +2512,11 @@ module Google # Update properties of this object def update!(**args) - @formatted_score = args[:formatted_score] unless args[:formatted_score].nil? - @kind = args[:kind] unless args[:kind].nil? - @score = args[:score] unless args[:score].nil? - @score_tag = args[:score_tag] unless args[:score_tag].nil? - @time_span = args[:time_span] unless args[:time_span].nil? + @formatted_score = args[:formatted_score] if args.key?(:formatted_score) + @kind = args[:kind] if args.key?(:kind) + @score = args[:score] if args.key?(:score) + @score_tag = args[:score_tag] if args.key?(:score_tag) + @time_span = args[:time_span] if args.key?(:time_span) end end @@ -2541,8 +2541,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @submitted_scores = args[:submitted_scores] unless args[:submitted_scores].nil? + @kind = args[:kind] if args.key?(:kind) + @submitted_scores = args[:submitted_scores] if args.key?(:submitted_scores) end end @@ -2595,12 +2595,12 @@ module Google # Update properties of this object def update!(**args) - @beaten_score_time_spans = args[:beaten_score_time_spans] unless args[:beaten_score_time_spans].nil? - @formatted_score = args[:formatted_score] unless args[:formatted_score].nil? - @kind = args[:kind] unless args[:kind].nil? - @leaderboard_id = args[:leaderboard_id] unless args[:leaderboard_id].nil? - @score_tag = args[:score_tag] unless args[:score_tag].nil? - @unbeaten_scores = args[:unbeaten_scores] unless args[:unbeaten_scores].nil? + @beaten_score_time_spans = args[:beaten_score_time_spans] if args.key?(:beaten_score_time_spans) + @formatted_score = args[:formatted_score] if args.key?(:formatted_score) + @kind = args[:kind] if args.key?(:kind) + @leaderboard_id = args[:leaderboard_id] if args.key?(:leaderboard_id) + @score_tag = args[:score_tag] if args.key?(:score_tag) + @unbeaten_scores = args[:unbeaten_scores] if args.key?(:unbeaten_scores) end end @@ -2625,8 +2625,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @scores = args[:scores] unless args[:scores].nil? + @kind = args[:kind] if args.key?(:kind) + @scores = args[:scores] if args.key?(:scores) end end @@ -2665,10 +2665,10 @@ module Google # Update properties of this object def update!(**args) - @client_revision = args[:client_revision] unless args[:client_revision].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @language = args[:language] unless args[:language].nil? + @client_revision = args[:client_revision] if args.key?(:client_revision) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @language = args[:language] if args.key?(:language) end end @@ -2693,8 +2693,8 @@ module Google # Update properties of this object def update!(**args) - @ios = args[:ios] unless args[:ios].nil? - @kind = args[:kind] unless args[:kind].nil? + @ios = args[:ios] if args.key?(:ios) + @kind = args[:kind] if args.key?(:kind) end # A push token ID for iOS devices. @@ -2719,8 +2719,8 @@ module Google # Update properties of this object def update!(**args) - @apns_device_token = args[:apns_device_token] unless args[:apns_device_token].nil? - @apns_environment = args[:apns_environment] unless args[:apns_environment].nil? + @apns_device_token = args[:apns_device_token] if args.key?(:apns_device_token) + @apns_environment = args[:apns_environment] if args.key?(:apns_environment) end end end @@ -2835,22 +2835,22 @@ module Google # Update properties of this object def update!(**args) - @accepted_timestamp_millis = args[:accepted_timestamp_millis] unless args[:accepted_timestamp_millis].nil? - @application_id = args[:application_id] unless args[:application_id].nil? - @banner_url = args[:banner_url] unless args[:banner_url].nil? - @description = args[:description] unless args[:description].nil? - @end_timestamp_millis = args[:end_timestamp_millis] unless args[:end_timestamp_millis].nil? - @icon_url = args[:icon_url] unless args[:icon_url].nil? - @id = args[:id] unless args[:id].nil? - @is_default_banner_url = args[:is_default_banner_url] unless args[:is_default_banner_url].nil? - @is_default_icon_url = args[:is_default_icon_url] unless args[:is_default_icon_url].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_updated_timestamp_millis = args[:last_updated_timestamp_millis] unless args[:last_updated_timestamp_millis].nil? - @milestones = args[:milestones] unless args[:milestones].nil? - @name = args[:name] unless args[:name].nil? - @notify_timestamp_millis = args[:notify_timestamp_millis] unless args[:notify_timestamp_millis].nil? - @start_timestamp_millis = args[:start_timestamp_millis] unless args[:start_timestamp_millis].nil? - @state = args[:state] unless args[:state].nil? + @accepted_timestamp_millis = args[:accepted_timestamp_millis] if args.key?(:accepted_timestamp_millis) + @application_id = args[:application_id] if args.key?(:application_id) + @banner_url = args[:banner_url] if args.key?(:banner_url) + @description = args[:description] if args.key?(:description) + @end_timestamp_millis = args[:end_timestamp_millis] if args.key?(:end_timestamp_millis) + @icon_url = args[:icon_url] if args.key?(:icon_url) + @id = args[:id] if args.key?(:id) + @is_default_banner_url = args[:is_default_banner_url] if args.key?(:is_default_banner_url) + @is_default_icon_url = args[:is_default_icon_url] if args.key?(:is_default_icon_url) + @kind = args[:kind] if args.key?(:kind) + @last_updated_timestamp_millis = args[:last_updated_timestamp_millis] if args.key?(:last_updated_timestamp_millis) + @milestones = args[:milestones] if args.key?(:milestones) + @name = args[:name] if args.key?(:name) + @notify_timestamp_millis = args[:notify_timestamp_millis] if args.key?(:notify_timestamp_millis) + @start_timestamp_millis = args[:start_timestamp_millis] if args.key?(:start_timestamp_millis) + @state = args[:state] if args.key?(:state) end end @@ -2882,9 +2882,9 @@ module Google # Update properties of this object def update!(**args) - @formatted_value = args[:formatted_value] unless args[:formatted_value].nil? - @kind = args[:kind] unless args[:kind].nil? - @value = args[:value] unless args[:value].nil? + @formatted_value = args[:formatted_value] if args.key?(:formatted_value) + @kind = args[:kind] if args.key?(:kind) + @value = args[:value] if args.key?(:value) end end @@ -2924,11 +2924,11 @@ module Google # Update properties of this object def update!(**args) - @completion_contribution = args[:completion_contribution] unless args[:completion_contribution].nil? - @current_contribution = args[:current_contribution] unless args[:current_contribution].nil? - @event_id = args[:event_id] unless args[:event_id].nil? - @initial_player_progress = args[:initial_player_progress] unless args[:initial_player_progress].nil? - @kind = args[:kind] unless args[:kind].nil? + @completion_contribution = args[:completion_contribution] if args.key?(:completion_contribution) + @current_contribution = args[:current_contribution] if args.key?(:current_contribution) + @event_id = args[:event_id] if args.key?(:event_id) + @initial_player_progress = args[:initial_player_progress] if args.key?(:initial_player_progress) + @kind = args[:kind] if args.key?(:kind) end end @@ -2958,9 +2958,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -3008,11 +3008,11 @@ module Google # Update properties of this object def update!(**args) - @completion_reward_data = args[:completion_reward_data] unless args[:completion_reward_data].nil? - @criteria = args[:criteria] unless args[:criteria].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @state = args[:state] unless args[:state].nil? + @completion_reward_data = args[:completion_reward_data] if args.key?(:completion_reward_data) + @criteria = args[:criteria] if args.key?(:criteria) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @state = args[:state] if args.key?(:state) end end @@ -3048,9 +3048,9 @@ module Google # Update properties of this object def update!(**args) - @api_version = args[:api_version] unless args[:api_version].nil? - @kind = args[:kind] unless args[:kind].nil? - @revision_status = args[:revision_status] unless args[:revision_status].nil? + @api_version = args[:api_version] if args.key?(:api_version) + @kind = args[:kind] if args.key?(:kind) + @revision_status = args[:revision_status] if args.key?(:revision_status) end end @@ -3145,19 +3145,19 @@ module Google # Update properties of this object def update!(**args) - @application_id = args[:application_id] unless args[:application_id].nil? - @auto_matching_criteria = args[:auto_matching_criteria] unless args[:auto_matching_criteria].nil? - @auto_matching_status = args[:auto_matching_status] unless args[:auto_matching_status].nil? - @creation_details = args[:creation_details] unless args[:creation_details].nil? - @description = args[:description] unless args[:description].nil? - @inviter_id = args[:inviter_id] unless args[:inviter_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_update_details = args[:last_update_details] unless args[:last_update_details].nil? - @participants = args[:participants] unless args[:participants].nil? - @room_id = args[:room_id] unless args[:room_id].nil? - @room_status_version = args[:room_status_version] unless args[:room_status_version].nil? - @status = args[:status] unless args[:status].nil? - @variant = args[:variant] unless args[:variant].nil? + @application_id = args[:application_id] if args.key?(:application_id) + @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria) + @auto_matching_status = args[:auto_matching_status] if args.key?(:auto_matching_status) + @creation_details = args[:creation_details] if args.key?(:creation_details) + @description = args[:description] if args.key?(:description) + @inviter_id = args[:inviter_id] if args.key?(:inviter_id) + @kind = args[:kind] if args.key?(:kind) + @last_update_details = args[:last_update_details] if args.key?(:last_update_details) + @participants = args[:participants] if args.key?(:participants) + @room_id = args[:room_id] if args.key?(:room_id) + @room_status_version = args[:room_status_version] if args.key?(:room_status_version) + @status = args[:status] if args.key?(:status) + @variant = args[:variant] if args.key?(:variant) end end @@ -3183,8 +3183,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @wait_estimate_seconds = args[:wait_estimate_seconds] unless args[:wait_estimate_seconds].nil? + @kind = args[:kind] if args.key?(:kind) + @wait_estimate_seconds = args[:wait_estimate_seconds] if args.key?(:wait_estimate_seconds) end end @@ -3223,10 +3223,10 @@ module Google # Update properties of this object def update!(**args) - @exclusive_bitmask = args[:exclusive_bitmask] unless args[:exclusive_bitmask].nil? - @kind = args[:kind] unless args[:kind].nil? - @max_auto_matching_players = args[:max_auto_matching_players] unless args[:max_auto_matching_players].nil? - @min_auto_matching_players = args[:min_auto_matching_players] unless args[:min_auto_matching_players].nil? + @exclusive_bitmask = args[:exclusive_bitmask] if args.key?(:exclusive_bitmask) + @kind = args[:kind] if args.key?(:kind) + @max_auto_matching_players = args[:max_auto_matching_players] if args.key?(:max_auto_matching_players) + @min_auto_matching_players = args[:min_auto_matching_players] if args.key?(:min_auto_matching_players) end end @@ -3251,8 +3251,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @xmpp_address = args[:xmpp_address] unless args[:xmpp_address].nil? + @kind = args[:kind] if args.key?(:kind) + @xmpp_address = args[:xmpp_address] if args.key?(:xmpp_address) end end @@ -3310,14 +3310,14 @@ module Google # Update properties of this object def update!(**args) - @auto_matching_criteria = args[:auto_matching_criteria] unless args[:auto_matching_criteria].nil? - @capabilities = args[:capabilities] unless args[:capabilities].nil? - @client_address = args[:client_address] unless args[:client_address].nil? - @invited_player_ids = args[:invited_player_ids] unless args[:invited_player_ids].nil? - @kind = args[:kind] unless args[:kind].nil? - @network_diagnostics = args[:network_diagnostics] unless args[:network_diagnostics].nil? - @request_id = args[:request_id] unless args[:request_id].nil? - @variant = args[:variant] unless args[:variant].nil? + @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria) + @capabilities = args[:capabilities] if args.key?(:capabilities) + @client_address = args[:client_address] if args.key?(:client_address) + @invited_player_ids = args[:invited_player_ids] if args.key?(:invited_player_ids) + @kind = args[:kind] if args.key?(:kind) + @network_diagnostics = args[:network_diagnostics] if args.key?(:network_diagnostics) + @request_id = args[:request_id] if args.key?(:request_id) + @variant = args[:variant] if args.key?(:variant) end end @@ -3352,10 +3352,10 @@ module Google # Update properties of this object def update!(**args) - @capabilities = args[:capabilities] unless args[:capabilities].nil? - @client_address = args[:client_address] unless args[:client_address].nil? - @kind = args[:kind] unless args[:kind].nil? - @network_diagnostics = args[:network_diagnostics] unless args[:network_diagnostics].nil? + @capabilities = args[:capabilities] if args.key?(:capabilities) + @client_address = args[:client_address] if args.key?(:client_address) + @kind = args[:kind] if args.key?(:kind) + @network_diagnostics = args[:network_diagnostics] if args.key?(:network_diagnostics) end end @@ -3420,14 +3420,14 @@ module Google # Update properties of this object def update!(**args) - @android_network_subtype = args[:android_network_subtype] unless args[:android_network_subtype].nil? - @android_network_type = args[:android_network_type] unless args[:android_network_type].nil? - @ios_network_type = args[:ios_network_type] unless args[:ios_network_type].nil? - @kind = args[:kind] unless args[:kind].nil? - @network_operator_code = args[:network_operator_code] unless args[:network_operator_code].nil? - @network_operator_name = args[:network_operator_name] unless args[:network_operator_name].nil? - @peer_session = args[:peer_session] unless args[:peer_session].nil? - @sockets_used = args[:sockets_used] unless args[:sockets_used].nil? + @android_network_subtype = args[:android_network_subtype] if args.key?(:android_network_subtype) + @android_network_type = args[:android_network_type] if args.key?(:android_network_type) + @ios_network_type = args[:ios_network_type] if args.key?(:ios_network_type) + @kind = args[:kind] if args.key?(:kind) + @network_operator_code = args[:network_operator_code] if args.key?(:network_operator_code) + @network_operator_name = args[:network_operator_name] if args.key?(:network_operator_name) + @peer_session = args[:peer_session] if args.key?(:peer_session) + @sockets_used = args[:sockets_used] if args.key?(:sockets_used) end end @@ -3478,9 +3478,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @leave_diagnostics = args[:leave_diagnostics] unless args[:leave_diagnostics].nil? - @reason = args[:reason] unless args[:reason].nil? + @kind = args[:kind] if args.key?(:kind) + @leave_diagnostics = args[:leave_diagnostics] if args.key?(:leave_diagnostics) + @reason = args[:reason] if args.key?(:reason) end end @@ -3510,9 +3510,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -3543,9 +3543,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @modified_timestamp_millis = args[:modified_timestamp_millis] unless args[:modified_timestamp_millis].nil? - @participant_id = args[:participant_id] unless args[:participant_id].nil? + @kind = args[:kind] if args.key?(:kind) + @modified_timestamp_millis = args[:modified_timestamp_millis] if args.key?(:modified_timestamp_millis) + @participant_id = args[:participant_id] if args.key?(:participant_id) end end @@ -3609,13 +3609,13 @@ module Google # Update properties of this object def update!(**args) - @connection_setup_latency_millis = args[:connection_setup_latency_millis] unless args[:connection_setup_latency_millis].nil? - @error = args[:error] unless args[:error].nil? - @error_reason = args[:error_reason] unless args[:error_reason].nil? - @kind = args[:kind] unless args[:kind].nil? - @participant_id = args[:participant_id] unless args[:participant_id].nil? - @status = args[:status] unless args[:status].nil? - @unreliable_roundtrip_latency_millis = args[:unreliable_roundtrip_latency_millis] unless args[:unreliable_roundtrip_latency_millis].nil? + @connection_setup_latency_millis = args[:connection_setup_latency_millis] if args.key?(:connection_setup_latency_millis) + @error = args[:error] if args.key?(:error) + @error_reason = args[:error_reason] if args.key?(:error_reason) + @kind = args[:kind] if args.key?(:kind) + @participant_id = args[:participant_id] if args.key?(:participant_id) + @status = args[:status] if args.key?(:status) + @unreliable_roundtrip_latency_millis = args[:unreliable_roundtrip_latency_millis] if args.key?(:unreliable_roundtrip_latency_millis) end end @@ -3640,8 +3640,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @updates = args[:updates] unless args[:updates].nil? + @kind = args[:kind] if args.key?(:kind) + @updates = args[:updates] if args.key?(:updates) end end @@ -3730,16 +3730,16 @@ module Google # Update properties of this object def update!(**args) - @auto_matched = args[:auto_matched] unless args[:auto_matched].nil? - @auto_matched_player = args[:auto_matched_player] unless args[:auto_matched_player].nil? - @capabilities = args[:capabilities] unless args[:capabilities].nil? - @client_address = args[:client_address] unless args[:client_address].nil? - @connected = args[:connected] unless args[:connected].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @leave_reason = args[:leave_reason] unless args[:leave_reason].nil? - @player = args[:player] unless args[:player].nil? - @status = args[:status] unless args[:status].nil? + @auto_matched = args[:auto_matched] if args.key?(:auto_matched) + @auto_matched_player = args[:auto_matched_player] if args.key?(:auto_matched_player) + @capabilities = args[:capabilities] if args.key?(:capabilities) + @client_address = args[:client_address] if args.key?(:client_address) + @connected = args[:connected] if args.key?(:connected) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @leave_reason = args[:leave_reason] if args.key?(:leave_reason) + @player = args[:player] if args.key?(:player) + @status = args[:status] if args.key?(:status) end end @@ -3793,12 +3793,12 @@ module Google # Update properties of this object def update!(**args) - @auto_matching_status = args[:auto_matching_status] unless args[:auto_matching_status].nil? - @kind = args[:kind] unless args[:kind].nil? - @participants = args[:participants] unless args[:participants].nil? - @room_id = args[:room_id] unless args[:room_id].nil? - @status = args[:status] unless args[:status].nil? - @status_version = args[:status_version] unless args[:status_version].nil? + @auto_matching_status = args[:auto_matching_status] if args.key?(:auto_matching_status) + @kind = args[:kind] if args.key?(:kind) + @participants = args[:participants] if args.key?(:participants) + @room_id = args[:room_id] if args.key?(:room_id) + @status = args[:status] if args.key?(:status) + @status_version = args[:status_version] if args.key?(:status_version) end end @@ -3840,11 +3840,11 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @leaderboard_id = args[:leaderboard_id] unless args[:leaderboard_id].nil? - @score = args[:score] unless args[:score].nil? - @score_tag = args[:score_tag] unless args[:score_tag].nil? - @signature = args[:signature] unless args[:signature].nil? + @kind = args[:kind] if args.key?(:kind) + @leaderboard_id = args[:leaderboard_id] if args.key?(:leaderboard_id) + @score = args[:score] if args.key?(:score) + @score_tag = args[:score_tag] if args.key?(:score_tag) + @signature = args[:signature] if args.key?(:signature) end end @@ -3919,17 +3919,17 @@ module Google # Update properties of this object def update!(**args) - @cover_image = args[:cover_image] unless args[:cover_image].nil? - @description = args[:description] unless args[:description].nil? - @drive_id = args[:drive_id] unless args[:drive_id].nil? - @duration_millis = args[:duration_millis] unless args[:duration_millis].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_modified_millis = args[:last_modified_millis] unless args[:last_modified_millis].nil? - @progress_value = args[:progress_value] unless args[:progress_value].nil? - @title = args[:title] unless args[:title].nil? - @type = args[:type] unless args[:type].nil? - @unique_name = args[:unique_name] unless args[:unique_name].nil? + @cover_image = args[:cover_image] if args.key?(:cover_image) + @description = args[:description] if args.key?(:description) + @drive_id = args[:drive_id] if args.key?(:drive_id) + @duration_millis = args[:duration_millis] if args.key?(:duration_millis) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @last_modified_millis = args[:last_modified_millis] if args.key?(:last_modified_millis) + @progress_value = args[:progress_value] if args.key?(:progress_value) + @title = args[:title] if args.key?(:title) + @type = args[:type] if args.key?(:type) + @unique_name = args[:unique_name] if args.key?(:unique_name) end end @@ -3970,11 +3970,11 @@ module Google # Update properties of this object def update!(**args) - @height = args[:height] unless args[:height].nil? - @kind = args[:kind] unless args[:kind].nil? - @mime_type = args[:mime_type] unless args[:mime_type].nil? - @url = args[:url] unless args[:url].nil? - @width = args[:width] unless args[:width].nil? + @height = args[:height] if args.key?(:height) + @kind = args[:kind] if args.key?(:kind) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) end end @@ -4005,9 +4005,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -4046,10 +4046,10 @@ module Google # Update properties of this object def update!(**args) - @exclusive_bitmask = args[:exclusive_bitmask] unless args[:exclusive_bitmask].nil? - @kind = args[:kind] unless args[:kind].nil? - @max_auto_matching_players = args[:max_auto_matching_players] unless args[:max_auto_matching_players].nil? - @min_auto_matching_players = args[:min_auto_matching_players] unless args[:min_auto_matching_players].nil? + @exclusive_bitmask = args[:exclusive_bitmask] if args.key?(:exclusive_bitmask) + @kind = args[:kind] if args.key?(:kind) + @max_auto_matching_players = args[:max_auto_matching_players] if args.key?(:max_auto_matching_players) + @min_auto_matching_players = args[:min_auto_matching_players] if args.key?(:min_auto_matching_players) end end @@ -4191,26 +4191,26 @@ module Google # Update properties of this object def update!(**args) - @application_id = args[:application_id] unless args[:application_id].nil? - @auto_matching_criteria = args[:auto_matching_criteria] unless args[:auto_matching_criteria].nil? - @creation_details = args[:creation_details] unless args[:creation_details].nil? - @data = args[:data] unless args[:data].nil? - @description = args[:description] unless args[:description].nil? - @inviter_id = args[:inviter_id] unless args[:inviter_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @last_update_details = args[:last_update_details] unless args[:last_update_details].nil? - @match_id = args[:match_id] unless args[:match_id].nil? - @match_number = args[:match_number] unless args[:match_number].nil? - @match_version = args[:match_version] unless args[:match_version].nil? - @participants = args[:participants] unless args[:participants].nil? - @pending_participant_id = args[:pending_participant_id] unless args[:pending_participant_id].nil? - @previous_match_data = args[:previous_match_data] unless args[:previous_match_data].nil? - @rematch_id = args[:rematch_id] unless args[:rematch_id].nil? - @results = args[:results] unless args[:results].nil? - @status = args[:status] unless args[:status].nil? - @user_match_status = args[:user_match_status] unless args[:user_match_status].nil? - @variant = args[:variant] unless args[:variant].nil? - @with_participant_id = args[:with_participant_id] unless args[:with_participant_id].nil? + @application_id = args[:application_id] if args.key?(:application_id) + @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria) + @creation_details = args[:creation_details] if args.key?(:creation_details) + @data = args[:data] if args.key?(:data) + @description = args[:description] if args.key?(:description) + @inviter_id = args[:inviter_id] if args.key?(:inviter_id) + @kind = args[:kind] if args.key?(:kind) + @last_update_details = args[:last_update_details] if args.key?(:last_update_details) + @match_id = args[:match_id] if args.key?(:match_id) + @match_number = args[:match_number] if args.key?(:match_number) + @match_version = args[:match_version] if args.key?(:match_version) + @participants = args[:participants] if args.key?(:participants) + @pending_participant_id = args[:pending_participant_id] if args.key?(:pending_participant_id) + @previous_match_data = args[:previous_match_data] if args.key?(:previous_match_data) + @rematch_id = args[:rematch_id] if args.key?(:rematch_id) + @results = args[:results] if args.key?(:results) + @status = args[:status] if args.key?(:status) + @user_match_status = args[:user_match_status] if args.key?(:user_match_status) + @variant = args[:variant] if args.key?(:variant) + @with_participant_id = args[:with_participant_id] if args.key?(:with_participant_id) end end @@ -4253,11 +4253,11 @@ module Google # Update properties of this object def update!(**args) - @auto_matching_criteria = args[:auto_matching_criteria] unless args[:auto_matching_criteria].nil? - @invited_player_ids = args[:invited_player_ids] unless args[:invited_player_ids].nil? - @kind = args[:kind] unless args[:kind].nil? - @request_id = args[:request_id] unless args[:request_id].nil? - @variant = args[:variant] unless args[:variant].nil? + @auto_matching_criteria = args[:auto_matching_criteria] if args.key?(:auto_matching_criteria) + @invited_player_ids = args[:invited_player_ids] if args.key?(:invited_player_ids) + @kind = args[:kind] if args.key?(:kind) + @request_id = args[:request_id] if args.key?(:request_id) + @variant = args[:variant] if args.key?(:variant) end end @@ -4290,9 +4290,9 @@ module Google # Update properties of this object def update!(**args) - @data = args[:data] unless args[:data].nil? - @data_available = args[:data_available] unless args[:data_available].nil? - @kind = args[:kind] unless args[:kind].nil? + @data = args[:data] if args.key?(:data) + @data_available = args[:data_available] if args.key?(:data_available) + @kind = args[:kind] if args.key?(:kind) end end @@ -4318,8 +4318,8 @@ module Google # Update properties of this object def update!(**args) - @data = args[:data] unless args[:data].nil? - @kind = args[:kind] unless args[:kind].nil? + @data = args[:data] if args.key?(:data) + @kind = args[:kind] if args.key?(:kind) end end @@ -4349,9 +4349,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -4382,9 +4382,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @modified_timestamp_millis = args[:modified_timestamp_millis] unless args[:modified_timestamp_millis].nil? - @participant_id = args[:participant_id] unless args[:participant_id].nil? + @kind = args[:kind] if args.key?(:kind) + @modified_timestamp_millis = args[:modified_timestamp_millis] if args.key?(:modified_timestamp_millis) + @participant_id = args[:participant_id] if args.key?(:participant_id) end end @@ -4445,12 +4445,12 @@ module Google # Update properties of this object def update!(**args) - @auto_matched = args[:auto_matched] unless args[:auto_matched].nil? - @auto_matched_player = args[:auto_matched_player] unless args[:auto_matched_player].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @player = args[:player] unless args[:player].nil? - @status = args[:status] unless args[:status].nil? + @auto_matched = args[:auto_matched] if args.key?(:auto_matched) + @auto_matched_player = args[:auto_matched_player] if args.key?(:auto_matched_player) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @player = args[:player] if args.key?(:player) + @status = args[:status] if args.key?(:status) end end @@ -4480,9 +4480,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @previous_match = args[:previous_match] unless args[:previous_match].nil? - @rematch = args[:rematch] unless args[:rematch].nil? + @kind = args[:kind] if args.key?(:kind) + @previous_match = args[:previous_match] if args.key?(:previous_match) + @rematch = args[:rematch] if args.key?(:rematch) end end @@ -4517,10 +4517,10 @@ module Google # Update properties of this object def update!(**args) - @data = args[:data] unless args[:data].nil? - @kind = args[:kind] unless args[:kind].nil? - @match_version = args[:match_version] unless args[:match_version].nil? - @results = args[:results] unless args[:results].nil? + @data = args[:data] if args.key?(:data) + @kind = args[:kind] if args.key?(:kind) + @match_version = args[:match_version] if args.key?(:match_version) + @results = args[:results] if args.key?(:results) end end @@ -4557,10 +4557,10 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @more_available = args[:more_available] unless args[:more_available].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @more_available = args[:more_available] if args.key?(:more_available) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -4605,11 +4605,11 @@ module Google # Update properties of this object def update!(**args) - @data = args[:data] unless args[:data].nil? - @kind = args[:kind] unless args[:kind].nil? - @match_version = args[:match_version] unless args[:match_version].nil? - @pending_participant_id = args[:pending_participant_id] unless args[:pending_participant_id].nil? - @results = args[:results] unless args[:results].nil? + @data = args[:data] if args.key?(:data) + @kind = args[:kind] if args.key?(:kind) + @match_version = args[:match_version] if args.key?(:match_version) + @pending_participant_id = args[:pending_participant_id] if args.key?(:pending_participant_id) + @results = args[:results] if args.key?(:results) end end end diff --git a/generated/google/apis/gan_v1beta1/classes.rb b/generated/google/apis/gan_v1beta1/classes.rb index ad4cfa325..2acb6770a 100644 --- a/generated/google/apis/gan_v1beta1/classes.rb +++ b/generated/google/apis/gan_v1beta1/classes.rb @@ -145,27 +145,27 @@ module Google # Update properties of this object def update!(**args) - @allow_publisher_created_links = args[:allow_publisher_created_links] unless args[:allow_publisher_created_links].nil? - @category = args[:category] unless args[:category].nil? - @commission_duration = args[:commission_duration] unless args[:commission_duration].nil? - @contact_email = args[:contact_email] unless args[:contact_email].nil? - @contact_phone = args[:contact_phone] unless args[:contact_phone].nil? - @default_link_id = args[:default_link_id] unless args[:default_link_id].nil? - @description = args[:description] unless args[:description].nil? - @epc_ninety_day_average = args[:epc_ninety_day_average] unless args[:epc_ninety_day_average].nil? - @epc_seven_day_average = args[:epc_seven_day_average] unless args[:epc_seven_day_average].nil? - @id = args[:id] unless args[:id].nil? - @item = args[:item] unless args[:item].nil? - @join_date = args[:join_date] unless args[:join_date].nil? - @kind = args[:kind] unless args[:kind].nil? - @logo_url = args[:logo_url] unless args[:logo_url].nil? - @merchant_center_ids = args[:merchant_center_ids] unless args[:merchant_center_ids].nil? - @name = args[:name] unless args[:name].nil? - @payout_rank = args[:payout_rank] unless args[:payout_rank].nil? - @product_feeds_enabled = args[:product_feeds_enabled] unless args[:product_feeds_enabled].nil? - @redirect_domains = args[:redirect_domains] unless args[:redirect_domains].nil? - @site_url = args[:site_url] unless args[:site_url].nil? - @status = args[:status] unless args[:status].nil? + @allow_publisher_created_links = args[:allow_publisher_created_links] if args.key?(:allow_publisher_created_links) + @category = args[:category] if args.key?(:category) + @commission_duration = args[:commission_duration] if args.key?(:commission_duration) + @contact_email = args[:contact_email] if args.key?(:contact_email) + @contact_phone = args[:contact_phone] if args.key?(:contact_phone) + @default_link_id = args[:default_link_id] if args.key?(:default_link_id) + @description = args[:description] if args.key?(:description) + @epc_ninety_day_average = args[:epc_ninety_day_average] if args.key?(:epc_ninety_day_average) + @epc_seven_day_average = args[:epc_seven_day_average] if args.key?(:epc_seven_day_average) + @id = args[:id] if args.key?(:id) + @item = args[:item] if args.key?(:item) + @join_date = args[:join_date] if args.key?(:join_date) + @kind = args[:kind] if args.key?(:kind) + @logo_url = args[:logo_url] if args.key?(:logo_url) + @merchant_center_ids = args[:merchant_center_ids] if args.key?(:merchant_center_ids) + @name = args[:name] if args.key?(:name) + @payout_rank = args[:payout_rank] if args.key?(:payout_rank) + @product_feeds_enabled = args[:product_feeds_enabled] if args.key?(:product_feeds_enabled) + @redirect_domains = args[:redirect_domains] if args.key?(:redirect_domains) + @site_url = args[:site_url] if args.key?(:site_url) + @status = args[:status] if args.key?(:status) end end @@ -195,9 +195,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -559,69 +559,69 @@ module Google # Update properties of this object def update!(**args) - @additional_card_benefits = args[:additional_card_benefits] unless args[:additional_card_benefits].nil? - @additional_card_holder_fee = args[:additional_card_holder_fee] unless args[:additional_card_holder_fee].nil? - @age_minimum = args[:age_minimum] unless args[:age_minimum].nil? - @age_minimum_details = args[:age_minimum_details] unless args[:age_minimum_details].nil? - @annual_fee = args[:annual_fee] unless args[:annual_fee].nil? - @annual_fee_display = args[:annual_fee_display] unless args[:annual_fee_display].nil? - @annual_reward_maximum = args[:annual_reward_maximum] unless args[:annual_reward_maximum].nil? - @approved_categories = args[:approved_categories] unless args[:approved_categories].nil? - @apr_display = args[:apr_display] unless args[:apr_display].nil? - @balance_computation_method = args[:balance_computation_method] unless args[:balance_computation_method].nil? - @balance_transfer_terms = args[:balance_transfer_terms] unless args[:balance_transfer_terms].nil? - @bonus_rewards = args[:bonus_rewards] unless args[:bonus_rewards].nil? - @car_rental_insurance = args[:car_rental_insurance] unless args[:car_rental_insurance].nil? - @card_benefits = args[:card_benefits] unless args[:card_benefits].nil? - @card_name = args[:card_name] unless args[:card_name].nil? - @card_type = args[:card_type] unless args[:card_type].nil? - @cash_advance_terms = args[:cash_advance_terms] unless args[:cash_advance_terms].nil? - @credit_limit_max = args[:credit_limit_max] unless args[:credit_limit_max].nil? - @credit_limit_min = args[:credit_limit_min] unless args[:credit_limit_min].nil? - @credit_rating_display = args[:credit_rating_display] unless args[:credit_rating_display].nil? - @default_fees = args[:default_fees] unless args[:default_fees].nil? - @disclaimer = args[:disclaimer] unless args[:disclaimer].nil? - @emergency_insurance = args[:emergency_insurance] unless args[:emergency_insurance].nil? - @existing_customer_only = args[:existing_customer_only] unless args[:existing_customer_only].nil? - @extended_warranty = args[:extended_warranty] unless args[:extended_warranty].nil? - @first_year_annual_fee = args[:first_year_annual_fee] unless args[:first_year_annual_fee].nil? - @flight_accident_insurance = args[:flight_accident_insurance] unless args[:flight_accident_insurance].nil? - @foreign_currency_transaction_fee = args[:foreign_currency_transaction_fee] unless args[:foreign_currency_transaction_fee].nil? - @fraud_liability = args[:fraud_liability] unless args[:fraud_liability].nil? - @grace_period_display = args[:grace_period_display] unless args[:grace_period_display].nil? - @image_url = args[:image_url] unless args[:image_url].nil? - @initial_setup_and_processing_fee = args[:initial_setup_and_processing_fee] unless args[:initial_setup_and_processing_fee].nil? - @intro_balance_transfer_terms = args[:intro_balance_transfer_terms] unless args[:intro_balance_transfer_terms].nil? - @intro_cash_advance_terms = args[:intro_cash_advance_terms] unless args[:intro_cash_advance_terms].nil? - @intro_purchase_terms = args[:intro_purchase_terms] unless args[:intro_purchase_terms].nil? - @issuer = args[:issuer] unless args[:issuer].nil? - @issuer_id = args[:issuer_id] unless args[:issuer_id].nil? - @issuer_website = args[:issuer_website] unless args[:issuer_website].nil? - @kind = args[:kind] unless args[:kind].nil? - @landing_page_url = args[:landing_page_url] unless args[:landing_page_url].nil? - @late_payment_fee = args[:late_payment_fee] unless args[:late_payment_fee].nil? - @luggage_insurance = args[:luggage_insurance] unless args[:luggage_insurance].nil? - @max_purchase_rate = args[:max_purchase_rate] unless args[:max_purchase_rate].nil? - @min_purchase_rate = args[:min_purchase_rate] unless args[:min_purchase_rate].nil? - @minimum_finance_charge = args[:minimum_finance_charge] unless args[:minimum_finance_charge].nil? - @network = args[:network] unless args[:network].nil? - @offer_id = args[:offer_id] unless args[:offer_id].nil? - @offers_immediate_cash_reward = args[:offers_immediate_cash_reward] unless args[:offers_immediate_cash_reward].nil? - @over_limit_fee = args[:over_limit_fee] unless args[:over_limit_fee].nil? - @prohibited_categories = args[:prohibited_categories] unless args[:prohibited_categories].nil? - @purchase_rate_additional_details = args[:purchase_rate_additional_details] unless args[:purchase_rate_additional_details].nil? - @purchase_rate_type = args[:purchase_rate_type] unless args[:purchase_rate_type].nil? - @returned_payment_fee = args[:returned_payment_fee] unless args[:returned_payment_fee].nil? - @reward_partner = args[:reward_partner] unless args[:reward_partner].nil? - @reward_unit = args[:reward_unit] unless args[:reward_unit].nil? - @rewards = args[:rewards] unless args[:rewards].nil? - @rewards_expire = args[:rewards_expire] unless args[:rewards_expire].nil? - @rewards_have_blackout_dates = args[:rewards_have_blackout_dates] unless args[:rewards_have_blackout_dates].nil? - @statement_copy_fee = args[:statement_copy_fee] unless args[:statement_copy_fee].nil? - @tracking_url = args[:tracking_url] unless args[:tracking_url].nil? - @travel_insurance = args[:travel_insurance] unless args[:travel_insurance].nil? - @variable_rates_last_updated = args[:variable_rates_last_updated] unless args[:variable_rates_last_updated].nil? - @variable_rates_update_frequency = args[:variable_rates_update_frequency] unless args[:variable_rates_update_frequency].nil? + @additional_card_benefits = args[:additional_card_benefits] if args.key?(:additional_card_benefits) + @additional_card_holder_fee = args[:additional_card_holder_fee] if args.key?(:additional_card_holder_fee) + @age_minimum = args[:age_minimum] if args.key?(:age_minimum) + @age_minimum_details = args[:age_minimum_details] if args.key?(:age_minimum_details) + @annual_fee = args[:annual_fee] if args.key?(:annual_fee) + @annual_fee_display = args[:annual_fee_display] if args.key?(:annual_fee_display) + @annual_reward_maximum = args[:annual_reward_maximum] if args.key?(:annual_reward_maximum) + @approved_categories = args[:approved_categories] if args.key?(:approved_categories) + @apr_display = args[:apr_display] if args.key?(:apr_display) + @balance_computation_method = args[:balance_computation_method] if args.key?(:balance_computation_method) + @balance_transfer_terms = args[:balance_transfer_terms] if args.key?(:balance_transfer_terms) + @bonus_rewards = args[:bonus_rewards] if args.key?(:bonus_rewards) + @car_rental_insurance = args[:car_rental_insurance] if args.key?(:car_rental_insurance) + @card_benefits = args[:card_benefits] if args.key?(:card_benefits) + @card_name = args[:card_name] if args.key?(:card_name) + @card_type = args[:card_type] if args.key?(:card_type) + @cash_advance_terms = args[:cash_advance_terms] if args.key?(:cash_advance_terms) + @credit_limit_max = args[:credit_limit_max] if args.key?(:credit_limit_max) + @credit_limit_min = args[:credit_limit_min] if args.key?(:credit_limit_min) + @credit_rating_display = args[:credit_rating_display] if args.key?(:credit_rating_display) + @default_fees = args[:default_fees] if args.key?(:default_fees) + @disclaimer = args[:disclaimer] if args.key?(:disclaimer) + @emergency_insurance = args[:emergency_insurance] if args.key?(:emergency_insurance) + @existing_customer_only = args[:existing_customer_only] if args.key?(:existing_customer_only) + @extended_warranty = args[:extended_warranty] if args.key?(:extended_warranty) + @first_year_annual_fee = args[:first_year_annual_fee] if args.key?(:first_year_annual_fee) + @flight_accident_insurance = args[:flight_accident_insurance] if args.key?(:flight_accident_insurance) + @foreign_currency_transaction_fee = args[:foreign_currency_transaction_fee] if args.key?(:foreign_currency_transaction_fee) + @fraud_liability = args[:fraud_liability] if args.key?(:fraud_liability) + @grace_period_display = args[:grace_period_display] if args.key?(:grace_period_display) + @image_url = args[:image_url] if args.key?(:image_url) + @initial_setup_and_processing_fee = args[:initial_setup_and_processing_fee] if args.key?(:initial_setup_and_processing_fee) + @intro_balance_transfer_terms = args[:intro_balance_transfer_terms] if args.key?(:intro_balance_transfer_terms) + @intro_cash_advance_terms = args[:intro_cash_advance_terms] if args.key?(:intro_cash_advance_terms) + @intro_purchase_terms = args[:intro_purchase_terms] if args.key?(:intro_purchase_terms) + @issuer = args[:issuer] if args.key?(:issuer) + @issuer_id = args[:issuer_id] if args.key?(:issuer_id) + @issuer_website = args[:issuer_website] if args.key?(:issuer_website) + @kind = args[:kind] if args.key?(:kind) + @landing_page_url = args[:landing_page_url] if args.key?(:landing_page_url) + @late_payment_fee = args[:late_payment_fee] if args.key?(:late_payment_fee) + @luggage_insurance = args[:luggage_insurance] if args.key?(:luggage_insurance) + @max_purchase_rate = args[:max_purchase_rate] if args.key?(:max_purchase_rate) + @min_purchase_rate = args[:min_purchase_rate] if args.key?(:min_purchase_rate) + @minimum_finance_charge = args[:minimum_finance_charge] if args.key?(:minimum_finance_charge) + @network = args[:network] if args.key?(:network) + @offer_id = args[:offer_id] if args.key?(:offer_id) + @offers_immediate_cash_reward = args[:offers_immediate_cash_reward] if args.key?(:offers_immediate_cash_reward) + @over_limit_fee = args[:over_limit_fee] if args.key?(:over_limit_fee) + @prohibited_categories = args[:prohibited_categories] if args.key?(:prohibited_categories) + @purchase_rate_additional_details = args[:purchase_rate_additional_details] if args.key?(:purchase_rate_additional_details) + @purchase_rate_type = args[:purchase_rate_type] if args.key?(:purchase_rate_type) + @returned_payment_fee = args[:returned_payment_fee] if args.key?(:returned_payment_fee) + @reward_partner = args[:reward_partner] if args.key?(:reward_partner) + @reward_unit = args[:reward_unit] if args.key?(:reward_unit) + @rewards = args[:rewards] if args.key?(:rewards) + @rewards_expire = args[:rewards_expire] if args.key?(:rewards_expire) + @rewards_have_blackout_dates = args[:rewards_have_blackout_dates] if args.key?(:rewards_have_blackout_dates) + @statement_copy_fee = args[:statement_copy_fee] if args.key?(:statement_copy_fee) + @tracking_url = args[:tracking_url] if args.key?(:tracking_url) + @travel_insurance = args[:travel_insurance] if args.key?(:travel_insurance) + @variable_rates_last_updated = args[:variable_rates_last_updated] if args.key?(:variable_rates_last_updated) + @variable_rates_update_frequency = args[:variable_rates_update_frequency] if args.key?(:variable_rates_update_frequency) end # @@ -645,8 +645,8 @@ module Google # Update properties of this object def update!(**args) - @amount = args[:amount] unless args[:amount].nil? - @details = args[:details] unless args[:details].nil? + @amount = args[:amount] if args.key?(:amount) + @details = args[:details] if args.key?(:details) end end @@ -682,10 +682,10 @@ module Google # Update properties of this object def update!(**args) - @category = args[:category] unless args[:category].nil? - @max_rate = args[:max_rate] unless args[:max_rate].nil? - @min_rate = args[:min_rate] unless args[:min_rate].nil? - @rate_type = args[:rate_type] unless args[:rate_type].nil? + @category = args[:category] if args.key?(:category) + @max_rate = args[:max_rate] if args.key?(:max_rate) + @min_rate = args[:min_rate] if args.key?(:min_rate) + @rate_type = args[:rate_type] if args.key?(:rate_type) end end @@ -730,12 +730,12 @@ module Google # Update properties of this object def update!(**args) - @additional_details = args[:additional_details] unless args[:additional_details].nil? - @amount = args[:amount] unless args[:amount].nil? - @category = args[:category] unless args[:category].nil? - @expiration_months = args[:expiration_months] unless args[:expiration_months].nil? - @max_reward_tier = args[:max_reward_tier] unless args[:max_reward_tier].nil? - @min_reward_tier = args[:min_reward_tier] unless args[:min_reward_tier].nil? + @additional_details = args[:additional_details] if args.key?(:additional_details) + @amount = args[:amount] if args.key?(:amount) + @category = args[:category] if args.key?(:category) + @expiration_months = args[:expiration_months] if args.key?(:expiration_months) + @max_reward_tier = args[:max_reward_tier] if args.key?(:max_reward_tier) + @min_reward_tier = args[:min_reward_tier] if args.key?(:min_reward_tier) end end end @@ -760,8 +760,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -868,24 +868,24 @@ module Google # Update properties of this object def update!(**args) - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @advertiser_name = args[:advertiser_name] unless args[:advertiser_name].nil? - @charge_id = args[:charge_id] unless args[:charge_id].nil? - @charge_type = args[:charge_type] unless args[:charge_type].nil? - @commissionable_sales = args[:commissionable_sales] unless args[:commissionable_sales].nil? - @earnings = args[:earnings] unless args[:earnings].nil? - @event_date = args[:event_date] unless args[:event_date].nil? - @kind = args[:kind] unless args[:kind].nil? - @member_id = args[:member_id] unless args[:member_id].nil? - @modify_date = args[:modify_date] unless args[:modify_date].nil? - @network_fee = args[:network_fee] unless args[:network_fee].nil? - @order_id = args[:order_id] unless args[:order_id].nil? - @products = args[:products] unless args[:products].nil? - @publisher_fee = args[:publisher_fee] unless args[:publisher_fee].nil? - @publisher_id = args[:publisher_id] unless args[:publisher_id].nil? - @publisher_name = args[:publisher_name] unless args[:publisher_name].nil? - @status = args[:status] unless args[:status].nil? - @type = args[:type] unless args[:type].nil? + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @advertiser_name = args[:advertiser_name] if args.key?(:advertiser_name) + @charge_id = args[:charge_id] if args.key?(:charge_id) + @charge_type = args[:charge_type] if args.key?(:charge_type) + @commissionable_sales = args[:commissionable_sales] if args.key?(:commissionable_sales) + @earnings = args[:earnings] if args.key?(:earnings) + @event_date = args[:event_date] if args.key?(:event_date) + @kind = args[:kind] if args.key?(:kind) + @member_id = args[:member_id] if args.key?(:member_id) + @modify_date = args[:modify_date] if args.key?(:modify_date) + @network_fee = args[:network_fee] if args.key?(:network_fee) + @order_id = args[:order_id] if args.key?(:order_id) + @products = args[:products] if args.key?(:products) + @publisher_fee = args[:publisher_fee] if args.key?(:publisher_fee) + @publisher_id = args[:publisher_id] if args.key?(:publisher_id) + @publisher_name = args[:publisher_name] if args.key?(:publisher_name) + @status = args[:status] if args.key?(:status) + @type = args[:type] if args.key?(:type) end # @@ -943,15 +943,15 @@ module Google # Update properties of this object def update!(**args) - @category_id = args[:category_id] unless args[:category_id].nil? - @category_name = args[:category_name] unless args[:category_name].nil? - @earnings = args[:earnings] unless args[:earnings].nil? - @network_fee = args[:network_fee] unless args[:network_fee].nil? - @publisher_fee = args[:publisher_fee] unless args[:publisher_fee].nil? - @quantity = args[:quantity] unless args[:quantity].nil? - @sku = args[:sku] unless args[:sku].nil? - @sku_name = args[:sku_name] unless args[:sku_name].nil? - @unit_price = args[:unit_price] unless args[:unit_price].nil? + @category_id = args[:category_id] if args.key?(:category_id) + @category_name = args[:category_name] if args.key?(:category_name) + @earnings = args[:earnings] if args.key?(:earnings) + @network_fee = args[:network_fee] if args.key?(:network_fee) + @publisher_fee = args[:publisher_fee] if args.key?(:publisher_fee) + @quantity = args[:quantity] if args.key?(:quantity) + @sku = args[:sku] if args.key?(:sku) + @sku_name = args[:sku_name] if args.key?(:sku_name) + @unit_price = args[:unit_price] if args.key?(:unit_price) end end end @@ -982,9 +982,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1104,27 +1104,27 @@ module Google # Update properties of this object def update!(**args) - @advertiser_id = args[:advertiser_id] unless args[:advertiser_id].nil? - @authorship = args[:authorship] unless args[:authorship].nil? - @availability = args[:availability] unless args[:availability].nil? - @click_tracking_url = args[:click_tracking_url] unless args[:click_tracking_url].nil? - @create_date = args[:create_date] unless args[:create_date].nil? - @description = args[:description] unless args[:description].nil? - @destination_url = args[:destination_url] unless args[:destination_url].nil? - @duration = args[:duration] unless args[:duration].nil? - @end_date = args[:end_date] unless args[:end_date].nil? - @epc_ninety_day_average = args[:epc_ninety_day_average] unless args[:epc_ninety_day_average].nil? - @epc_seven_day_average = args[:epc_seven_day_average] unless args[:epc_seven_day_average].nil? - @id = args[:id] unless args[:id].nil? - @image_alt_text = args[:image_alt_text] unless args[:image_alt_text].nil? - @impression_tracking_url = args[:impression_tracking_url] unless args[:impression_tracking_url].nil? - @is_active = args[:is_active] unless args[:is_active].nil? - @kind = args[:kind] unless args[:kind].nil? - @link_type = args[:link_type] unless args[:link_type].nil? - @name = args[:name] unless args[:name].nil? - @promotion_type = args[:promotion_type] unless args[:promotion_type].nil? - @special_offers = args[:special_offers] unless args[:special_offers].nil? - @start_date = args[:start_date] unless args[:start_date].nil? + @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) + @authorship = args[:authorship] if args.key?(:authorship) + @availability = args[:availability] if args.key?(:availability) + @click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url) + @create_date = args[:create_date] if args.key?(:create_date) + @description = args[:description] if args.key?(:description) + @destination_url = args[:destination_url] if args.key?(:destination_url) + @duration = args[:duration] if args.key?(:duration) + @end_date = args[:end_date] if args.key?(:end_date) + @epc_ninety_day_average = args[:epc_ninety_day_average] if args.key?(:epc_ninety_day_average) + @epc_seven_day_average = args[:epc_seven_day_average] if args.key?(:epc_seven_day_average) + @id = args[:id] if args.key?(:id) + @image_alt_text = args[:image_alt_text] if args.key?(:image_alt_text) + @impression_tracking_url = args[:impression_tracking_url] if args.key?(:impression_tracking_url) + @is_active = args[:is_active] if args.key?(:is_active) + @kind = args[:kind] if args.key?(:kind) + @link_type = args[:link_type] if args.key?(:link_type) + @name = args[:name] if args.key?(:name) + @promotion_type = args[:promotion_type] if args.key?(:promotion_type) + @special_offers = args[:special_offers] if args.key?(:special_offers) + @start_date = args[:start_date] if args.key?(:start_date) end # Special offers on the link. @@ -1179,14 +1179,14 @@ module Google # Update properties of this object def update!(**args) - @free_gift = args[:free_gift] unless args[:free_gift].nil? - @free_shipping = args[:free_shipping] unless args[:free_shipping].nil? - @free_shipping_min = args[:free_shipping_min] unless args[:free_shipping_min].nil? - @percent_off = args[:percent_off] unless args[:percent_off].nil? - @percent_off_min = args[:percent_off_min] unless args[:percent_off_min].nil? - @price_cut = args[:price_cut] unless args[:price_cut].nil? - @price_cut_min = args[:price_cut_min] unless args[:price_cut_min].nil? - @promotion_codes = args[:promotion_codes] unless args[:promotion_codes].nil? + @free_gift = args[:free_gift] if args.key?(:free_gift) + @free_shipping = args[:free_shipping] if args.key?(:free_shipping) + @free_shipping_min = args[:free_shipping_min] if args.key?(:free_shipping_min) + @percent_off = args[:percent_off] if args.key?(:percent_off) + @percent_off_min = args[:percent_off_min] if args.key?(:percent_off_min) + @price_cut = args[:price_cut] if args.key?(:price_cut) + @price_cut_min = args[:price_cut_min] if args.key?(:price_cut_min) + @promotion_codes = args[:promotion_codes] if args.key?(:promotion_codes) end end end @@ -1216,9 +1216,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1242,8 +1242,8 @@ module Google # Update properties of this object def update!(**args) - @amount = args[:amount] unless args[:amount].nil? - @currency_code = args[:currency_code] unless args[:currency_code].nil? + @amount = args[:amount] if args.key?(:amount) + @currency_code = args[:currency_code] if args.key?(:currency_code) end end @@ -1316,17 +1316,17 @@ module Google # Update properties of this object def update!(**args) - @classification = args[:classification] unless args[:classification].nil? - @epc_ninety_day_average = args[:epc_ninety_day_average] unless args[:epc_ninety_day_average].nil? - @epc_seven_day_average = args[:epc_seven_day_average] unless args[:epc_seven_day_average].nil? - @id = args[:id] unless args[:id].nil? - @item = args[:item] unless args[:item].nil? - @join_date = args[:join_date] unless args[:join_date].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @payout_rank = args[:payout_rank] unless args[:payout_rank].nil? - @sites = args[:sites] unless args[:sites].nil? - @status = args[:status] unless args[:status].nil? + @classification = args[:classification] if args.key?(:classification) + @epc_ninety_day_average = args[:epc_ninety_day_average] if args.key?(:epc_ninety_day_average) + @epc_seven_day_average = args[:epc_seven_day_average] if args.key?(:epc_seven_day_average) + @id = args[:id] if args.key?(:id) + @item = args[:item] if args.key?(:item) + @join_date = args[:join_date] if args.key?(:join_date) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @payout_rank = args[:payout_rank] if args.key?(:payout_rank) + @sites = args[:sites] if args.key?(:sites) + @status = args[:status] if args.key?(:status) end end @@ -1356,9 +1356,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1413,14 +1413,14 @@ module Google # Update properties of this object def update!(**args) - @column_names = args[:column_names] unless args[:column_names].nil? - @end_date = args[:end_date] unless args[:end_date].nil? - @kind = args[:kind] unless args[:kind].nil? - @matching_row_count = args[:matching_row_count] unless args[:matching_row_count].nil? - @rows = args[:rows] unless args[:rows].nil? - @start_date = args[:start_date] unless args[:start_date].nil? - @totals_rows = args[:totals_rows] unless args[:totals_rows].nil? - @type = args[:type] unless args[:type].nil? + @column_names = args[:column_names] if args.key?(:column_names) + @end_date = args[:end_date] if args.key?(:end_date) + @kind = args[:kind] if args.key?(:kind) + @matching_row_count = args[:matching_row_count] if args.key?(:matching_row_count) + @rows = args[:rows] if args.key?(:rows) + @start_date = args[:start_date] if args.key?(:start_date) + @totals_rows = args[:totals_rows] if args.key?(:totals_rows) + @type = args[:type] if args.key?(:type) end end end diff --git a/generated/google/apis/genomics_v1.rb b/generated/google/apis/genomics_v1.rb index 29a47e3fa..b4ac959ef 100644 --- a/generated/google/apis/genomics_v1.rb +++ b/generated/google/apis/genomics_v1.rb @@ -21,14 +21,14 @@ module Google # Genomics API # # An API to store, process, explore, and share genomic data. It supports - # reference-based alignements, genetic variants, and reference genomes. This API + # reference-based alignments, genetic variants, and reference genomes. This API # provides an implementation of the Global Alliance for Genomics and Health ( # GA4GH) v0.5.1 API as well as several extensions. # # @see module GenomicsV1 VERSION = 'V1' - REVISION = '20160120' + REVISION = '20160124' # 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 7bae8adb6..eda48a88f 100644 --- a/generated/google/apis/genomics_v1/classes.rb +++ b/generated/google/apis/genomics_v1/classes.rb @@ -44,8 +44,8 @@ module Google # Update properties of this object def update!(**args) - @datasets = args[:datasets] unless args[:datasets].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @datasets = args[:datasets] if args.key?(:datasets) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -81,10 +81,10 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @project_id = args[:project_id] unless args[:project_id].nil? - @name = args[:name] unless args[:name].nil? - @create_time = args[:create_time] unless args[:create_time].nil? + @id = args[:id] if args.key?(:id) + @project_id = args[:project_id] if args.key?(:project_id) + @name = args[:name] if args.key?(:name) + @create_time = args[:create_time] if args.key?(:create_time) end end @@ -142,7 +142,7 @@ module Google # Update properties of this object def update!(**args) - @policy = args[:policy] unless args[:policy].nil? + @policy = args[:policy] if args.key?(:policy) end end @@ -189,9 +189,9 @@ module Google # 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? + @version = args[:version] if args.key?(:version) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) end end @@ -227,8 +227,8 @@ module Google # Update properties of this object def update!(**args) - @role = args[:role] unless args[:role].nil? - @members = args[:members] unless args[:members].nil? + @role = args[:role] if args.key?(:role) + @members = args[:members] if args.key?(:members) end end @@ -264,7 +264,7 @@ module Google # Update properties of this object def update!(**args) - @permissions = args[:permissions] unless args[:permissions].nil? + @permissions = args[:permissions] if args.key?(:permissions) end end @@ -283,7 +283,7 @@ module Google # Update properties of this object def update!(**args) - @permissions = args[:permissions] unless args[:permissions].nil? + @permissions = args[:permissions] if args.key?(:permissions) end end @@ -360,11 +360,11 @@ module Google # 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? + @name = args[:name] if args.key?(:name) + @metadata = args[:metadata] if args.key?(:metadata) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @response = args[:response] if args.key?(:response) end end @@ -427,9 +427,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @message = args[:message] if args.key?(:message) + @details = args[:details] if args.key?(:details) end end @@ -453,8 +453,8 @@ module Google # 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? + @operations = args[:operations] if args.key?(:operations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -507,10 +507,10 @@ module Google # Update properties of this object def update!(**args) - @dataset_id = args[:dataset_id] unless args[:dataset_id].nil? - @reference_set_id = args[:reference_set_id] unless args[:reference_set_id].nil? - @source_uris = args[:source_uris] unless args[:source_uris].nil? - @partition_strategy = args[:partition_strategy] unless args[:partition_strategy].nil? + @dataset_id = args[:dataset_id] if args.key?(:dataset_id) + @reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id) + @source_uris = args[:source_uris] if args.key?(:source_uris) + @partition_strategy = args[:partition_strategy] if args.key?(:partition_strategy) end end @@ -544,9 +544,9 @@ module Google # Update properties of this object def update!(**args) - @project_id = args[:project_id] unless args[:project_id].nil? - @export_uri = args[:export_uri] unless args[:export_uri].nil? - @reference_names = args[:reference_names] unless args[:reference_names].nil? + @project_id = args[:project_id] if args.key?(:project_id) + @export_uri = args[:export_uri] if args.key?(:export_uri) + @reference_names = args[:reference_names] if args.key?(:reference_names) end end @@ -585,10 +585,10 @@ module Google # Update properties of this object def update!(**args) - @dataset_ids = args[:dataset_ids] unless args[:dataset_ids].nil? - @name = args[:name] unless args[:name].nil? - @page_token = args[:page_token] unless args[:page_token].nil? - @page_size = args[:page_size] unless args[:page_size].nil? + @dataset_ids = args[:dataset_ids] if args.key?(:dataset_ids) + @name = args[:name] if args.key?(:name) + @page_token = args[:page_token] if args.key?(:page_token) + @page_size = args[:page_size] if args.key?(:page_size) end end @@ -614,8 +614,8 @@ module Google # Update properties of this object def update!(**args) - @read_group_sets = args[:read_group_sets] unless args[:read_group_sets].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @read_group_sets = args[:read_group_sets] if args.key?(:read_group_sets) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -672,13 +672,13 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @dataset_id = args[:dataset_id] unless args[:dataset_id].nil? - @reference_set_id = args[:reference_set_id] unless args[:reference_set_id].nil? - @name = args[:name] unless args[:name].nil? - @filename = args[:filename] unless args[:filename].nil? - @read_groups = args[:read_groups] unless args[:read_groups].nil? - @info = args[:info] unless args[:info].nil? + @id = args[:id] if args.key?(:id) + @dataset_id = args[:dataset_id] if args.key?(:dataset_id) + @reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id) + @name = args[:name] if args.key?(:name) + @filename = args[:filename] if args.key?(:filename) + @read_groups = args[:read_groups] if args.key?(:read_groups) + @info = args[:info] if args.key?(:info) end end @@ -747,16 +747,16 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @dataset_id = args[:dataset_id] unless args[:dataset_id].nil? - @name = args[:name] unless args[:name].nil? - @description = args[:description] unless args[:description].nil? - @sample_id = args[:sample_id] unless args[:sample_id].nil? - @experiment = args[:experiment] unless args[:experiment].nil? - @predicted_insert_size = args[:predicted_insert_size] unless args[:predicted_insert_size].nil? - @programs = args[:programs] unless args[:programs].nil? - @reference_set_id = args[:reference_set_id] unless args[:reference_set_id].nil? - @info = args[:info] unless args[:info].nil? + @id = args[:id] if args.key?(:id) + @dataset_id = args[:dataset_id] if args.key?(:dataset_id) + @name = args[:name] if args.key?(:name) + @description = args[:description] if args.key?(:description) + @sample_id = args[:sample_id] if args.key?(:sample_id) + @experiment = args[:experiment] if args.key?(:experiment) + @predicted_insert_size = args[:predicted_insert_size] if args.key?(:predicted_insert_size) + @programs = args[:programs] if args.key?(:programs) + @reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id) + @info = args[:info] if args.key?(:info) end end @@ -796,10 +796,10 @@ module Google # Update properties of this object def update!(**args) - @library_id = args[:library_id] unless args[:library_id].nil? - @platform_unit = args[:platform_unit] unless args[:platform_unit].nil? - @sequencing_center = args[:sequencing_center] unless args[:sequencing_center].nil? - @instrument_model = args[:instrument_model] unless args[:instrument_model].nil? + @library_id = args[:library_id] if args.key?(:library_id) + @platform_unit = args[:platform_unit] if args.key?(:platform_unit) + @sequencing_center = args[:sequencing_center] if args.key?(:sequencing_center) + @instrument_model = args[:instrument_model] if args.key?(:instrument_model) end end @@ -840,11 +840,11 @@ module Google # Update properties of this object def update!(**args) - @command_line = args[:command_line] unless args[:command_line].nil? - @id = args[:id] unless args[:id].nil? - @name = args[:name] unless args[:name].nil? - @prev_program_id = args[:prev_program_id] unless args[:prev_program_id].nil? - @version = args[:version] unless args[:version].nil? + @command_line = args[:command_line] if args.key?(:command_line) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @prev_program_id = args[:prev_program_id] if args.key?(:prev_program_id) + @version = args[:version] if args.key?(:version) end end @@ -881,9 +881,9 @@ module Google # Update properties of this object def update!(**args) - @bucket_width = args[:bucket_width] unless args[:bucket_width].nil? - @coverage_buckets = args[:coverage_buckets] unless args[:coverage_buckets].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @bucket_width = args[:bucket_width] if args.key?(:bucket_width) + @coverage_buckets = args[:coverage_buckets] if args.key?(:coverage_buckets) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -909,8 +909,8 @@ module Google # Update properties of this object def update!(**args) - @range = args[:range] unless args[:range].nil? - @mean_coverage = args[:mean_coverage] unless args[:mean_coverage].nil? + @range = args[:range] if args.key?(:range) + @mean_coverage = args[:mean_coverage] if args.key?(:mean_coverage) end end @@ -939,9 +939,9 @@ module Google # Update properties of this object def update!(**args) - @reference_name = args[:reference_name] unless args[:reference_name].nil? - @start = args[:start] unless args[:start].nil? - @end = args[:end] unless args[:end].nil? + @reference_name = args[:reference_name] if args.key?(:reference_name) + @start = args[:start] if args.key?(:start) + @end = args[:end] if args.key?(:end) end end @@ -1002,13 +1002,13 @@ module Google # Update properties of this object def update!(**args) - @read_group_set_ids = args[:read_group_set_ids] unless args[:read_group_set_ids].nil? - @read_group_ids = args[:read_group_ids] unless args[:read_group_ids].nil? - @reference_name = args[:reference_name] unless args[:reference_name].nil? - @start = args[:start] unless args[:start].nil? - @end = args[:end] unless args[:end].nil? - @page_token = args[:page_token] unless args[:page_token].nil? - @page_size = args[:page_size] unless args[:page_size].nil? + @read_group_set_ids = args[:read_group_set_ids] if args.key?(:read_group_set_ids) + @read_group_ids = args[:read_group_ids] if args.key?(:read_group_ids) + @reference_name = args[:reference_name] if args.key?(:reference_name) + @start = args[:start] if args.key?(:start) + @end = args[:end] if args.key?(:end) + @page_token = args[:page_token] if args.key?(:page_token) + @page_size = args[:page_size] if args.key?(:page_size) end end @@ -1037,8 +1037,8 @@ module Google # Update properties of this object def update!(**args) - @alignments = args[:alignments] unless args[:alignments].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @alignments = args[:alignments] if args.key?(:alignments) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1213,23 +1213,23 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @read_group_id = args[:read_group_id] unless args[:read_group_id].nil? - @read_group_set_id = args[:read_group_set_id] unless args[:read_group_set_id].nil? - @fragment_name = args[:fragment_name] unless args[:fragment_name].nil? - @proper_placement = args[:proper_placement] unless args[:proper_placement].nil? - @duplicate_fragment = args[:duplicate_fragment] unless args[:duplicate_fragment].nil? - @fragment_length = args[:fragment_length] unless args[:fragment_length].nil? - @read_number = args[:read_number] unless args[:read_number].nil? - @number_reads = args[:number_reads] unless args[:number_reads].nil? - @failed_vendor_quality_checks = args[:failed_vendor_quality_checks] unless args[:failed_vendor_quality_checks].nil? - @alignment = args[:alignment] unless args[:alignment].nil? - @secondary_alignment = args[:secondary_alignment] unless args[:secondary_alignment].nil? - @supplementary_alignment = args[:supplementary_alignment] unless args[:supplementary_alignment].nil? - @aligned_sequence = args[:aligned_sequence] unless args[:aligned_sequence].nil? - @aligned_quality = args[:aligned_quality] unless args[:aligned_quality].nil? - @next_mate_position = args[:next_mate_position] unless args[:next_mate_position].nil? - @info = args[:info] unless args[:info].nil? + @id = args[:id] if args.key?(:id) + @read_group_id = args[:read_group_id] if args.key?(:read_group_id) + @read_group_set_id = args[:read_group_set_id] if args.key?(:read_group_set_id) + @fragment_name = args[:fragment_name] if args.key?(:fragment_name) + @proper_placement = args[:proper_placement] if args.key?(:proper_placement) + @duplicate_fragment = args[:duplicate_fragment] if args.key?(:duplicate_fragment) + @fragment_length = args[:fragment_length] if args.key?(:fragment_length) + @read_number = args[:read_number] if args.key?(:read_number) + @number_reads = args[:number_reads] if args.key?(:number_reads) + @failed_vendor_quality_checks = args[:failed_vendor_quality_checks] if args.key?(:failed_vendor_quality_checks) + @alignment = args[:alignment] if args.key?(:alignment) + @secondary_alignment = args[:secondary_alignment] if args.key?(:secondary_alignment) + @supplementary_alignment = args[:supplementary_alignment] if args.key?(:supplementary_alignment) + @aligned_sequence = args[:aligned_sequence] if args.key?(:aligned_sequence) + @aligned_quality = args[:aligned_quality] if args.key?(:aligned_quality) + @next_mate_position = args[:next_mate_position] if args.key?(:next_mate_position) + @info = args[:info] if args.key?(:info) end end @@ -1265,9 +1265,9 @@ module Google # Update properties of this object def update!(**args) - @position = args[:position] unless args[:position].nil? - @mapping_quality = args[:mapping_quality] unless args[:mapping_quality].nil? - @cigar = args[:cigar] unless args[:cigar].nil? + @position = args[:position] if args.key?(:position) + @mapping_quality = args[:mapping_quality] if args.key?(:mapping_quality) + @cigar = args[:cigar] if args.key?(:cigar) end end @@ -1301,9 +1301,9 @@ module Google # Update properties of this object def update!(**args) - @reference_name = args[:reference_name] unless args[:reference_name].nil? - @position = args[:position] unless args[:position].nil? - @reverse_strand = args[:reverse_strand] unless args[:reverse_strand].nil? + @reference_name = args[:reference_name] if args.key?(:reference_name) + @position = args[:position] if args.key?(:position) + @reverse_strand = args[:reverse_strand] if args.key?(:reverse_strand) end end @@ -1334,9 +1334,9 @@ module Google # Update properties of this object def update!(**args) - @operation = args[:operation] unless args[:operation].nil? - @operation_length = args[:operation_length] unless args[:operation_length].nil? - @reference_sequence = args[:reference_sequence] unless args[:reference_sequence].nil? + @operation = args[:operation] if args.key?(:operation) + @operation_length = args[:operation_length] if args.key?(:operation_length) + @reference_sequence = args[:reference_sequence] if args.key?(:reference_sequence) end end @@ -1379,11 +1379,11 @@ module Google # Update properties of this object def update!(**args) - @project_id = args[:project_id] unless args[:project_id].nil? - @read_group_set_id = args[:read_group_set_id] unless args[:read_group_set_id].nil? - @reference_name = args[:reference_name] unless args[:reference_name].nil? - @start = args[:start] unless args[:start].nil? - @end = args[:end] unless args[:end].nil? + @project_id = args[:project_id] if args.key?(:project_id) + @read_group_set_id = args[:read_group_set_id] if args.key?(:read_group_set_id) + @reference_name = args[:reference_name] if args.key?(:reference_name) + @start = args[:start] if args.key?(:start) + @end = args[:end] if args.key?(:end) end end @@ -1402,7 +1402,7 @@ module Google # Update properties of this object def update!(**args) - @alignments = args[:alignments] unless args[:alignments].nil? + @alignments = args[:alignments] if args.key?(:alignments) end end @@ -1447,11 +1447,11 @@ module Google # Update properties of this object def update!(**args) - @md5checksums = args[:md5checksums] unless args[:md5checksums].nil? - @accessions = args[:accessions] unless args[:accessions].nil? - @assembly_id = args[:assembly_id] unless args[:assembly_id].nil? - @page_token = args[:page_token] unless args[:page_token].nil? - @page_size = args[:page_size] unless args[:page_size].nil? + @md5checksums = args[:md5checksums] if args.key?(:md5checksums) + @accessions = args[:accessions] if args.key?(:accessions) + @assembly_id = args[:assembly_id] if args.key?(:assembly_id) + @page_token = args[:page_token] if args.key?(:page_token) + @page_size = args[:page_size] if args.key?(:page_size) end end @@ -1477,8 +1477,8 @@ module Google # Update properties of this object def update!(**args) - @reference_sets = args[:reference_sets] unless args[:reference_sets].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @reference_sets = args[:reference_sets] if args.key?(:reference_sets) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1548,14 +1548,14 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @reference_ids = args[:reference_ids] unless args[:reference_ids].nil? - @md5checksum = args[:md5checksum] unless args[:md5checksum].nil? - @ncbi_taxon_id = args[:ncbi_taxon_id] unless args[:ncbi_taxon_id].nil? - @description = args[:description] unless args[:description].nil? - @assembly_id = args[:assembly_id] unless args[:assembly_id].nil? - @source_uri = args[:source_uri] unless args[:source_uri].nil? - @source_accessions = args[:source_accessions] unless args[:source_accessions].nil? + @id = args[:id] if args.key?(:id) + @reference_ids = args[:reference_ids] if args.key?(:reference_ids) + @md5checksum = args[:md5checksum] if args.key?(:md5checksum) + @ncbi_taxon_id = args[:ncbi_taxon_id] if args.key?(:ncbi_taxon_id) + @description = args[:description] if args.key?(:description) + @assembly_id = args[:assembly_id] if args.key?(:assembly_id) + @source_uri = args[:source_uri] if args.key?(:source_uri) + @source_accessions = args[:source_accessions] if args.key?(:source_accessions) end end @@ -1599,11 +1599,11 @@ module Google # Update properties of this object def update!(**args) - @md5checksums = args[:md5checksums] unless args[:md5checksums].nil? - @accessions = args[:accessions] unless args[:accessions].nil? - @reference_set_id = args[:reference_set_id] unless args[:reference_set_id].nil? - @page_token = args[:page_token] unless args[:page_token].nil? - @page_size = args[:page_size] unless args[:page_size].nil? + @md5checksums = args[:md5checksums] if args.key?(:md5checksums) + @accessions = args[:accessions] if args.key?(:accessions) + @reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id) + @page_token = args[:page_token] if args.key?(:page_token) + @page_size = args[:page_size] if args.key?(:page_size) end end @@ -1629,8 +1629,8 @@ module Google # Update properties of this object def update!(**args) - @references = args[:references] unless args[:references].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @references = args[:references] if args.key?(:references) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1688,13 +1688,13 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @length = args[:length] unless args[:length].nil? - @md5checksum = args[:md5checksum] unless args[:md5checksum].nil? - @name = args[:name] unless args[:name].nil? - @source_uri = args[:source_uri] unless args[:source_uri].nil? - @source_accessions = args[:source_accessions] unless args[:source_accessions].nil? - @ncbi_taxon_id = args[:ncbi_taxon_id] unless args[:ncbi_taxon_id].nil? + @id = args[:id] if args.key?(:id) + @length = args[:length] if args.key?(:length) + @md5checksum = args[:md5checksum] if args.key?(:md5checksum) + @name = args[:name] if args.key?(:name) + @source_uri = args[:source_uri] if args.key?(:source_uri) + @source_accessions = args[:source_accessions] if args.key?(:source_accessions) + @ncbi_taxon_id = args[:ncbi_taxon_id] if args.key?(:ncbi_taxon_id) end end @@ -1726,9 +1726,9 @@ module Google # Update properties of this object def update!(**args) - @offset = args[:offset] unless args[:offset].nil? - @sequence = args[:sequence] unless args[:sequence].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @offset = args[:offset] if args.key?(:offset) + @sequence = args[:sequence] if args.key?(:sequence) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1772,10 +1772,10 @@ module Google # Update properties of this object def update!(**args) - @variant_set_id = args[:variant_set_id] unless args[:variant_set_id].nil? - @source_uris = args[:source_uris] unless args[:source_uris].nil? - @format = args[:format] unless args[:format].nil? - @normalize_reference_names = args[:normalize_reference_names] unless args[:normalize_reference_names].nil? + @variant_set_id = args[:variant_set_id] if args.key?(:variant_set_id) + @source_uris = args[:source_uris] if args.key?(:source_uris) + @format = args[:format] if args.key?(:format) + @normalize_reference_names = args[:normalize_reference_names] if args.key?(:normalize_reference_names) end end @@ -1825,11 +1825,11 @@ module Google # Update properties of this object 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? + @dataset_id = args[:dataset_id] if args.key?(:dataset_id) + @id = args[:id] if args.key?(:id) + @reference_set_id = args[:reference_set_id] if args.key?(:reference_set_id) + @reference_bounds = args[:reference_bounds] if args.key?(:reference_bounds) + @metadata = args[:metadata] if args.key?(:metadata) end end @@ -1855,8 +1855,8 @@ module Google # Update properties of this object def update!(**args) - @reference_name = args[:reference_name] unless args[:reference_name].nil? - @upper_bound = args[:upper_bound] unless args[:upper_bound].nil? + @reference_name = args[:reference_name] if args.key?(:reference_name) + @upper_bound = args[:upper_bound] if args.key?(:upper_bound) end end @@ -1911,13 +1911,13 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? - @id = args[:id] unless args[:id].nil? - @type = args[:type] unless args[:type].nil? - @number = args[:number] unless args[:number].nil? - @description = args[:description] unless args[:description].nil? - @info = args[:info] unless args[:info].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) + @id = args[:id] if args.key?(:id) + @type = args[:type] if args.key?(:type) + @number = args[:number] if args.key?(:number) + @description = args[:description] if args.key?(:description) + @info = args[:info] if args.key?(:info) end end @@ -1961,11 +1961,11 @@ module Google # Update properties of this object def update!(**args) - @call_set_ids = args[:call_set_ids] unless args[:call_set_ids].nil? - @project_id = args[:project_id] unless args[:project_id].nil? - @format = args[:format] unless args[:format].nil? - @bigquery_dataset = args[:bigquery_dataset] unless args[:bigquery_dataset].nil? - @bigquery_table = args[:bigquery_table] unless args[:bigquery_table].nil? + @call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids) + @project_id = args[:project_id] if args.key?(:project_id) + @format = args[:format] if args.key?(:format) + @bigquery_dataset = args[:bigquery_dataset] if args.key?(:bigquery_dataset) + @bigquery_table = args[:bigquery_table] if args.key?(:bigquery_table) end end @@ -1998,9 +1998,9 @@ module Google # Update properties of this object def update!(**args) - @dataset_ids = args[:dataset_ids] unless args[:dataset_ids].nil? - @page_token = args[:page_token] unless args[:page_token].nil? - @page_size = args[:page_size] unless args[:page_size].nil? + @dataset_ids = args[:dataset_ids] if args.key?(:dataset_ids) + @page_token = args[:page_token] if args.key?(:page_token) + @page_size = args[:page_size] if args.key?(:page_size) end end @@ -2026,8 +2026,8 @@ module Google # Update properties of this object def update!(**args) - @variant_sets = args[:variant_sets] unless args[:variant_sets].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @variant_sets = args[:variant_sets] if args.key?(:variant_sets) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -2099,15 +2099,15 @@ module Google # Update properties of this object def update!(**args) - @variant_set_ids = args[:variant_set_ids] unless args[:variant_set_ids].nil? - @variant_name = args[:variant_name] unless args[:variant_name].nil? - @call_set_ids = args[:call_set_ids] unless args[:call_set_ids].nil? - @reference_name = args[:reference_name] unless args[:reference_name].nil? - @start = args[:start] unless args[:start].nil? - @end = args[:end] unless args[:end].nil? - @page_token = args[:page_token] unless args[:page_token].nil? - @page_size = args[:page_size] unless args[:page_size].nil? - @max_calls = args[:max_calls] unless args[:max_calls].nil? + @variant_set_ids = args[:variant_set_ids] if args.key?(:variant_set_ids) + @variant_name = args[:variant_name] if args.key?(:variant_name) + @call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids) + @reference_name = args[:reference_name] if args.key?(:reference_name) + @start = args[:start] if args.key?(:start) + @end = args[:end] if args.key?(:end) + @page_token = args[:page_token] if args.key?(:page_token) + @page_size = args[:page_size] if args.key?(:page_size) + @max_calls = args[:max_calls] if args.key?(:max_calls) end end @@ -2133,8 +2133,8 @@ module Google # Update properties of this object def update!(**args) - @variants = args[:variants] unless args[:variants].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @variants = args[:variants] if args.key?(:variants) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -2227,19 +2227,19 @@ module Google # Update properties of this object def update!(**args) - @variant_set_id = args[:variant_set_id] unless args[:variant_set_id].nil? - @id = args[:id] unless args[:id].nil? - @names = args[:names] unless args[:names].nil? - @created = args[:created] unless args[:created].nil? - @reference_name = args[:reference_name] unless args[:reference_name].nil? - @start = args[:start] unless args[:start].nil? - @end = args[:end] unless args[:end].nil? - @reference_bases = args[:reference_bases] unless args[:reference_bases].nil? - @alternate_bases = args[:alternate_bases] unless args[:alternate_bases].nil? - @quality = args[:quality] unless args[:quality].nil? - @filter = args[:filter] unless args[:filter].nil? - @info = args[:info] unless args[:info].nil? - @calls = args[:calls] unless args[:calls].nil? + @variant_set_id = args[:variant_set_id] if args.key?(:variant_set_id) + @id = args[:id] if args.key?(:id) + @names = args[:names] if args.key?(:names) + @created = args[:created] if args.key?(:created) + @reference_name = args[:reference_name] if args.key?(:reference_name) + @start = args[:start] if args.key?(:start) + @end = args[:end] if args.key?(:end) + @reference_bases = args[:reference_bases] if args.key?(:reference_bases) + @alternate_bases = args[:alternate_bases] if args.key?(:alternate_bases) + @quality = args[:quality] if args.key?(:quality) + @filter = args[:filter] if args.key?(:filter) + @info = args[:info] if args.key?(:info) + @calls = args[:calls] if args.key?(:calls) end end @@ -2303,12 +2303,12 @@ module Google # Update properties of this object def update!(**args) - @call_set_id = args[:call_set_id] unless args[:call_set_id].nil? - @call_set_name = args[:call_set_name] unless args[:call_set_name].nil? - @genotype = args[:genotype] unless args[:genotype].nil? - @phaseset = args[:phaseset] unless args[:phaseset].nil? - @genotype_likelihood = args[:genotype_likelihood] unless args[:genotype_likelihood].nil? - @info = args[:info] unless args[:info].nil? + @call_set_id = args[:call_set_id] if args.key?(:call_set_id) + @call_set_name = args[:call_set_name] if args.key?(:call_set_name) + @genotype = args[:genotype] if args.key?(:genotype) + @phaseset = args[:phaseset] if args.key?(:phaseset) + @genotype_likelihood = args[:genotype_likelihood] if args.key?(:genotype_likelihood) + @info = args[:info] if args.key?(:info) end end @@ -2346,10 +2346,10 @@ module Google # Update properties of this object def update!(**args) - @variant_set_ids = args[:variant_set_ids] unless args[:variant_set_ids].nil? - @name = args[:name] unless args[:name].nil? - @page_token = args[:page_token] unless args[:page_token].nil? - @page_size = args[:page_size] unless args[:page_size].nil? + @variant_set_ids = args[:variant_set_ids] if args.key?(:variant_set_ids) + @name = args[:name] if args.key?(:name) + @page_token = args[:page_token] if args.key?(:page_token) + @page_size = args[:page_size] if args.key?(:page_size) end end @@ -2375,8 +2375,8 @@ module Google # Update properties of this object def update!(**args) - @call_sets = args[:call_sets] unless args[:call_sets].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @call_sets = args[:call_sets] if args.key?(:call_sets) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -2427,12 +2427,12 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @name = args[:name] unless args[:name].nil? - @sample_id = args[:sample_id] unless args[:sample_id].nil? - @variant_set_ids = args[:variant_set_ids] unless args[:variant_set_ids].nil? - @created = args[:created] unless args[:created].nil? - @info = args[:info] unless args[:info].nil? + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @sample_id = args[:sample_id] if args.key?(:sample_id) + @variant_set_ids = args[:variant_set_ids] if args.key?(:variant_set_ids) + @created = args[:created] if args.key?(:created) + @info = args[:info] if args.key?(:info) end end @@ -2480,12 +2480,12 @@ module Google # Update properties of this object def update!(**args) - @project_id = args[:project_id] unless args[:project_id].nil? - @variant_set_id = args[:variant_set_id] unless args[:variant_set_id].nil? - @call_set_ids = args[:call_set_ids] unless args[:call_set_ids].nil? - @reference_name = args[:reference_name] unless args[:reference_name].nil? - @start = args[:start] unless args[:start].nil? - @end = args[:end] unless args[:end].nil? + @project_id = args[:project_id] if args.key?(:project_id) + @variant_set_id = args[:variant_set_id] if args.key?(:variant_set_id) + @call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids) + @reference_name = args[:reference_name] if args.key?(:reference_name) + @start = args[:start] if args.key?(:start) + @end = args[:end] if args.key?(:end) end end @@ -2504,7 +2504,7 @@ module Google # Update properties of this object def update!(**args) - @variants = args[:variants] unless args[:variants].nil? + @variants = args[:variants] if args.key?(:variants) end end @@ -2523,7 +2523,7 @@ module Google # Update properties of this object def update!(**args) - @read_group_set_ids = args[:read_group_set_ids] unless args[:read_group_set_ids].nil? + @read_group_set_ids = args[:read_group_set_ids] if args.key?(:read_group_set_ids) end end @@ -2542,7 +2542,7 @@ module Google # Update properties of this object def update!(**args) - @call_set_ids = args[:call_set_ids] unless args[:call_set_ids].nil? + @call_set_ids = args[:call_set_ids] if args.key?(:call_set_ids) end end @@ -2579,10 +2579,10 @@ module Google # Update properties of this object def update!(**args) - @project_id = args[:project_id] unless args[:project_id].nil? - @create_time = args[:create_time] unless args[:create_time].nil? - @request = args[:request] unless args[:request].nil? - @events = args[:events] unless args[:events].nil? + @project_id = args[:project_id] if args.key?(:project_id) + @create_time = args[:create_time] if args.key?(:create_time) + @request = args[:request] if args.key?(:request) + @events = args[:events] if args.key?(:events) end end @@ -2601,7 +2601,7 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? + @description = args[:description] if args.key?(:description) end end end diff --git a/generated/google/apis/genomics_v1/service.rb b/generated/google/apis/genomics_v1/service.rb index c8642d00f..e23f449b0 100644 --- a/generated/google/apis/genomics_v1/service.rb +++ b/generated/google/apis/genomics_v1/service.rb @@ -23,7 +23,7 @@ module Google # Genomics API # # An API to store, process, explore, and share genomic data. It supports - # reference-based alignements, genetic variants, and reference genomes. This API + # reference-based alignments, genetic variants, and reference genomes. This API # provides an implementation of the Global Alliance for Genomics and Health ( # GA4GH) v0.5.1 API as well as several extensions. # diff --git a/generated/google/apis/gmail_v1/classes.rb b/generated/google/apis/gmail_v1/classes.rb index 7ef41f327..dbe70ffd7 100644 --- a/generated/google/apis/gmail_v1/classes.rb +++ b/generated/google/apis/gmail_v1/classes.rb @@ -42,8 +42,8 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @message = args[:message] unless args[:message].nil? + @id = args[:id] if args.key?(:id) + @message = args[:message] if args.key?(:message) end end @@ -90,12 +90,12 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @labels_added = args[:labels_added] unless args[:labels_added].nil? - @labels_removed = args[:labels_removed] unless args[:labels_removed].nil? - @messages = args[:messages] unless args[:messages].nil? - @messages_added = args[:messages_added] unless args[:messages_added].nil? - @messages_deleted = args[:messages_deleted] unless args[:messages_deleted].nil? + @id = args[:id] if args.key?(:id) + @labels_added = args[:labels_added] if args.key?(:labels_added) + @labels_removed = args[:labels_removed] if args.key?(:labels_removed) + @messages = args[:messages] if args.key?(:messages) + @messages_added = args[:messages_added] if args.key?(:messages_added) + @messages_deleted = args[:messages_deleted] if args.key?(:messages_deleted) end end @@ -119,8 +119,8 @@ module Google # Update properties of this object def update!(**args) - @label_ids = args[:label_ids] unless args[:label_ids].nil? - @message = args[:message] unless args[:message].nil? + @label_ids = args[:label_ids] if args.key?(:label_ids) + @message = args[:message] if args.key?(:message) end end @@ -144,8 +144,8 @@ module Google # Update properties of this object def update!(**args) - @label_ids = args[:label_ids] unless args[:label_ids].nil? - @message = args[:message] unless args[:message].nil? + @label_ids = args[:label_ids] if args.key?(:label_ids) + @message = args[:message] if args.key?(:message) end end @@ -164,7 +164,7 @@ module Google # Update properties of this object def update!(**args) - @message = args[:message] unless args[:message].nil? + @message = args[:message] if args.key?(:message) end end @@ -183,7 +183,7 @@ module Google # Update properties of this object def update!(**args) - @message = args[:message] unless args[:message].nil? + @message = args[:message] if args.key?(:message) end end @@ -249,15 +249,15 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @label_list_visibility = args[:label_list_visibility] unless args[:label_list_visibility].nil? - @message_list_visibility = args[:message_list_visibility] unless args[:message_list_visibility].nil? - @messages_total = args[:messages_total] unless args[:messages_total].nil? - @messages_unread = args[:messages_unread] unless args[:messages_unread].nil? - @name = args[:name] unless args[:name].nil? - @threads_total = args[:threads_total] unless args[:threads_total].nil? - @threads_unread = args[:threads_unread] unless args[:threads_unread].nil? - @type = args[:type] unless args[:type].nil? + @id = args[:id] if args.key?(:id) + @label_list_visibility = args[:label_list_visibility] if args.key?(:label_list_visibility) + @message_list_visibility = args[:message_list_visibility] if args.key?(:message_list_visibility) + @messages_total = args[:messages_total] if args.key?(:messages_total) + @messages_unread = args[:messages_unread] if args.key?(:messages_unread) + @name = args[:name] if args.key?(:name) + @threads_total = args[:threads_total] if args.key?(:threads_total) + @threads_unread = args[:threads_unread] if args.key?(:threads_unread) + @type = args[:type] if args.key?(:type) end end @@ -286,9 +286,9 @@ module Google # Update properties of this object def update!(**args) - @drafts = args[:drafts] unless args[:drafts].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @result_size_estimate = args[:result_size_estimate] unless args[:result_size_estimate].nil? + @drafts = args[:drafts] if args.key?(:drafts) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @result_size_estimate = args[:result_size_estimate] if args.key?(:result_size_estimate) end end @@ -318,9 +318,9 @@ module Google # Update properties of this object def update!(**args) - @history = args[:history] unless args[:history].nil? - @history_id = args[:history_id] unless args[:history_id].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @history = args[:history] if args.key?(:history) + @history_id = args[:history_id] if args.key?(:history_id) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -339,7 +339,7 @@ module Google # Update properties of this object def update!(**args) - @labels = args[:labels] unless args[:labels].nil? + @labels = args[:labels] if args.key?(:labels) end end @@ -368,9 +368,9 @@ module Google # Update properties of this object def update!(**args) - @messages = args[:messages] unless args[:messages].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @result_size_estimate = args[:result_size_estimate] unless args[:result_size_estimate].nil? + @messages = args[:messages] if args.key?(:messages) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @result_size_estimate = args[:result_size_estimate] if args.key?(:result_size_estimate) end end @@ -399,9 +399,9 @@ module Google # Update properties of this object def update!(**args) - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @result_size_estimate = args[:result_size_estimate] unless args[:result_size_estimate].nil? - @threads = args[:threads] unless args[:threads].nil? + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @result_size_estimate = args[:result_size_estimate] if args.key?(:result_size_estimate) + @threads = args[:threads] if args.key?(:threads) end end @@ -472,15 +472,15 @@ module Google # Update properties of this object def update!(**args) - @history_id = args[:history_id] unless args[:history_id].nil? - @id = args[:id] unless args[:id].nil? - @internal_date = args[:internal_date] unless args[:internal_date].nil? - @label_ids = args[:label_ids] unless args[:label_ids].nil? - @payload = args[:payload] unless args[:payload].nil? - @raw = args[:raw] unless args[:raw].nil? - @size_estimate = args[:size_estimate] unless args[:size_estimate].nil? - @snippet = args[:snippet] unless args[:snippet].nil? - @thread_id = args[:thread_id] unless args[:thread_id].nil? + @history_id = args[:history_id] if args.key?(:history_id) + @id = args[:id] if args.key?(:id) + @internal_date = args[:internal_date] if args.key?(:internal_date) + @label_ids = args[:label_ids] if args.key?(:label_ids) + @payload = args[:payload] if args.key?(:payload) + @raw = args[:raw] if args.key?(:raw) + @size_estimate = args[:size_estimate] if args.key?(:size_estimate) + @snippet = args[:snippet] if args.key?(:snippet) + @thread_id = args[:thread_id] if args.key?(:thread_id) end end @@ -530,12 +530,12 @@ module Google # Update properties of this object def update!(**args) - @body = args[:body] unless args[:body].nil? - @filename = args[:filename] unless args[:filename].nil? - @headers = args[:headers] unless args[:headers].nil? - @mime_type = args[:mime_type] unless args[:mime_type].nil? - @part_id = args[:part_id] unless args[:part_id].nil? - @parts = args[:parts] unless args[:parts].nil? + @body = args[:body] if args.key?(:body) + @filename = args[:filename] if args.key?(:filename) + @headers = args[:headers] if args.key?(:headers) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @part_id = args[:part_id] if args.key?(:part_id) + @parts = args[:parts] if args.key?(:parts) end end @@ -569,9 +569,9 @@ module Google # Update properties of this object def update!(**args) - @attachment_id = args[:attachment_id] unless args[:attachment_id].nil? - @data = args[:data] unless args[:data].nil? - @size = args[:size] unless args[:size].nil? + @attachment_id = args[:attachment_id] if args.key?(:attachment_id) + @data = args[:data] if args.key?(:data) + @size = args[:size] if args.key?(:size) end end @@ -596,8 +596,8 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @value = args[:value] unless args[:value].nil? + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) end end @@ -621,8 +621,8 @@ module Google # Update properties of this object def update!(**args) - @add_label_ids = args[:add_label_ids] unless args[:add_label_ids].nil? - @remove_label_ids = args[:remove_label_ids] unless args[:remove_label_ids].nil? + @add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids) + @remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids) end end @@ -646,8 +646,8 @@ module Google # Update properties of this object def update!(**args) - @add_label_ids = args[:add_label_ids] unless args[:add_label_ids].nil? - @remove_label_ids = args[:remove_label_ids] unless args[:remove_label_ids].nil? + @add_label_ids = args[:add_label_ids] if args.key?(:add_label_ids) + @remove_label_ids = args[:remove_label_ids] if args.key?(:remove_label_ids) end end @@ -681,10 +681,10 @@ module Google # Update properties of this object def update!(**args) - @email_address = args[:email_address] unless args[:email_address].nil? - @history_id = args[:history_id] unless args[:history_id].nil? - @messages_total = args[:messages_total] unless args[:messages_total].nil? - @threads_total = args[:threads_total] unless args[:threads_total].nil? + @email_address = args[:email_address] if args.key?(:email_address) + @history_id = args[:history_id] if args.key?(:history_id) + @messages_total = args[:messages_total] if args.key?(:messages_total) + @threads_total = args[:threads_total] if args.key?(:threads_total) end end @@ -718,10 +718,10 @@ module Google # Update properties of this object def update!(**args) - @history_id = args[:history_id] unless args[:history_id].nil? - @id = args[:id] unless args[:id].nil? - @messages = args[:messages] unless args[:messages].nil? - @snippet = args[:snippet] unless args[:snippet].nil? + @history_id = args[:history_id] if args.key?(:history_id) + @id = args[:id] if args.key?(:id) + @messages = args[:messages] if args.key?(:messages) + @snippet = args[:snippet] if args.key?(:snippet) end end @@ -758,9 +758,9 @@ module Google # Update properties of this object def update!(**args) - @label_filter_action = args[:label_filter_action] unless args[:label_filter_action].nil? - @label_ids = args[:label_ids] unless args[:label_ids].nil? - @topic_name = args[:topic_name] unless args[:topic_name].nil? + @label_filter_action = args[:label_filter_action] if args.key?(:label_filter_action) + @label_ids = args[:label_ids] if args.key?(:label_ids) + @topic_name = args[:topic_name] if args.key?(:topic_name) end end @@ -785,8 +785,8 @@ module Google # Update properties of this object def update!(**args) - @expiration = args[:expiration] unless args[:expiration].nil? - @history_id = args[:history_id] unless args[:history_id].nil? + @expiration = args[:expiration] if args.key?(:expiration) + @history_id = args[:history_id] if args.key?(:history_id) end end end diff --git a/generated/google/apis/groupsmigration_v1/classes.rb b/generated/google/apis/groupsmigration_v1/classes.rb index ec6c3833b..2841ab3cf 100644 --- a/generated/google/apis/groupsmigration_v1/classes.rb +++ b/generated/google/apis/groupsmigration_v1/classes.rb @@ -42,8 +42,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @response_code = args[:response_code] unless args[:response_code].nil? + @kind = args[:kind] if args.key?(:kind) + @response_code = args[:response_code] if args.key?(:response_code) end end end diff --git a/generated/google/apis/groupssettings_v1/classes.rb b/generated/google/apis/groupssettings_v1/classes.rb index be66d188b..63ad780bf 100644 --- a/generated/google/apis/groupssettings_v1/classes.rb +++ b/generated/google/apis/groupssettings_v1/classes.rb @@ -186,34 +186,34 @@ module Google # Update properties of this object def update!(**args) - @allow_external_members = args[:allow_external_members] unless args[:allow_external_members].nil? - @allow_google_communication = args[:allow_google_communication] unless args[:allow_google_communication].nil? - @allow_web_posting = args[:allow_web_posting] unless args[:allow_web_posting].nil? - @archive_only = args[:archive_only] unless args[:archive_only].nil? - @custom_reply_to = args[:custom_reply_to] unless args[:custom_reply_to].nil? - @default_message_deny_notification_text = args[:default_message_deny_notification_text] unless args[:default_message_deny_notification_text].nil? - @description = args[:description] unless args[:description].nil? - @email = args[:email] unless args[:email].nil? - @include_in_global_address_list = args[:include_in_global_address_list] unless args[:include_in_global_address_list].nil? - @is_archived = args[:is_archived] unless args[:is_archived].nil? - @kind = args[:kind] unless args[:kind].nil? - @max_message_bytes = args[:max_message_bytes] unless args[:max_message_bytes].nil? - @members_can_post_as_the_group = args[:members_can_post_as_the_group] unless args[:members_can_post_as_the_group].nil? - @message_display_font = args[:message_display_font] unless args[:message_display_font].nil? - @message_moderation_level = args[:message_moderation_level] unless args[:message_moderation_level].nil? - @name = args[:name] unless args[:name].nil? - @primary_language = args[:primary_language] unless args[:primary_language].nil? - @reply_to = args[:reply_to] unless args[:reply_to].nil? - @send_message_deny_notification = args[:send_message_deny_notification] unless args[:send_message_deny_notification].nil? - @show_in_group_directory = args[:show_in_group_directory] unless args[:show_in_group_directory].nil? - @spam_moderation_level = args[:spam_moderation_level] unless args[:spam_moderation_level].nil? - @who_can_contact_owner = args[:who_can_contact_owner] unless args[:who_can_contact_owner].nil? - @who_can_invite = args[:who_can_invite] unless args[:who_can_invite].nil? - @who_can_join = args[:who_can_join] unless args[:who_can_join].nil? - @who_can_leave_group = args[:who_can_leave_group] unless args[:who_can_leave_group].nil? - @who_can_post_message = args[:who_can_post_message] unless args[:who_can_post_message].nil? - @who_can_view_group = args[:who_can_view_group] unless args[:who_can_view_group].nil? - @who_can_view_membership = args[:who_can_view_membership] unless args[:who_can_view_membership].nil? + @allow_external_members = args[:allow_external_members] if args.key?(:allow_external_members) + @allow_google_communication = args[:allow_google_communication] if args.key?(:allow_google_communication) + @allow_web_posting = args[:allow_web_posting] if args.key?(:allow_web_posting) + @archive_only = args[:archive_only] if args.key?(:archive_only) + @custom_reply_to = args[:custom_reply_to] if args.key?(:custom_reply_to) + @default_message_deny_notification_text = args[:default_message_deny_notification_text] if args.key?(:default_message_deny_notification_text) + @description = args[:description] if args.key?(:description) + @email = args[:email] if args.key?(:email) + @include_in_global_address_list = args[:include_in_global_address_list] if args.key?(:include_in_global_address_list) + @is_archived = args[:is_archived] if args.key?(:is_archived) + @kind = args[:kind] if args.key?(:kind) + @max_message_bytes = args[:max_message_bytes] if args.key?(:max_message_bytes) + @members_can_post_as_the_group = args[:members_can_post_as_the_group] if args.key?(:members_can_post_as_the_group) + @message_display_font = args[:message_display_font] if args.key?(:message_display_font) + @message_moderation_level = args[:message_moderation_level] if args.key?(:message_moderation_level) + @name = args[:name] if args.key?(:name) + @primary_language = args[:primary_language] if args.key?(:primary_language) + @reply_to = args[:reply_to] if args.key?(:reply_to) + @send_message_deny_notification = args[:send_message_deny_notification] if args.key?(:send_message_deny_notification) + @show_in_group_directory = args[:show_in_group_directory] if args.key?(:show_in_group_directory) + @spam_moderation_level = args[:spam_moderation_level] if args.key?(:spam_moderation_level) + @who_can_contact_owner = args[:who_can_contact_owner] if args.key?(:who_can_contact_owner) + @who_can_invite = args[:who_can_invite] if args.key?(:who_can_invite) + @who_can_join = args[:who_can_join] if args.key?(:who_can_join) + @who_can_leave_group = args[:who_can_leave_group] if args.key?(:who_can_leave_group) + @who_can_post_message = args[:who_can_post_message] if args.key?(:who_can_post_message) + @who_can_view_group = args[:who_can_view_group] if args.key?(:who_can_view_group) + @who_can_view_membership = args[:who_can_view_membership] if args.key?(:who_can_view_membership) end end end diff --git a/generated/google/apis/identitytoolkit_v3.rb b/generated/google/apis/identitytoolkit_v3.rb index 357c7516a..442388904 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 = '20160120' + REVISION = '20160125' end end end diff --git a/generated/google/apis/identitytoolkit_v3/classes.rb b/generated/google/apis/identitytoolkit_v3/classes.rb index 3811b5f85..2c1f97802 100644 --- a/generated/google/apis/identitytoolkit_v3/classes.rb +++ b/generated/google/apis/identitytoolkit_v3/classes.rb @@ -75,14 +75,14 @@ module Google # Update properties of this object def update!(**args) - @all_providers = args[:all_providers] unless args[:all_providers].nil? - @auth_uri = args[:auth_uri] unless args[:auth_uri].nil? - @captcha_required = args[:captcha_required] unless args[:captcha_required].nil? - @for_existing_provider = args[:for_existing_provider] unless args[:for_existing_provider].nil? - @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? + @all_providers = args[:all_providers] if args.key?(:all_providers) + @auth_uri = args[:auth_uri] if args.key?(:auth_uri) + @captcha_required = args[:captcha_required] if args.key?(:captcha_required) + @for_existing_provider = args[:for_existing_provider] if args.key?(:for_existing_provider) + @kind = args[:kind] if args.key?(:kind) + @provider_id = args[:provider_id] if args.key?(:provider_id) + @registered = args[:registered] if args.key?(:registered) + @session_id = args[:session_id] if args.key?(:session_id) end end @@ -101,7 +101,7 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? + @kind = args[:kind] if args.key?(:kind) end end @@ -131,9 +131,9 @@ module Google # 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? - @users = args[:users] unless args[:users].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @users = args[:users] if args.key?(:users) end end @@ -157,8 +157,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @users = args[:users] unless args[:users].nil? + @kind = args[:kind] if args.key?(:kind) + @users = args[:users] if args.key?(:users) end end @@ -188,9 +188,9 @@ 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? + @email = args[:email] if args.key?(:email) + @kind = args[:kind] if args.key?(:kind) + @oob_code = args[:oob_code] if args.key?(:oob_code) end end @@ -219,9 +219,9 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @recaptcha_site_key = args[:recaptcha_site_key] unless args[:recaptcha_site_key].nil? - @recaptcha_stoken = args[:recaptcha_stoken] unless args[:recaptcha_stoken].nil? + @kind = args[:kind] if args.key?(:kind) + @recaptcha_site_key = args[:recaptcha_site_key] if args.key?(:recaptcha_site_key) + @recaptcha_stoken = args[:recaptcha_stoken] if args.key?(:recaptcha_stoken) end end @@ -290,16 +290,16 @@ module Google # Update properties of this object def update!(**args) - @app_id = args[:app_id] unless args[:app_id].nil? - @client_id = args[:client_id] unless args[:client_id].nil? - @context = args[:context] unless args[:context].nil? - @continue_uri = args[:continue_uri] unless args[:continue_uri].nil? - @identifier = args[:identifier] unless args[:identifier].nil? - @oauth_consumer_key = args[:oauth_consumer_key] unless args[:oauth_consumer_key].nil? - @oauth_scope = args[:oauth_scope] unless args[:oauth_scope].nil? - @openid_realm = args[:openid_realm] unless args[:openid_realm].nil? - @ota_app = args[:ota_app] unless args[:ota_app].nil? - @provider_id = args[:provider_id] unless args[:provider_id].nil? + @app_id = args[:app_id] if args.key?(:app_id) + @client_id = args[:client_id] if args.key?(:client_id) + @context = args[:context] if args.key?(:context) + @continue_uri = args[:continue_uri] if args.key?(:continue_uri) + @identifier = args[:identifier] if args.key?(:identifier) + @oauth_consumer_key = args[:oauth_consumer_key] if args.key?(:oauth_consumer_key) + @oauth_scope = args[:oauth_scope] if args.key?(:oauth_scope) + @openid_realm = args[:openid_realm] if args.key?(:openid_realm) + @ota_app = args[:ota_app] if args.key?(:ota_app) + @provider_id = args[:provider_id] if args.key?(:provider_id) end end @@ -307,6 +307,12 @@ module Google class DeleteAccountRequest include Google::Apis::Core::Hashable + # GCP project number of the requesting delegated app. Currently only intended + # for Firebase V1 migration. + # Corresponds to the JSON property `delegatedProjectNumber` + # @return [String] + attr_accessor :delegated_project_number + # The local ID of the user. # Corresponds to the JSON property `localId` # @return [String] @@ -318,7 +324,8 @@ module Google # Update properties of this object def update!(**args) - @local_id = args[:local_id] unless args[:local_id].nil? + @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number) + @local_id = args[:local_id] if args.key?(:local_id) end end @@ -326,6 +333,12 @@ module Google class DownloadAccountRequest include Google::Apis::Core::Hashable + # GCP project number of the requesting delegated app. Currently only intended + # for Firebase V1 migration. + # Corresponds to the JSON property `delegatedProjectNumber` + # @return [String] + attr_accessor :delegated_project_number + # The max number of results to return in the response. # Corresponds to the JSON property `maxResults` # @return [Fixnum] @@ -342,8 +355,9 @@ module Google # Update properties of this object def update!(**args) - @max_results = args[:max_results] unless args[:max_results].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number) + @max_results = args[:max_results] if args.key?(:max_results) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -372,9 +386,9 @@ module Google # Update properties of this object def update!(**args) - @email = args[:email] unless args[:email].nil? - @id_token = args[:id_token] unless args[:id_token].nil? - @local_id = args[:local_id] unless args[:local_id].nil? + @email = args[:email] if args.key?(:email) + @id_token = args[:id_token] if args.key?(:id_token) + @local_id = args[:local_id] if args.key?(:local_id) end end @@ -409,10 +423,10 @@ module Google # 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? + @allow_password_user = args[:allow_password_user] if args.key?(:allow_password_user) + @api_key = args[:api_key] if args.key?(:api_key) + @idp_config = args[:idp_config] if args.key?(:idp_config) + @project_id = args[:project_id] if args.key?(:project_id) end end @@ -446,10 +460,10 @@ module Google # Update properties of this object def update!(**args) - @email = args[:email] unless args[:email].nil? - @new_password = args[:new_password] unless args[:new_password].nil? - @old_password = args[:old_password] unless args[:old_password].nil? - @oob_code = args[:oob_code] unless args[:oob_code].nil? + @email = args[:email] if args.key?(:email) + @new_password = args[:new_password] if args.key?(:new_password) + @old_password = args[:old_password] if args.key?(:old_password) + @oob_code = args[:oob_code] if args.key?(:oob_code) end end @@ -542,21 +556,21 @@ module Google # Update properties of this object def update!(**args) - @captcha_challenge = args[:captcha_challenge] unless args[:captcha_challenge].nil? - @captcha_response = args[:captcha_response] unless args[:captcha_response].nil? - @delegated_project_number = args[:delegated_project_number] unless args[:delegated_project_number].nil? - @disable_user = args[:disable_user] unless args[:disable_user].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @email = args[:email] unless args[:email].nil? - @email_verified = args[:email_verified] unless args[:email_verified].nil? - @id_token = args[:id_token] unless args[:id_token].nil? - @instance_id = args[:instance_id] unless args[:instance_id].nil? - @local_id = args[:local_id] unless args[:local_id].nil? - @oob_code = args[:oob_code] unless args[:oob_code].nil? - @password = args[:password] unless args[:password].nil? - @provider = args[:provider] unless args[:provider].nil? - @upgrade_to_federated_login = args[:upgrade_to_federated_login] unless args[:upgrade_to_federated_login].nil? - @valid_since = args[:valid_since] unless args[:valid_since].nil? + @captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge) + @captcha_response = args[:captcha_response] if args.key?(:captcha_response) + @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number) + @disable_user = args[:disable_user] if args.key?(:disable_user) + @display_name = args[:display_name] if args.key?(:display_name) + @email = args[:email] if args.key?(:email) + @email_verified = args[:email_verified] if args.key?(:email_verified) + @id_token = args[:id_token] if args.key?(:id_token) + @instance_id = args[:instance_id] if args.key?(:instance_id) + @local_id = args[:local_id] if args.key?(:local_id) + @oob_code = args[:oob_code] if args.key?(:oob_code) + @password = args[:password] if args.key?(:password) + @provider = args[:provider] if args.key?(:provider) + @upgrade_to_federated_login = args[:upgrade_to_federated_login] if args.key?(:upgrade_to_federated_login) + @valid_since = args[:valid_since] if args.key?(:valid_since) end end @@ -580,8 +594,8 @@ module Google # Update properties of this object def update!(**args) - @instance_id = args[:instance_id] unless args[:instance_id].nil? - @local_id = args[:local_id] unless args[:local_id].nil? + @instance_id = args[:instance_id] if args.key?(:instance_id) + @local_id = args[:local_id] if args.key?(:local_id) end end @@ -600,7 +614,7 @@ module Google # Update properties of this object def update!(**args) - @local_id = args[:local_id] unless args[:local_id].nil? + @local_id = args[:local_id] if args.key?(:local_id) end end @@ -608,6 +622,12 @@ module Google class UploadAccountRequest include Google::Apis::Core::Hashable + # GCP project number of the requesting delegated app. Currently only intended + # for Firebase V1 migration. + # Corresponds to the JSON property `delegatedProjectNumber` + # @return [String] + attr_accessor :delegated_project_number + # The password hash algorithm. # Corresponds to the JSON property `hashAlgorithm` # @return [String] @@ -644,12 +664,13 @@ module Google # Update properties of this object def update!(**args) - @hash_algorithm = args[:hash_algorithm] unless args[:hash_algorithm].nil? - @memory_cost = args[:memory_cost] unless args[:memory_cost].nil? - @rounds = args[:rounds] unless args[:rounds].nil? - @salt_separator = args[:salt_separator] unless args[:salt_separator].nil? - @signer_key = args[:signer_key] unless args[:signer_key].nil? - @users = args[:users] unless args[:users].nil? + @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number) + @hash_algorithm = args[:hash_algorithm] if args.key?(:hash_algorithm) + @memory_cost = args[:memory_cost] if args.key?(:memory_cost) + @rounds = args[:rounds] if args.key?(:rounds) + @salt_separator = args[:salt_separator] if args.key?(:salt_separator) + @signer_key = args[:signer_key] if args.key?(:signer_key) + @users = args[:users] if args.key?(:users) end end @@ -657,6 +678,12 @@ module Google class VerifyAssertionRequest include Google::Apis::Core::Hashable + # GCP project number of the requesting delegated app. Currently only intended + # for Firebase V1 migration. + # Corresponds to the JSON property `delegatedProjectNumber` + # @return [String] + attr_accessor :delegated_project_number + # Instance id token of the app. # Corresponds to the JSON property `instanceId` # @return [String] @@ -695,12 +722,13 @@ module Google # Update properties of this object def update!(**args) - @instance_id = args[:instance_id] unless args[:instance_id].nil? - @pending_id_token = args[:pending_id_token] unless args[:pending_id_token].nil? - @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? + @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number) + @instance_id = args[:instance_id] if args.key?(:instance_id) + @pending_id_token = args[:pending_id_token] if args.key?(:pending_id_token) + @post_body = args[:post_body] if args.key?(:post_body) + @request_uri = args[:request_uri] if args.key?(:request_uri) + @return_refresh_token = args[:return_refresh_token] if args.key?(:return_refresh_token) + @session_id = args[:session_id] if args.key?(:session_id) end end @@ -724,8 +752,8 @@ module Google # Update properties of this object def update!(**args) - @instance_id = args[:instance_id] unless args[:instance_id].nil? - @token = args[:token] unless args[:token].nil? + @instance_id = args[:instance_id] if args.key?(:instance_id) + @token = args[:token] if args.key?(:token) end end @@ -775,13 +803,13 @@ module Google # Update properties of this object def update!(**args) - @captcha_challenge = args[:captcha_challenge] unless args[:captcha_challenge].nil? - @captcha_response = args[:captcha_response] unless args[:captcha_response].nil? - @delegated_project_number = args[:delegated_project_number] unless args[:delegated_project_number].nil? - @email = args[:email] unless args[:email].nil? - @instance_id = args[:instance_id] unless args[:instance_id].nil? - @password = args[:password] unless args[:password].nil? - @pending_id_token = args[:pending_id_token] unless args[:pending_id_token].nil? + @captcha_challenge = args[:captcha_challenge] if args.key?(:captcha_challenge) + @captcha_response = args[:captcha_response] if args.key?(:captcha_response) + @delegated_project_number = args[:delegated_project_number] if args.key?(:delegated_project_number) + @email = args[:email] if args.key?(:email) + @instance_id = args[:instance_id] if args.key?(:instance_id) + @password = args[:password] if args.key?(:password) + @pending_id_token = args[:pending_id_token] if args.key?(:pending_id_token) end end @@ -816,10 +844,10 @@ module Google # 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? + @client_id = args[:client_id] if args.key?(:client_id) + @enabled = args[:enabled] if args.key?(:enabled) + @experiment_percent = args[:experiment_percent] if args.key?(:experiment_percent) + @provider = args[:provider] if args.key?(:provider) end end @@ -874,14 +902,14 @@ module Google # Update properties of this object def update!(**args) - @captcha_resp = args[:captcha_resp] unless args[:captcha_resp].nil? - @challenge = args[:challenge] unless args[:challenge].nil? - @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? - @request_type = args[:request_type] unless args[:request_type].nil? - @user_ip = args[:user_ip] unless args[:user_ip].nil? + @captcha_resp = args[:captcha_resp] if args.key?(:captcha_resp) + @challenge = args[:challenge] if args.key?(:challenge) + @email = args[:email] if args.key?(:email) + @id_token = args[:id_token] if args.key?(:id_token) + @kind = args[:kind] if args.key?(:kind) + @new_email = args[:new_email] if args.key?(:new_email) + @request_type = args[:request_type] if args.key?(:request_type) + @user_ip = args[:user_ip] if args.key?(:user_ip) end end @@ -905,8 +933,8 @@ module Google # Update properties of this object def update!(**args) - @email = args[:email] unless args[:email].nil? - @kind = args[:kind] unless args[:kind].nil? + @email = args[:email] if args.key?(:email) + @kind = args[:kind] if args.key?(:kind) end end @@ -950,12 +978,12 @@ module Google # Update properties of this object def update!(**args) - @display_name = args[:display_name] unless args[:display_name].nil? - @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? + @display_name = args[:display_name] if args.key?(:display_name) + @email = args[:email] if args.key?(:email) + @id_token = args[:id_token] if args.key?(:id_token) + @kind = args[:kind] if args.key?(:kind) + @new_email = args[:new_email] if args.key?(:new_email) + @provider_user_info = args[:provider_user_info] if args.key?(:provider_user_info) end # @@ -984,9 +1012,9 @@ module Google # Update properties of this object def update!(**args) - @display_name = args[:display_name] unless args[:display_name].nil? - @photo_url = args[:photo_url] unless args[:photo_url].nil? - @provider_id = args[:provider_id] unless args[:provider_id].nil? + @display_name = args[:display_name] if args.key?(:display_name) + @photo_url = args[:photo_url] if args.key?(:photo_url) + @provider_id = args[:provider_id] if args.key?(:provider_id) end end end @@ -1011,8 +1039,8 @@ module Google # Update properties of this object def update!(**args) - @error = args[:error] unless args[:error].nil? - @kind = args[:kind] unless args[:kind].nil? + @error = args[:error] if args.key?(:error) + @kind = args[:kind] if args.key?(:kind) end # @@ -1035,8 +1063,8 @@ module Google # Update properties of this object def update!(**args) - @index = args[:index] unless args[:index].nil? - @message = args[:message] unless args[:message].nil? + @index = args[:index] if args.key?(:index) + @message = args[:message] if args.key?(:message) end end end @@ -1113,18 +1141,18 @@ module Google # Update properties of this object def update!(**args) - @disabled = args[:disabled] unless args[:disabled].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @email = args[:email] unless args[:email].nil? - @email_verified = args[:email_verified] unless args[:email_verified].nil? - @local_id = args[:local_id] unless args[:local_id].nil? - @password_hash = args[:password_hash] unless args[:password_hash].nil? - @password_updated_at = args[:password_updated_at] unless args[:password_updated_at].nil? - @photo_url = args[:photo_url] unless args[:photo_url].nil? - @provider_user_info = args[:provider_user_info] unless args[:provider_user_info].nil? - @salt = args[:salt] unless args[:salt].nil? - @valid_since = args[:valid_since] unless args[:valid_since].nil? - @version = args[:version] unless args[:version].nil? + @disabled = args[:disabled] if args.key?(:disabled) + @display_name = args[:display_name] if args.key?(:display_name) + @email = args[:email] if args.key?(:email) + @email_verified = args[:email_verified] if args.key?(:email_verified) + @local_id = args[:local_id] if args.key?(:local_id) + @password_hash = args[:password_hash] if args.key?(:password_hash) + @password_updated_at = args[:password_updated_at] if args.key?(:password_updated_at) + @photo_url = args[:photo_url] if args.key?(:photo_url) + @provider_user_info = args[:provider_user_info] if args.key?(:provider_user_info) + @salt = args[:salt] if args.key?(:salt) + @valid_since = args[:valid_since] if args.key?(:valid_since) + @version = args[:version] if args.key?(:version) end # @@ -1158,10 +1186,10 @@ module Google # Update properties of this object def update!(**args) - @display_name = args[:display_name] unless args[:display_name].nil? - @federated_id = args[:federated_id] unless args[:federated_id].nil? - @photo_url = args[:photo_url] unless args[:photo_url].nil? - @provider_id = args[:provider_id] unless args[:provider_id].nil? + @display_name = args[:display_name] if args.key?(:display_name) + @federated_id = args[:federated_id] if args.key?(:federated_id) + @photo_url = args[:photo_url] if args.key?(:photo_url) + @provider_id = args[:provider_id] if args.key?(:provider_id) end end end @@ -1347,37 +1375,37 @@ module Google # Update properties of this object def update!(**args) - @action = args[:action] unless args[:action].nil? - @app_installation_url = args[:app_installation_url] unless args[:app_installation_url].nil? - @app_scheme = args[:app_scheme] unless args[:app_scheme].nil? - @context = args[:context] unless args[:context].nil? - @date_of_birth = args[:date_of_birth] unless args[:date_of_birth].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @email = args[:email] unless args[:email].nil? - @email_recycled = args[:email_recycled] unless args[:email_recycled].nil? - @email_verified = args[:email_verified] unless args[:email_verified].nil? - @federated_id = args[:federated_id] unless args[:federated_id].nil? - @first_name = args[:first_name] unless args[:first_name].nil? - @full_name = args[:full_name] unless args[:full_name].nil? - @id_token = args[:id_token] unless args[:id_token].nil? - @input_email = args[:input_email] unless args[:input_email].nil? - @kind = args[:kind] unless args[:kind].nil? - @language = args[:language] unless args[:language].nil? - @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? - @oauth_expire_in = args[:oauth_expire_in] unless args[:oauth_expire_in].nil? - @oauth_request_token = args[:oauth_request_token] unless args[:oauth_request_token].nil? - @oauth_scope = args[:oauth_scope] unless args[:oauth_scope].nil? - @original_email = args[:original_email] unless args[:original_email].nil? - @photo_url = args[:photo_url] unless args[:photo_url].nil? - @provider_id = args[:provider_id] unless args[:provider_id].nil? - @time_zone = args[:time_zone] unless args[:time_zone].nil? - @verified_provider = args[:verified_provider] unless args[:verified_provider].nil? + @action = args[:action] if args.key?(:action) + @app_installation_url = args[:app_installation_url] if args.key?(:app_installation_url) + @app_scheme = args[:app_scheme] if args.key?(:app_scheme) + @context = args[:context] if args.key?(:context) + @date_of_birth = args[:date_of_birth] if args.key?(:date_of_birth) + @display_name = args[:display_name] if args.key?(:display_name) + @email = args[:email] if args.key?(:email) + @email_recycled = args[:email_recycled] if args.key?(:email_recycled) + @email_verified = args[:email_verified] if args.key?(:email_verified) + @federated_id = args[:federated_id] if args.key?(:federated_id) + @first_name = args[:first_name] if args.key?(:first_name) + @full_name = args[:full_name] if args.key?(:full_name) + @id_token = args[:id_token] if args.key?(:id_token) + @input_email = args[:input_email] if args.key?(:input_email) + @kind = args[:kind] if args.key?(:kind) + @language = args[:language] if args.key?(:language) + @last_name = args[:last_name] if args.key?(:last_name) + @local_id = args[:local_id] if args.key?(:local_id) + @need_confirmation = args[:need_confirmation] if args.key?(:need_confirmation) + @need_email = args[:need_email] if args.key?(:need_email) + @nick_name = args[:nick_name] if args.key?(:nick_name) + @oauth_access_token = args[:oauth_access_token] if args.key?(:oauth_access_token) + @oauth_authorization_code = args[:oauth_authorization_code] if args.key?(:oauth_authorization_code) + @oauth_expire_in = args[:oauth_expire_in] if args.key?(:oauth_expire_in) + @oauth_request_token = args[:oauth_request_token] if args.key?(:oauth_request_token) + @oauth_scope = args[:oauth_scope] if args.key?(:oauth_scope) + @original_email = args[:original_email] if args.key?(:original_email) + @photo_url = args[:photo_url] if args.key?(:photo_url) + @provider_id = args[:provider_id] if args.key?(:provider_id) + @time_zone = args[:time_zone] if args.key?(:time_zone) + @verified_provider = args[:verified_provider] if args.key?(:verified_provider) end end @@ -1401,8 +1429,8 @@ module Google # Update properties of this object def update!(**args) - @id_token = args[:id_token] unless args[:id_token].nil? - @kind = args[:kind] unless args[:kind].nil? + @id_token = args[:id_token] if args.key?(:id_token) + @kind = args[:kind] if args.key?(:kind) end end @@ -1469,16 +1497,16 @@ module Google # Update properties of this object def update!(**args) - @display_name = args[:display_name] unless args[:display_name].nil? - @email = args[:email] unless args[:email].nil? - @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? + @display_name = args[:display_name] if args.key?(:display_name) + @email = args[:email] if args.key?(:email) + @id_token = args[:id_token] if args.key?(:id_token) + @kind = args[:kind] if args.key?(:kind) + @local_id = args[:local_id] if args.key?(:local_id) + @oauth_access_token = args[:oauth_access_token] if args.key?(:oauth_access_token) + @oauth_authorization_code = args[:oauth_authorization_code] if args.key?(:oauth_authorization_code) + @oauth_expire_in = args[:oauth_expire_in] if args.key?(:oauth_expire_in) + @photo_url = args[:photo_url] if args.key?(:photo_url) + @registered = args[:registered] if args.key?(:registered) end end end diff --git a/generated/google/apis/identitytoolkit_v3/representations.rb b/generated/google/apis/identitytoolkit_v3/representations.rb index 358f4dd50..ecd2f845a 100644 --- a/generated/google/apis/identitytoolkit_v3/representations.rb +++ b/generated/google/apis/identitytoolkit_v3/representations.rb @@ -223,6 +223,7 @@ module Google class DeleteAccountRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :delegated_project_number, as: 'delegatedProjectNumber' property :local_id, as: 'localId' end end @@ -230,6 +231,7 @@ module Google class DownloadAccountRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :delegated_project_number, as: 'delegatedProjectNumber' property :max_results, as: 'maxResults' property :next_page_token, as: 'nextPageToken' end @@ -304,6 +306,7 @@ module Google class UploadAccountRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :delegated_project_number, as: 'delegatedProjectNumber' property :hash_algorithm, as: 'hashAlgorithm' property :memory_cost, as: 'memoryCost' property :rounds, as: 'rounds' @@ -317,6 +320,7 @@ module Google class VerifyAssertionRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + property :delegated_project_number, as: 'delegatedProjectNumber' property :instance_id, as: 'instanceId' property :pending_id_token, as: 'pendingIdToken' property :post_body, as: 'postBody' diff --git a/generated/google/apis/kgsearch_v1/classes.rb b/generated/google/apis/kgsearch_v1/classes.rb index a5fe352df..de14fe75e 100644 --- a/generated/google/apis/kgsearch_v1/classes.rb +++ b/generated/google/apis/kgsearch_v1/classes.rb @@ -49,9 +49,9 @@ module Google # Update properties of this object def update!(**args) - @context = args[:context] unless args[:context].nil? - @type = args[:type] unless args[:type].nil? - @item_list_element = args[:item_list_element] unless args[:item_list_element].nil? + @context = args[:context] if args.key?(:context) + @type = args[:type] if args.key?(:type) + @item_list_element = args[:item_list_element] if args.key?(:item_list_element) end end end diff --git a/generated/google/apis/licensing_v1/classes.rb b/generated/google/apis/licensing_v1/classes.rb index d69eac35f..2b77e8b89 100644 --- a/generated/google/apis/licensing_v1/classes.rb +++ b/generated/google/apis/licensing_v1/classes.rb @@ -62,12 +62,12 @@ module Google # Update properties of this object def update!(**args) - @etags = args[:etags] unless args[:etags].nil? - @kind = args[:kind] unless args[:kind].nil? - @product_id = args[:product_id] unless args[:product_id].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @sku_id = args[:sku_id] unless args[:sku_id].nil? - @user_id = args[:user_id] unless args[:user_id].nil? + @etags = args[:etags] if args.key?(:etags) + @kind = args[:kind] if args.key?(:kind) + @product_id = args[:product_id] if args.key?(:product_id) + @self_link = args[:self_link] if args.key?(:self_link) + @sku_id = args[:sku_id] if args.key?(:sku_id) + @user_id = args[:user_id] if args.key?(:user_id) end end @@ -86,7 +86,7 @@ module Google # Update properties of this object def update!(**args) - @user_id = args[:user_id] unless args[:user_id].nil? + @user_id = args[:user_id] if args.key?(:user_id) end end @@ -121,10 +121,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end end diff --git a/generated/google/apis/logging_v2beta1.rb b/generated/google/apis/logging_v2beta1.rb new file mode 100644 index 000000000..e58423c1a --- /dev/null +++ b/generated/google/apis/logging_v2beta1.rb @@ -0,0 +1,47 @@ +# 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/logging_v2beta1/service.rb' +require 'google/apis/logging_v2beta1/classes.rb' +require 'google/apis/logging_v2beta1/representations.rb' + +module Google + module Apis + # Google Cloud Logging API + # + # The Google Cloud Logging API lets you write log entries and manage your logs, + # log sinks and logs-based metrics. + # + # @see https://cloud.google.com/logging/docs/ + module LoggingV2beta1 + VERSION = 'V2beta1' + REVISION = '20160104' + + # 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_v2beta1/classes.rb b/generated/google/apis/logging_v2beta1/classes.rb new file mode 100644 index 000000000..95acada92 --- /dev/null +++ b/generated/google/apis/logging_v2beta1/classes.rb @@ -0,0 +1,990 @@ +# 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 LoggingV2beta1 + + # 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 + + # The parameters to WriteLogEntries. + class WriteLogEntriesRequest + include Google::Apis::Core::Hashable + + # Optional. A default log resource name for those log entries in `entries` that + # do not specify their own `logName`. Example: `"projects/my-project/logs/syslog" + # `. See LogEntry. + # Corresponds to the JSON property `logName` + # @return [String] + attr_accessor :log_name + + # A specific monitored resource or a group of monitored resources. + # Corresponds to the JSON property `resource` + # @return [Google::Apis::LoggingV2beta1::MonitoredResource] + attr_accessor :resource + + # Optional. User-defined `key:value` items that are added to the `labels` field + # of each log entry in `entries`, except when a log entry specifies its own `key: + # value` item with the same key. Example: `` "size": "large", "color":"red" `` + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Required. The log entries to write. The log entries must have values for all + # required fields. + # 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) + @log_name = args[:log_name] if args.key?(:log_name) + @resource = args[:resource] if args.key?(:resource) + @labels = args[:labels] if args.key?(:labels) + @entries = args[:entries] if args.key?(:entries) + end + end + + # A specific monitored resource or a group of monitored resources. + class MonitoredResource + include Google::Apis::Core::Hashable + + # The type of monitored resource. This field must match the value of the `type` + # field in a MonitoredResourceDescriptor object. For example, `" + # cloudsql_database"` represents Cloud SQL databases. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Values for some or all of the labels listed in the associated monitored + # resource descriptor. For example, specify a specific Cloud SQL database by + # supplying values for both the `"database_id"` and `"zone"` labels. Specify the + # set of all Cloud SQL databases in a particular location by supplying a value + # for only the `"zone"` label. + # 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) + @type = args[:type] if args.key?(:type) + @labels = args[:labels] if args.key?(:labels) + end + end + + # An individual entry in a log. + class LogEntry + include Google::Apis::Core::Hashable + + # Required. The resource name of the log to which this log entry belongs. The + # format of the name is `projects//logs/] + attr_accessor :proto_payload + + # The log entry payload, represented as a Unicode string (UTF-8). + # Corresponds to the JSON property `textPayload` + # @return [String] + attr_accessor :text_payload + + # The log entry payload, represented as a structure that is expressed as a JSON + # object. + # Corresponds to the JSON property `jsonPayload` + # @return [Hash] + attr_accessor :json_payload + + # Optional. The time the event described by the log entry occurred. If omitted, + # Cloud Logging will use the time the log entry is written. + # Corresponds to the JSON property `timestamp` + # @return [String] + attr_accessor :timestamp + + # Optional. The severity of the log entry. The default value is `LogSeverity. + # DEFAULT`. + # Corresponds to the JSON property `severity` + # @return [String] + attr_accessor :severity + + # Optional. A unique ID for the log entry. If you provide this field, the + # logging service considers other log entries in the same log with the same ID + # as duplicates which can be removed. If omitted, Cloud Logging will generate a + # unique ID for this log entry. + # Corresponds to the JSON property `insertId` + # @return [String] + attr_accessor :insert_id + + # A common proto for logging HTTP requests. + # Corresponds to the JSON property `httpRequest` + # @return [Google::Apis::LoggingV2beta1::HttpRequest] + attr_accessor :http_request + + # Optional. A set of user-defined (key, value) data that provides additional + # information about the log entry. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + + # Additional information about a potentially long-running operation with which a + # log entry is associated. + # Corresponds to the JSON property `operation` + # @return [Google::Apis::LoggingV2beta1::LogEntryOperation] + attr_accessor :operation + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @log_name = args[:log_name] if args.key?(:log_name) + @resource = args[:resource] if args.key?(:resource) + @proto_payload = args[:proto_payload] if args.key?(:proto_payload) + @text_payload = args[:text_payload] if args.key?(:text_payload) + @json_payload = args[:json_payload] if args.key?(:json_payload) + @timestamp = args[:timestamp] if args.key?(:timestamp) + @severity = args[:severity] if args.key?(:severity) + @insert_id = args[:insert_id] if args.key?(:insert_id) + @http_request = args[:http_request] if args.key?(:http_request) + @labels = args[:labels] if args.key?(:labels) + @operation = args[:operation] if args.key?(:operation) + end + end + + # A common proto for logging HTTP requests. + class HttpRequest + include Google::Apis::Core::Hashable + + # The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`. + # Corresponds to the JSON property `requestMethod` + # @return [String] + attr_accessor :request_method + + # The scheme (http, https), the host name, the path and the query portion of the + # URL that was requested. Example: `"http://example.com/some/info?color=red"`. + # Corresponds to the JSON property `requestUrl` + # @return [String] + attr_accessor :request_url + + # The size of the HTTP request message in bytes, including the request headers + # and the request body. + # Corresponds to the JSON property `requestSize` + # @return [String] + attr_accessor :request_size + + # The response code indicating the status of response. Examples: 200, 404. + # Corresponds to the JSON property `status` + # @return [Fixnum] + attr_accessor :status + + # The size of the HTTP response message sent back to the client, in bytes, + # including the response headers and the response body. + # Corresponds to the JSON property `responseSize` + # @return [String] + attr_accessor :response_size + + # The user agent sent by the client. Example: `"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 + + # The IP address (IPv4 or IPv6) of the client that issued the HTTP request. + # Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`. + # Corresponds to the JSON property `remoteIp` + # @return [String] + attr_accessor :remote_ip + + # The referer URL of the request, as defined in [HTTP/1.1 Header Field + # Definitions](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] if args.key?(:request_method) + @request_url = args[:request_url] if args.key?(:request_url) + @request_size = args[:request_size] if args.key?(:request_size) + @status = args[:status] if args.key?(:status) + @response_size = args[:response_size] if args.key?(:response_size) + @user_agent = args[:user_agent] if args.key?(:user_agent) + @remote_ip = args[:remote_ip] if args.key?(:remote_ip) + @referer = args[:referer] if args.key?(:referer) + @cache_hit = args[:cache_hit] if args.key?(:cache_hit) + @validated_with_origin_server = args[:validated_with_origin_server] if args.key?(:validated_with_origin_server) + end + end + + # Additional information about a potentially long-running operation with which a + # log entry is associated. + class LogEntryOperation + include Google::Apis::Core::Hashable + + # Required. An arbitrary operation identifier. Log entries with the same + # identifier are assumed to be part of the same operation. + # Corresponds to the JSON property `id` + # @return [String] + attr_accessor :id + + # Required. An arbitrary producer identifier. The combination of `id` and ` + # producer` must be globally unique. Examples for `producer`: `"MyDivision. + # MyBigCompany.com"`, "github.com/MyProject/MyApplication"`. + # Corresponds to the JSON property `producer` + # @return [String] + attr_accessor :producer + + # Optional. Set this to True if this is the first log entry in the operation. + # Corresponds to the JSON property `first` + # @return [Boolean] + attr_accessor :first + alias_method :first?, :first + + # Optional. Set this to True if this is the last log entry in the operation. + # Corresponds to the JSON property `last` + # @return [Boolean] + attr_accessor :last + alias_method :last?, :last + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @id = args[:id] if args.key?(:id) + @producer = args[:producer] if args.key?(:producer) + @first = args[:first] if args.key?(:first) + @last = args[:last] if args.key?(:last) + end + end + + # Result returned from WriteLogEntries. empty + class WriteLogEntriesResponse + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # The parameters to `ListLogEntries`. + class ListLogEntriesRequest + include Google::Apis::Core::Hashable + + # Required. One or more project IDs or project numbers from which to retrieve + # log entries. Examples of a project ID: `"my-project-1A"`, `"1234567890"`. + # Corresponds to the JSON property `projectIds` + # @return [Array] + attr_accessor :project_ids + + # Optional. An [advanced logs filter](/logging/docs/view/advanced_filters). The + # filter is compared against all log entries in the projects specified by ` + # projectIds`. Only entries that match the filter are retrieved. An empty filter + # matches all log entries. + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + # Optional. How the results should be sorted. Presently, the only permitted + # values are `"timestamp"` (default) and `"timestamp desc"`. The first option + # returns entries in order of increasing values of `LogEntry.timestamp` (oldest + # first), and the second option returns entries in order of decreasing + # timestamps (newest first). Entries with equal timestamps are returned in order + # of `LogEntry.insertId`. + # Corresponds to the JSON property `orderBy` + # @return [String] + attr_accessor :order_by + + # Optional. The maximum number of results to return from this request. Fewer + # results might be returned. You must check for the `nextPageToken` result to + # determine if additional results are available, which you can retrieve by + # passing the `nextPageToken` value in the `pageToken` parameter to the next + # request. + # Corresponds to the JSON property `pageSize` + # @return [Fixnum] + attr_accessor :page_size + + # Optional. If the `pageToken` request parameter is supplied, then the next page + # of results in the set are retrieved. The `pageToken` parameter must be set + # with the value of the `nextPageToken` result parameter from the previous + # request. The values of `projectIds`, `filter`, and `orderBy` must be the same + # as in the previous request. + # Corresponds to the JSON property `pageToken` + # @return [String] + attr_accessor :page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @project_ids = args[:project_ids] if args.key?(:project_ids) + @filter = args[:filter] if args.key?(:filter) + @order_by = args[:order_by] if args.key?(:order_by) + @page_size = args[:page_size] if args.key?(:page_size) + @page_token = args[:page_token] if args.key?(:page_token) + end + end + + # Result returned from `ListLogEntries`. + class ListLogEntriesResponse + include Google::Apis::Core::Hashable + + # A list of log entries. + # Corresponds to the JSON property `entries` + # @return [Array] + attr_accessor :entries + + # If there are more results than were returned, then `nextPageToken` is given a + # value in the response. To get the next batch of results, call this method + # again using the value of `nextPageToken` as `pageToken`. + # 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) + @entries = args[:entries] if args.key?(:entries) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Result returned from ListMonitoredResourceDescriptors. + class ListMonitoredResourceDescriptorsResponse + include Google::Apis::Core::Hashable + + # A list of resource descriptors. + # Corresponds to the JSON property `resourceDescriptors` + # @return [Array] + attr_accessor :resource_descriptors + + # If there are more results than were returned, then `nextPageToken` is returned + # in the response. To get the next batch of results, call this method again + # using the value of `nextPageToken` as `pageToken`. + # 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) + @resource_descriptors = args[:resource_descriptors] if args.key?(:resource_descriptors) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # A description of a type of monitored resource. + class MonitoredResourceDescriptor + include Google::Apis::Core::Hashable + + # The monitored resource type. For example, the type `"cloudsql_database"` + # represents databases in Google Cloud SQL. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # A concise name for the monitored resource type, which is displayed in user + # interfaces. For example, `"Cloud SQL Database"`. + # Corresponds to the JSON property `displayName` + # @return [String] + attr_accessor :display_name + + # A detailed description of the monitored resource type, which is used in + # documentation. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # A set of labels that can be used to describe instances of this monitored + # resource type. For example, Cloud SQL databases can be labeled with their `" + # database_id"` and their `"zone"`. + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @type = args[:type] if args.key?(:type) + @display_name = args[:display_name] if args.key?(:display_name) + @description = args[:description] if args.key?(:description) + @labels = args[:labels] if args.key?(:labels) + end + end + + # A description of a label. + class LabelDescriptor + include Google::Apis::Core::Hashable + + # The label key. + # Corresponds to the JSON property `key` + # @return [String] + attr_accessor :key + + # The type of data that can be assigned to the label. + # Corresponds to the JSON property `valueType` + # @return [String] + attr_accessor :value_type + + # A human-readable description for the label. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @key = args[:key] if args.key?(:key) + @value_type = args[:value_type] if args.key?(:value_type) + @description = args[:description] if args.key?(:description) + end + end + + # Result returned from `ListSinks`. + class ListSinksResponse + include Google::Apis::Core::Hashable + + # A list of sinks. + # Corresponds to the JSON property `sinks` + # @return [Array] + attr_accessor :sinks + + # If there are more results than were returned, then `nextPageToken` is given a + # value in the response. To get the next batch of results, call this method + # again using the value of `nextPageToken` as `pageToken`. + # 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) + @sinks = args[:sinks] if args.key?(:sinks) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Describes a sink used to export log entries outside Cloud Logging. + class LogSink + include Google::Apis::Core::Hashable + + # Required. The client-assigned sink identifier. Example: `"my-severe-errors-to- + # pubsub"`. Sink identifiers are limited to 1000 characters and can include only + # the following characters: `A-Z`, `a-z`, `0-9`, and the special characters `_-.` + # . + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The export destination. See [Exporting Logs With Sinks](/logging/docs/api/ + # tasks/exporting-logs). Examples: `"storage.googleapis.com/a-bucket"`, `" + # bigquery.googleapis.com/projects/a-project-id/datasets/a-dataset"`. + # Corresponds to the JSON property `destination` + # @return [String] + attr_accessor :destination + + # An [advanced logs filter](/logging/docs/view/advanced_filters) that defines + # the log entries to be exported. The filter must be consistent with the log + # entry format designed by the `outputVersionFormat` parameter, regardless of + # the format of the log entry that was originally written to Cloud Logging. + # Example: `"logName:syslog AND severity>=ERROR"`. + # Corresponds to the JSON property `filter` + # @return [String] + attr_accessor :filter + + # The log entry version used when exporting log entries from this sink. This + # version does not have to correspond to the version of the log entry when it + # was written to Cloud Logging. + # Corresponds to the JSON property `outputVersionFormat` + # @return [String] + attr_accessor :output_version_format + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @name = args[:name] if args.key?(:name) + @destination = args[:destination] if args.key?(:destination) + @filter = args[:filter] if args.key?(:filter) + @output_version_format = args[:output_version_format] if args.key?(:output_version_format) + end + end + + # Result returned from ListLogMetrics. + class ListLogMetricsResponse + include Google::Apis::Core::Hashable + + # A list of logs-based metrics. + # Corresponds to the JSON property `metrics` + # @return [Array] + attr_accessor :metrics + + # If there are more results than were returned, then `nextPageToken` is given a + # value in the response. To get the next batch of results, call this method + # again using the value of `nextPageToken` as `pageToken`. + # 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] if args.key?(:metrics) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + + # Describes a logs-based metric. The value of the metric is the number of log + # entries that match a logs filter. + class LogMetric + include Google::Apis::Core::Hashable + + # Required. The client-assigned metric identifier. Example: `"severe_errors"`. + # Metric identifiers are limited to 1000 characters and can include only the + # following characters: `A-Z`, `a-z`, `0-9`, and the special characters `_-.,+!*' + # ,()%/\`. The forward-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, which is used in documentation. + # Corresponds to the JSON property `description` + # @return [String] + attr_accessor :description + + # An [advanced logs filter](/logging/docs/view/advanced_filters). Example: `" + # logName:syslog AND 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] if args.key?(:name) + @description = args[:description] if args.key?(:description) + @filter = args[:filter] if args.key?(:filter) + end + end + + # Complete log information about a single HTTP request to an App Engine + # application. + class RequestLog + include Google::Apis::Core::Hashable + + # Application that handled this request. + # Corresponds to the JSON property `appId` + # @return [String] + attr_accessor :app_id + + # 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, which is based on the 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 when the request started. + # Corresponds to the JSON property `startTime` + # @return [String] + attr_accessor :start_time + + # Time when the request finished. + # 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. Example: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`, `"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". The fragment identifier, which is identified by the `#` character, + # is not included. + # Corresponds to the JSON property `resource` + # @return [String] + attr_accessor :resource + + # HTTP version of request. Example: `"HTTP/1.1"`. + # Corresponds to the JSON property `httpVersion` + # @return [String] + attr_accessor :http_version + + # HTTP response status code. Example: 200, 404. + # 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 that made the request. + # Corresponds to the JSON property `userAgent` + # @return [String] + attr_accessor :user_agent + + # The logged-in user who made the request. 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 can have similar names. This + # information is also available to the application via the App Engine 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 that handled the request. + # Corresponds to the JSON property `urlMapEntry` + # @return [String] + attr_accessor :url_map_entry + + # 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, in the case of an offline request. + # Corresponds to the JSON property `taskQueueName` + # @return [String] + attr_accessor :task_queue_name + + # Task name of the request, in the case of an offline request. + # Corresponds to the JSON property `taskName` + # @return [String] + attr_accessor :task_name + + # Whether this was a loading request for the 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. + # Corresponds to the JSON property `pendingTime` + # @return [String] + attr_accessor :pending_time + + # If the instance processing this request belongs to a manually scaled module, + # then this is the 0-based index of the instance. Otherwise, this value is -1. + # Corresponds to the JSON property `instanceIndex` + # @return [Fixnum] + attr_accessor :instance_index + + # Whether this request is finished or active. + # Corresponds to the JSON property `finished` + # @return [Boolean] + attr_accessor :finished + alias_method :finished?, :finished + + # An identifier for the instance that handled the request. + # Corresponds to the JSON property `instanceId` + # @return [String] + attr_accessor :instance_id + + # A list of log lines emitted by the application while serving this request. + # Corresponds to the JSON property `line` + # @return [Array] + attr_accessor :line + + # App Engine release version. + # Corresponds to the JSON property `appEngineRelease` + # @return [String] + attr_accessor :app_engine_release + + # Cloud Trace identifier 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] if args.key?(:app_id) + @module_id = args[:module_id] if args.key?(:module_id) + @version_id = args[:version_id] if args.key?(:version_id) + @request_id = args[:request_id] if args.key?(:request_id) + @ip = args[:ip] if args.key?(:ip) + @start_time = args[:start_time] if args.key?(:start_time) + @end_time = args[:end_time] if args.key?(:end_time) + @latency = args[:latency] if args.key?(:latency) + @mega_cycles = args[:mega_cycles] if args.key?(:mega_cycles) + @method_prop = args[:method_prop] if args.key?(:method_prop) + @resource = args[:resource] if args.key?(:resource) + @http_version = args[:http_version] if args.key?(:http_version) + @status = args[:status] if args.key?(:status) + @response_size = args[:response_size] if args.key?(:response_size) + @referrer = args[:referrer] if args.key?(:referrer) + @user_agent = args[:user_agent] if args.key?(:user_agent) + @nickname = args[:nickname] if args.key?(:nickname) + @url_map_entry = args[:url_map_entry] if args.key?(:url_map_entry) + @host = args[:host] if args.key?(:host) + @cost = args[:cost] if args.key?(:cost) + @task_queue_name = args[:task_queue_name] if args.key?(:task_queue_name) + @task_name = args[:task_name] if args.key?(:task_name) + @was_loading_request = args[:was_loading_request] if args.key?(:was_loading_request) + @pending_time = args[:pending_time] if args.key?(:pending_time) + @instance_index = args[:instance_index] if args.key?(:instance_index) + @finished = args[:finished] if args.key?(:finished) + @instance_id = args[:instance_id] if args.key?(:instance_id) + @line = args[:line] if args.key?(:line) + @app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release) + @trace_id = args[:trace_id] if args.key?(:trace_id) + @source_reference = args[:source_reference] if args.key?(:source_reference) + end + end + + # Application log line emitted while processing a request. + class LogLine + include Google::Apis::Core::Hashable + + # Approximate time when this log entry was made. + # Corresponds to the JSON property `time` + # @return [String] + attr_accessor :time + + # Severity of this log entry. + # 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 code file. + # Corresponds to the JSON property `sourceLocation` + # @return [Google::Apis::LoggingV2beta1::SourceLocation] + attr_accessor :source_location + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @time = args[:time] if args.key?(:time) + @severity = args[:severity] if args.key?(:severity) + @log_message = args[:log_message] if args.key?(:log_message) + @source_location = args[:source_location] if args.key?(:source_location) + end + end + + # Specifies a location in a source code file. + class SourceLocation + include Google::Apis::Core::Hashable + + # Source file name. Depending on the runtime environment, this might be a simple + # name or a fully-qualified name. + # 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. This information is used in + # contexts such as the logs viewer, where a file and line number are less + # meaningful. The format can vary by language. For example: `qual.if.ied.Class. + # method` (Java), `dir/package.func` (Go), `function` (Python). + # 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] if args.key?(:file) + @line = args[:line] if args.key?(:line) + @function_name = args[:function_name] if args.key?(:function_name) + 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] if args.key?(:repository) + @revision_id = args[:revision_id] if args.key?(:revision_id) + end + end + end + end +end diff --git a/generated/google/apis/logging_v2beta1/representations.rb b/generated/google/apis/logging_v2beta1/representations.rb new file mode 100644 index 000000000..dce641dcd --- /dev/null +++ b/generated/google/apis/logging_v2beta1/representations.rb @@ -0,0 +1,337 @@ +# 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 LoggingV2beta1 + + class Empty + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class WriteLogEntriesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class MonitoredResource + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LogEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class HttpRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LogEntryOperation + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class WriteLogEntriesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListLogEntriesRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListLogEntriesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListMonitoredResourceDescriptorsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class MonitoredResourceDescriptor + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LabelDescriptor + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class ListSinksResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + end + + class LogSink + 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 Empty + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class WriteLogEntriesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :log_name, as: 'logName' + property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation + + hash :labels, as: 'labels' + collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation + + end + end + + class MonitoredResource + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + hash :labels, as: 'labels' + end + end + + class LogEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :log_name, as: 'logName' + property :resource, as: 'resource', class: Google::Apis::LoggingV2beta1::MonitoredResource, decorator: Google::Apis::LoggingV2beta1::MonitoredResource::Representation + + hash :proto_payload, as: 'protoPayload' + property :text_payload, as: 'textPayload' + hash :json_payload, as: 'jsonPayload' + property :timestamp, as: 'timestamp' + property :severity, as: 'severity' + property :insert_id, as: 'insertId' + property :http_request, as: 'httpRequest', class: Google::Apis::LoggingV2beta1::HttpRequest, decorator: Google::Apis::LoggingV2beta1::HttpRequest::Representation + + hash :labels, as: 'labels' + property :operation, as: 'operation', class: Google::Apis::LoggingV2beta1::LogEntryOperation, decorator: Google::Apis::LoggingV2beta1::LogEntryOperation::Representation + + 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 LogEntryOperation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :id, as: 'id' + property :producer, as: 'producer' + property :first, as: 'first' + property :last, as: 'last' + end + end + + class WriteLogEntriesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class ListLogEntriesRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :project_ids, as: 'projectIds' + property :filter, as: 'filter' + property :order_by, as: 'orderBy' + property :page_size, as: 'pageSize' + property :page_token, as: 'pageToken' + end + end + + class ListLogEntriesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entries, as: 'entries', class: Google::Apis::LoggingV2beta1::LogEntry, decorator: Google::Apis::LoggingV2beta1::LogEntry::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class ListMonitoredResourceDescriptorsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :resource_descriptors, as: 'resourceDescriptors', class: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor, decorator: Google::Apis::LoggingV2beta1::MonitoredResourceDescriptor::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class MonitoredResourceDescriptor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :type, as: 'type' + property :display_name, as: 'displayName' + property :description, as: 'description' + collection :labels, as: 'labels', class: Google::Apis::LoggingV2beta1::LabelDescriptor, decorator: Google::Apis::LoggingV2beta1::LabelDescriptor::Representation + + end + end + + class LabelDescriptor + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :key, as: 'key' + property :value_type, as: 'valueType' + property :description, as: 'description' + end + end + + class ListSinksResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :sinks, as: 'sinks', class: Google::Apis::LoggingV2beta1::LogSink, decorator: Google::Apis::LoggingV2beta1::LogSink::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + + class LogSink + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :name, as: 'name' + property :destination, as: 'destination' + property :filter, as: 'filter' + property :output_version_format, as: 'outputVersionFormat' + end + end + + class ListLogMetricsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :metrics, as: 'metrics', class: Google::Apis::LoggingV2beta1::LogMetric, decorator: Google::Apis::LoggingV2beta1::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::LoggingV2beta1::LogLine, decorator: Google::Apis::LoggingV2beta1::LogLine::Representation + + property :app_engine_release, as: 'appEngineRelease' + property :trace_id, as: 'traceId' + collection :source_reference, as: 'sourceReference', class: Google::Apis::LoggingV2beta1::SourceReference, decorator: Google::Apis::LoggingV2beta1::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::LoggingV2beta1::SourceLocation, decorator: Google::Apis::LoggingV2beta1::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_v2beta1/service.rb b/generated/google/apis/logging_v2beta1/service.rb new file mode 100644 index 000000000..94b62aeec --- /dev/null +++ b/generated/google/apis/logging_v2beta1/service.rb @@ -0,0 +1,547 @@ +# 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 LoggingV2beta1 + # Google Cloud Logging API + # + # 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_v2beta1' + # + # Logging = Google::Apis::LoggingV2beta1 # Alias the module + # service = Logging::LoggingService.new + # + # @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, + # 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://logging.googleapis.com/', '') + end + + # Deletes a log and all its log entries. The log will reappear if it receives + # new entries. + # @param [String] log_name + # Required. The resource name of the log to delete. Example: `"projects/my- + # project/logs/syslog"`. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available 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::LoggingV2beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::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_log(log_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2beta1/{+logName}', options) + command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation + command.response_class = Google::Apis::LoggingV2beta1::Empty + command.params['logName'] = log_name unless log_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 sinks. + # @param [String] project_name + # Required. The resource name of the project containing the sinks. Example: `" + # projects/my-logging-project"`, `"projects/01234567890"`. + # @param [String] page_token + # Optional. If the `pageToken` request parameter is supplied, then the next page + # of results in the set are retrieved. The `pageToken` parameter must be set + # with the value of the `nextPageToken` result parameter from the previous + # request. The value of `projectName` must be the same as in the previous + # request. + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Fewer + # results might be returned. You must check for the `nextPageToken` result to + # determine if additional results are available, which you can retrieve by + # passing the `nextPageToken` value in the `pageToken` parameter to the next + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2beta1::ListSinksResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::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(project_name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+projectName}/sinks', options) + command.response_representation = Google::Apis::LoggingV2beta1::ListSinksResponse::Representation + command.response_class = Google::Apis::LoggingV2beta1::ListSinksResponse + command.params['projectName'] = project_name unless project_name.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 sink. + # @param [String] sink_name + # The resource name of the sink to return. Example: `"projects/my-project-id/ + # sinks/my-sink-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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2beta1::LogSink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::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(sink_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+sinkName}', options) + command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation + command.response_class = Google::Apis::LoggingV2beta1::LogSink + command.params['sinkName'] = sink_name unless sink_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 + + # Creates a sink. + # @param [String] project_name + # The resource name of the project in which to create the sink. Example: `" + # projects/my-project-id"`. The new sink must be provided in the request. + # @param [Google::Apis::LoggingV2beta1::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::LoggingV2beta1::LogSink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::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(project_name, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+projectName}/sinks', options) + command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation + command.request_object = log_sink_object + command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation + command.response_class = Google::Apis::LoggingV2beta1::LogSink + command.params['projectName'] = project_name unless project_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 + + # Creates or updates a sink. + # @param [String] sink_name + # The resource name of the sink to update. Example: `"projects/my-project-id/ + # sinks/my-sink-id"`. The updated sink must be provided in the request and have + # the same name that is specified in `sinkName`. If the sink does not exist, it + # is created. + # @param [Google::Apis::LoggingV2beta1::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::LoggingV2beta1::LogSink] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::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(sink_name, log_sink_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v2beta1/{+sinkName}', options) + command.request_representation = Google::Apis::LoggingV2beta1::LogSink::Representation + command.request_object = log_sink_object + command.response_representation = Google::Apis::LoggingV2beta1::LogSink::Representation + command.response_class = Google::Apis::LoggingV2beta1::LogSink + command.params['sinkName'] = sink_name unless sink_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 a sink. + # @param [String] sink_name + # The resource name of the sink to delete. Example: `"projects/my-project-id/ + # sinks/my-sink-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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::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(sink_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2beta1/{+sinkName}', options) + command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation + command.response_class = Google::Apis::LoggingV2beta1::Empty + command.params['sinkName'] = sink_name unless sink_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 logs-based metrics. + # @param [String] project_name + # Required. The resource name of the project containing the metrics. Example: `" + # projects/my-project-id"`. + # @param [String] page_token + # Optional. If the `pageToken` request parameter is supplied, then the next page + # of results in the set are retrieved. The `pageToken` parameter must be set + # with the value of the `nextPageToken` result parameter from the previous + # request. The value of `projectName` must be the same as in the previous + # request. + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Fewer + # results might be returned. You must check for the `nextPageToken` result to + # determine if additional results are available, which you can retrieve by + # passing the `nextPageToken` value in the `pageToken` parameter to the next + # 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2beta1::ListLogMetricsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::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(project_name, page_token: nil, page_size: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+projectName}/metrics', options) + command.response_representation = Google::Apis::LoggingV2beta1::ListLogMetricsResponse::Representation + command.response_class = Google::Apis::LoggingV2beta1::ListLogMetricsResponse + command.params['projectName'] = project_name unless project_name.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] metric_name + # The resource name of the desired metric. Example: `"projects/my-project-id/ + # metrics/my-metric-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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2beta1::LogMetric] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::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(metric_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/{+metricName}', options) + command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation + command.response_class = Google::Apis::LoggingV2beta1::LogMetric + command.params['metricName'] = metric_name unless metric_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 + + # Creates a logs-based metric. + # @param [String] project_name + # The resource name of the project in which to create the metric. Example: `" + # projects/my-project-id"`. The new metric must be provided in the request. + # @param [Google::Apis::LoggingV2beta1::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::LoggingV2beta1::LogMetric] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::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(project_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/{+projectName}/metrics', options) + command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation + command.request_object = log_metric_object + command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation + command.response_class = Google::Apis::LoggingV2beta1::LogMetric + command.params['projectName'] = project_name unless project_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 + + # Creates or updates a logs-based metric. + # @param [String] metric_name + # The resource name of the metric to update. Example: `"projects/my-project-id/ + # metrics/my-metric-id"`. The updated metric must be provided in the request and + # have the same identifier that is specified in `metricName`. If the metric does + # not exist, it is created. + # @param [Google::Apis::LoggingV2beta1::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::LoggingV2beta1::LogMetric] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::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(metric_name, log_metric_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'v2beta1/{+metricName}', options) + command.request_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation + command.request_object = log_metric_object + command.response_representation = Google::Apis::LoggingV2beta1::LogMetric::Representation + command.response_class = Google::Apis::LoggingV2beta1::LogMetric + command.params['metricName'] = metric_name unless metric_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 a logs-based metric. + # @param [String] metric_name + # The resource name of the metric to delete. Example: `"projects/my-project-id/ + # metrics/my-metric-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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2beta1::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::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(metric_name, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v2beta1/{+metricName}', options) + command.response_representation = Google::Apis::LoggingV2beta1::Empty::Representation + command.response_class = Google::Apis::LoggingV2beta1::Empty + command.params['metricName'] = metric_name unless metric_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 + + # Writes log entries to Cloud Logging. All log entries in Cloud Logging are + # written by this method. + # @param [Google::Apis::LoggingV2beta1::WriteLogEntriesRequest] write_log_entries_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::LoggingV2beta1::WriteLogEntriesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::WriteLogEntriesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def write_entry_log_entries(write_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/entries:write', options) + command.request_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesRequest::Representation + command.request_object = write_log_entries_request_object + command.response_representation = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse::Representation + command.response_class = Google::Apis::LoggingV2beta1::WriteLogEntriesResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists log entries. Use this method to retrieve log entries from Cloud Logging. + # For ways to export log entries, see [Exporting Logs](/logging/docs/export). + # @param [Google::Apis::LoggingV2beta1::ListLogEntriesRequest] list_log_entries_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::LoggingV2beta1::ListLogEntriesResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::ListLogEntriesResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_entry_log_entries(list_log_entries_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v2beta1/entries:list', options) + command.request_representation = Google::Apis::LoggingV2beta1::ListLogEntriesRequest::Representation + command.request_object = list_log_entries_request_object + command.response_representation = Google::Apis::LoggingV2beta1::ListLogEntriesResponse::Representation + command.response_class = Google::Apis::LoggingV2beta1::ListLogEntriesResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Lists monitored resource descriptors that are used by Cloud Logging. + # @param [Fixnum] page_size + # Optional. The maximum number of results to return from this request. Fewer + # results might be returned. You must check for the `nextPageToken` result to + # determine if additional results are available, which you can retrieve by + # passing the `nextPageToken` value in the `pageToken` parameter to the next + # request. + # @param [String] page_token + # Optional. If the `pageToken` request parameter is supplied, then the next page + # of results in the set are retrieved. The `pageToken` parameter must be set + # with the value of the `nextPageToken` result parameter from 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. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be 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_monitored_resource_descriptors(page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v2beta1/monitoredResourceDescriptors', options) + command.response_representation = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse::Representation + command.response_class = Google::Apis::LoggingV2beta1::ListMonitoredResourceDescriptorsResponse + 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/manager_v1beta2/classes.rb b/generated/google/apis/manager_v1beta2/classes.rb index 88ada984f..d39077fd7 100644 --- a/generated/google/apis/manager_v1beta2/classes.rb +++ b/generated/google/apis/manager_v1beta2/classes.rb @@ -49,9 +49,9 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @nat_ip = args[:nat_ip] unless args[:nat_ip].nil? - @type = args[:type] unless args[:type].nil? + @name = args[:name] if args.key?(:name) + @nat_ip = args[:nat_ip] if args.key?(:nat_ip) + @type = args[:type] if args.key?(:type) end end @@ -76,8 +76,8 @@ module Google # Update properties of this object def update!(**args) - @commands = args[:commands] unless args[:commands].nil? - @timeout_ms = args[:timeout_ms] unless args[:timeout_ms].nil? + @commands = args[:commands] if args.key?(:commands) + @timeout_ms = args[:timeout_ms] if args.key?(:timeout_ms) end end @@ -102,8 +102,8 @@ module Google # Update properties of this object def update!(**args) - @ip_protocol = args[:ip_protocol] unless args[:ip_protocol].nil? - @ports = args[:ports] unless args[:ports].nil? + @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol) + @ports = args[:ports] if args.key?(:ports) end end @@ -152,13 +152,13 @@ module Google # Update properties of this object def update!(**args) - @cool_down_period_sec = args[:cool_down_period_sec] unless args[:cool_down_period_sec].nil? - @description = args[:description] unless args[:description].nil? - @max_num_replicas = args[:max_num_replicas] unless args[:max_num_replicas].nil? - @min_num_replicas = args[:min_num_replicas] unless args[:min_num_replicas].nil? - @signal_type = args[:signal_type] unless args[:signal_type].nil? - @target_module = args[:target_module] unless args[:target_module].nil? - @target_utilization = args[:target_utilization] unless args[:target_utilization].nil? + @cool_down_period_sec = args[:cool_down_period_sec] if args.key?(:cool_down_period_sec) + @description = args[:description] if args.key?(:description) + @max_num_replicas = args[:max_num_replicas] if args.key?(:max_num_replicas) + @min_num_replicas = args[:min_num_replicas] if args.key?(:min_num_replicas) + @signal_type = args[:signal_type] if args.key?(:signal_type) + @target_module = args[:target_module] if args.key?(:target_module) + @target_utilization = args[:target_utilization] if args.key?(:target_utilization) end end @@ -177,7 +177,7 @@ module Google # Update properties of this object def update!(**args) - @autoscaling_config_url = args[:autoscaling_config_url] unless args[:autoscaling_config_url].nil? + @autoscaling_config_url = args[:autoscaling_config_url] if args.key?(:autoscaling_config_url) end end @@ -208,8 +208,8 @@ module Google # Update properties of this object def update!(**args) - @details = args[:details] unless args[:details].nil? - @status = args[:status] unless args[:status].nil? + @details = args[:details] if args.key?(:details) + @status = args[:status] if args.key?(:status) end end @@ -260,13 +260,13 @@ module Google # Update properties of this object def update!(**args) - @creation_date = args[:creation_date] unless args[:creation_date].nil? - @description = args[:description] unless args[:description].nil? - @modules = args[:modules] unless args[:modules].nil? - @name = args[:name] unless args[:name].nil? - @overrides = args[:overrides] unless args[:overrides].nil? - @state = args[:state] unless args[:state].nil? - @template_name = args[:template_name] unless args[:template_name].nil? + @creation_date = args[:creation_date] if args.key?(:creation_date) + @description = args[:description] if args.key?(:description) + @modules = args[:modules] if args.key?(:modules) + @name = args[:name] if args.key?(:name) + @overrides = args[:overrides] if args.key?(:overrides) + @state = args[:state] if args.key?(:state) + @template_name = args[:template_name] if args.key?(:template_name) end end @@ -290,8 +290,8 @@ module Google # 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? + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) end end @@ -316,8 +316,8 @@ module Google # Update properties of this object def update!(**args) - @device_name = args[:device_name] unless args[:device_name].nil? - @index = args[:index] unless args[:index].nil? + @device_name = args[:device_name] if args.key?(:device_name) + @index = args[:index] if args.key?(:index) end end @@ -342,8 +342,8 @@ module Google # Update properties of this object def update!(**args) - @hidden = args[:hidden] unless args[:hidden].nil? - @value = args[:value] unless args[:value].nil? + @hidden = args[:hidden] if args.key?(:hidden) + @value = args[:value] if args.key?(:value) end end @@ -369,8 +369,8 @@ module Google # Update properties of this object def update!(**args) - @attachment = args[:attachment] unless args[:attachment].nil? - @source = args[:source] unless args[:source].nil? + @attachment = args[:attachment] if args.key?(:attachment) + @source = args[:source] if args.key?(:source) end end @@ -416,12 +416,12 @@ module Google # Update properties of this object def update!(**args) - @allowed = args[:allowed] unless args[:allowed].nil? - @description = args[:description] unless args[:description].nil? - @network = args[:network] unless args[:network].nil? - @source_ranges = args[:source_ranges] unless args[:source_ranges].nil? - @source_tags = args[:source_tags] unless args[:source_tags].nil? - @target_tags = args[:target_tags] unless args[:target_tags].nil? + @allowed = args[:allowed] if args.key?(:allowed) + @description = args[:description] if args.key?(:description) + @network = args[:network] if args.key?(:network) + @source_ranges = args[:source_ranges] if args.key?(:source_ranges) + @source_tags = args[:source_tags] if args.key?(:source_tags) + @target_tags = args[:target_tags] if args.key?(:target_tags) end end @@ -440,7 +440,7 @@ module Google # Update properties of this object def update!(**args) - @firewall_url = args[:firewall_url] unless args[:firewall_url].nil? + @firewall_url = args[:firewall_url] if args.key?(:firewall_url) end end @@ -494,14 +494,14 @@ module Google # Update properties of this object def update!(**args) - @check_interval_sec = args[:check_interval_sec] unless args[:check_interval_sec].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? - @path = args[:path] unless args[:path].nil? - @port = args[:port] unless args[:port].nil? - @timeout_sec = args[:timeout_sec] unless args[:timeout_sec].nil? - @unhealthy_threshold = args[:unhealthy_threshold] unless args[:unhealthy_threshold].nil? + @check_interval_sec = args[:check_interval_sec] if args.key?(:check_interval_sec) + @description = args[:description] if args.key?(:description) + @healthy_threshold = args[:healthy_threshold] if args.key?(:healthy_threshold) + @host = args[:host] if args.key?(:host) + @path = args[:path] if args.key?(:path) + @port = args[:port] if args.key?(:port) + @timeout_sec = args[:timeout_sec] if args.key?(:timeout_sec) + @unhealthy_threshold = args[:unhealthy_threshold] if args.key?(:unhealthy_threshold) end end @@ -520,7 +520,7 @@ module Google # Update properties of this object def update!(**args) - @health_check_url = args[:health_check_url] unless args[:health_check_url].nil? + @health_check_url = args[:health_check_url] if args.key?(:health_check_url) end end @@ -569,13 +569,13 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @health_checks = args[:health_checks] unless args[:health_checks].nil? - @ip_address = args[:ip_address] unless args[:ip_address].nil? - @ip_protocol = args[:ip_protocol] unless args[:ip_protocol].nil? - @port_range = args[:port_range] unless args[:port_range].nil? - @session_affinity = args[:session_affinity] unless args[:session_affinity].nil? - @target_modules = args[:target_modules] unless args[:target_modules].nil? + @description = args[:description] if args.key?(:description) + @health_checks = args[:health_checks] if args.key?(:health_checks) + @ip_address = args[:ip_address] if args.key?(:ip_address) + @ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol) + @port_range = args[:port_range] if args.key?(:port_range) + @session_affinity = args[:session_affinity] if args.key?(:session_affinity) + @target_modules = args[:target_modules] if args.key?(:target_modules) end end @@ -599,8 +599,8 @@ module Google # Update properties of this object def update!(**args) - @forwarding_rule_url = args[:forwarding_rule_url] unless args[:forwarding_rule_url].nil? - @target_pool_url = args[:target_pool_url] unless args[:target_pool_url].nil? + @forwarding_rule_url = args[:forwarding_rule_url] if args.key?(:forwarding_rule_url) + @target_pool_url = args[:target_pool_url] if args.key?(:target_pool_url) end end @@ -625,8 +625,8 @@ module Google # Update properties of this object def update!(**args) - @finger_print = args[:finger_print] unless args[:finger_print].nil? - @items = args[:items] unless args[:items].nil? + @finger_print = args[:finger_print] if args.key?(:finger_print) + @items = args[:items] if args.key?(:items) end end @@ -651,8 +651,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end @@ -703,13 +703,13 @@ module Google # Update properties of this object def update!(**args) - @autoscaling_module = args[:autoscaling_module] unless args[:autoscaling_module].nil? - @firewall_module = args[:firewall_module] unless args[:firewall_module].nil? - @health_check_module = args[:health_check_module] unless args[:health_check_module].nil? - @lb_module = args[:lb_module] unless args[:lb_module].nil? - @network_module = args[:network_module] unless args[:network_module].nil? - @replica_pool_module = args[:replica_pool_module] unless args[:replica_pool_module].nil? - @type = args[:type] unless args[:type].nil? + @autoscaling_module = args[:autoscaling_module] if args.key?(:autoscaling_module) + @firewall_module = args[:firewall_module] if args.key?(:firewall_module) + @health_check_module = args[:health_check_module] if args.key?(:health_check_module) + @lb_module = args[:lb_module] if args.key?(:lb_module) + @network_module = args[:network_module] if args.key?(:network_module) + @replica_pool_module = args[:replica_pool_module] if args.key?(:replica_pool_module) + @type = args[:type] if args.key?(:type) end end @@ -763,14 +763,14 @@ module Google # Update properties of this object def update!(**args) - @autoscaling_module_status = args[:autoscaling_module_status] unless args[:autoscaling_module_status].nil? - @firewall_module_status = args[:firewall_module_status] unless args[:firewall_module_status].nil? - @health_check_module_status = args[:health_check_module_status] unless args[:health_check_module_status].nil? - @lb_module_status = args[:lb_module_status] unless args[:lb_module_status].nil? - @network_module_status = args[:network_module_status] unless args[:network_module_status].nil? - @replica_pool_module_status = args[:replica_pool_module_status] unless args[:replica_pool_module_status].nil? - @state = args[:state] unless args[:state].nil? - @type = args[:type] unless args[:type].nil? + @autoscaling_module_status = args[:autoscaling_module_status] if args.key?(:autoscaling_module_status) + @firewall_module_status = args[:firewall_module_status] if args.key?(:firewall_module_status) + @health_check_module_status = args[:health_check_module_status] if args.key?(:health_check_module_status) + @lb_module_status = args[:lb_module_status] if args.key?(:lb_module_status) + @network_module_status = args[:network_module_status] if args.key?(:network_module_status) + @replica_pool_module_status = args[:replica_pool_module_status] if args.key?(:replica_pool_module_status) + @state = args[:state] if args.key?(:state) + @type = args[:type] if args.key?(:type) end end @@ -808,10 +808,10 @@ module Google # Update properties of this object def update!(**args) - @access_configs = args[:access_configs] unless args[:access_configs].nil? - @name = args[:name] unless args[:name].nil? - @network = args[:network] unless args[:network].nil? - @network_ip = args[:network_ip] unless args[:network_ip].nil? + @access_configs = args[:access_configs] if args.key?(:access_configs) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @network_ip = args[:network_ip] if args.key?(:network_ip) end end @@ -844,9 +844,9 @@ module Google # Update properties of this object def update!(**args) - @i_pv4_range = args[:i_pv4_range] unless args[:i_pv4_range].nil? - @description = args[:description] unless args[:description].nil? - @gateway_i_pv4 = args[:gateway_i_pv4] unless args[:gateway_i_pv4].nil? + @i_pv4_range = args[:i_pv4_range] if args.key?(:i_pv4_range) + @description = args[:description] if args.key?(:description) + @gateway_i_pv4 = args[:gateway_i_pv4] if args.key?(:gateway_i_pv4) end end @@ -865,7 +865,7 @@ module Google # Update properties of this object def update!(**args) - @network_url = args[:network_url] unless args[:network_url].nil? + @network_url = args[:network_url] if args.key?(:network_url) end end @@ -903,10 +903,10 @@ module Google # Update properties of this object def update!(**args) - @attachment = args[:attachment] unless args[:attachment].nil? - @auto_delete = args[:auto_delete] unless args[:auto_delete].nil? - @boot = args[:boot] unless args[:boot].nil? - @initialize_params = args[:initialize_params] unless args[:initialize_params].nil? + @attachment = args[:attachment] if args.key?(:attachment) + @auto_delete = args[:auto_delete] if args.key?(:auto_delete) + @boot = args[:boot] if args.key?(:boot) + @initialize_params = args[:initialize_params] if args.key?(:initialize_params) end end @@ -936,9 +936,9 @@ module Google # Update properties of this object def update!(**args) - @disk_size_gb = args[:disk_size_gb] unless args[:disk_size_gb].nil? - @disk_type = args[:disk_type] unless args[:disk_type].nil? - @source_image = args[:source_image] unless args[:source_image].nil? + @disk_size_gb = args[:disk_size_gb] if args.key?(:disk_size_gb) + @disk_type = args[:disk_type] if args.key?(:disk_type) + @source_image = args[:source_image] if args.key?(:source_image) end end @@ -963,8 +963,8 @@ module Google # Update properties of this object def update!(**args) - @path = args[:path] unless args[:path].nil? - @value = args[:value] unless args[:value].nil? + @path = args[:path] if args.key?(:path) + @value = args[:value] if args.key?(:value) end end @@ -1006,11 +1006,11 @@ module Google # Update properties of this object def update!(**args) - @env_variables = args[:env_variables] unless args[:env_variables].nil? - @health_checks = args[:health_checks] unless args[:health_checks].nil? - @num_replicas = args[:num_replicas] unless args[:num_replicas].nil? - @replica_pool_params = args[:replica_pool_params] unless args[:replica_pool_params].nil? - @resource_view = args[:resource_view] unless args[:resource_view].nil? + @env_variables = args[:env_variables] if args.key?(:env_variables) + @health_checks = args[:health_checks] if args.key?(:health_checks) + @num_replicas = args[:num_replicas] if args.key?(:num_replicas) + @replica_pool_params = args[:replica_pool_params] if args.key?(:replica_pool_params) + @resource_view = args[:resource_view] if args.key?(:resource_view) end end @@ -1034,8 +1034,8 @@ module Google # Update properties of this object def update!(**args) - @replica_pool_url = args[:replica_pool_url] unless args[:replica_pool_url].nil? - @resource_view_url = args[:resource_view_url] unless args[:resource_view_url].nil? + @replica_pool_url = args[:replica_pool_url] if args.key?(:replica_pool_url) + @resource_view_url = args[:resource_view_url] if args.key?(:resource_view_url) end end @@ -1057,7 +1057,7 @@ module Google # Update properties of this object def update!(**args) - @v1beta1 = args[:v1beta1] unless args[:v1beta1].nil? + @v1beta1 = args[:v1beta1] if args.key?(:v1beta1) end end @@ -1152,20 +1152,20 @@ module Google # Update properties of this object def update!(**args) - @auto_restart = args[:auto_restart] unless args[:auto_restart].nil? - @base_instance_name = args[:base_instance_name] unless args[:base_instance_name].nil? - @can_ip_forward = args[:can_ip_forward] unless args[:can_ip_forward].nil? - @description = args[:description] unless args[:description].nil? - @disks_to_attach = args[:disks_to_attach] unless args[:disks_to_attach].nil? - @disks_to_create = args[:disks_to_create] unless args[:disks_to_create].nil? - @init_action = args[:init_action] unless args[:init_action].nil? - @machine_type = args[:machine_type] unless args[:machine_type].nil? - @metadata = args[:metadata] unless args[:metadata].nil? - @network_interfaces = args[:network_interfaces] unless args[:network_interfaces].nil? - @on_host_maintenance = args[:on_host_maintenance] unless args[:on_host_maintenance].nil? - @service_accounts = args[:service_accounts] unless args[:service_accounts].nil? - @tags = args[:tags] unless args[:tags].nil? - @zone = args[:zone] unless args[:zone].nil? + @auto_restart = args[:auto_restart] if args.key?(:auto_restart) + @base_instance_name = args[:base_instance_name] if args.key?(:base_instance_name) + @can_ip_forward = args[:can_ip_forward] if args.key?(:can_ip_forward) + @description = args[:description] if args.key?(:description) + @disks_to_attach = args[:disks_to_attach] if args.key?(:disks_to_attach) + @disks_to_create = args[:disks_to_create] if args.key?(:disks_to_create) + @init_action = args[:init_action] if args.key?(:init_action) + @machine_type = args[:machine_type] if args.key?(:machine_type) + @metadata = args[:metadata] if args.key?(:metadata) + @network_interfaces = args[:network_interfaces] if args.key?(:network_interfaces) + @on_host_maintenance = args[:on_host_maintenance] if args.key?(:on_host_maintenance) + @service_accounts = args[:service_accounts] if args.key?(:service_accounts) + @tags = args[:tags] if args.key?(:tags) + @zone = args[:zone] if args.key?(:zone) end end @@ -1189,8 +1189,8 @@ module Google # Update properties of this object def update!(**args) - @email = args[:email] unless args[:email].nil? - @scopes = args[:scopes] unless args[:scopes].nil? + @email = args[:email] if args.key?(:email) + @scopes = args[:scopes] if args.key?(:scopes) end end @@ -1215,8 +1215,8 @@ module Google # Update properties of this object def update!(**args) - @finger_print = args[:finger_print] unless args[:finger_print].nil? - @items = args[:items] unless args[:items].nil? + @finger_print = args[:finger_print] if args.key?(:finger_print) + @items = args[:items] if args.key?(:items) end end @@ -1251,10 +1251,10 @@ module Google # Update properties of this object def update!(**args) - @actions = args[:actions] unless args[:actions].nil? - @description = args[:description] unless args[:description].nil? - @modules = args[:modules] unless args[:modules].nil? - @name = args[:name] unless args[:name].nil? + @actions = args[:actions] if args.key?(:actions) + @description = args[:description] if args.key?(:description) + @modules = args[:modules] if args.key?(:modules) + @name = args[:name] if args.key?(:name) end end @@ -1278,8 +1278,8 @@ module Google # 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? + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @resources = args[:resources] if args.key?(:resources) end end end diff --git a/generated/google/apis/mapsengine_v1/classes.rb b/generated/google/apis/mapsengine_v1/classes.rb index 48199a5f0..ff56313bb 100644 --- a/generated/google/apis/mapsengine_v1/classes.rb +++ b/generated/google/apis/mapsengine_v1/classes.rb @@ -75,9 +75,9 @@ module Google # Update properties of this object def update!(**args) - @end = args[:end] unless args[:end].nil? - @precision = args[:precision] unless args[:precision].nil? - @start = args[:start] unless args[:start].nil? + @end = args[:end] if args.key?(:end) + @precision = args[:precision] if args.key?(:precision) + @start = args[:start] if args.key?(:start) end end @@ -175,20 +175,20 @@ module Google # Update properties of this object def update!(**args) - @bbox = args[:bbox] unless args[:bbox].nil? - @creation_time = args[:creation_time] unless args[:creation_time].nil? - @creator_email = args[:creator_email] unless args[:creator_email].nil? - @description = args[:description] unless args[:description].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @last_modified_time = args[:last_modified_time] unless args[:last_modified_time].nil? - @last_modifier_email = args[:last_modifier_email] unless args[:last_modifier_email].nil? - @name = args[:name] unless args[:name].nil? - @project_id = args[:project_id] unless args[:project_id].nil? - @resource = args[:resource] unless args[:resource].nil? - @tags = args[:tags] unless args[:tags].nil? - @type = args[:type] unless args[:type].nil? - @writers_can_edit_permissions = args[:writers_can_edit_permissions] unless args[:writers_can_edit_permissions].nil? + @bbox = args[:bbox] if args.key?(:bbox) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @creator_email = args[:creator_email] if args.key?(:creator_email) + @description = args[:description] if args.key?(:description) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) + @last_modifier_email = args[:last_modifier_email] if args.key?(:last_modifier_email) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) + @resource = args[:resource] if args.key?(:resource) + @tags = args[:tags] if args.key?(:tags) + @type = args[:type] if args.key?(:type) + @writers_can_edit_permissions = args[:writers_can_edit_permissions] if args.key?(:writers_can_edit_permissions) end end @@ -212,8 +212,8 @@ module Google # Update properties of this object def update!(**args) - @assets = args[:assets] unless args[:assets].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @assets = args[:assets] if args.key?(:assets) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -242,9 +242,9 @@ module Google # Update properties of this object def update!(**args) - @color = args[:color] unless args[:color].nil? - @opacity = args[:opacity] unless args[:opacity].nil? - @width = args[:width] unless args[:width].nil? + @color = args[:color] if args.key?(:color) + @opacity = args[:opacity] if args.key?(:opacity) + @width = args[:width] if args.key?(:width) end end @@ -268,8 +268,8 @@ module Google # Update properties of this object def update!(**args) - @color = args[:color] unless args[:color].nil? - @opacity = args[:opacity] unless args[:opacity].nil? + @color = args[:color] if args.key?(:color) + @opacity = args[:opacity] if args.key?(:opacity) end end @@ -288,7 +288,7 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? + @id = args[:id] if args.key?(:id) end end @@ -334,12 +334,12 @@ module Google # Update properties of this object def update!(**args) - @filters = args[:filters] unless args[:filters].nil? - @line_options = args[:line_options] unless args[:line_options].nil? - @name = args[:name] unless args[:name].nil? - @point_options = args[:point_options] unless args[:point_options].nil? - @polygon_options = args[:polygon_options] unless args[:polygon_options].nil? - @zoom_levels = args[:zoom_levels] unless args[:zoom_levels].nil? + @filters = args[:filters] if args.key?(:filters) + @line_options = args[:line_options] if args.key?(:line_options) + @name = args[:name] if args.key?(:name) + @point_options = args[:point_options] if args.key?(:point_options) + @polygon_options = args[:polygon_options] if args.key?(:polygon_options) + @zoom_levels = args[:zoom_levels] if args.key?(:zoom_levels) end end @@ -368,9 +368,9 @@ module Google # Update properties of this object def update!(**args) - @geometry = args[:geometry] unless args[:geometry].nil? - @properties = args[:properties] unless args[:properties].nil? - @type = args[:type] unless args[:type].nil? + @geometry = args[:geometry] if args.key?(:geometry) + @properties = args[:properties] if args.key?(:properties) + @type = args[:type] if args.key?(:type) end end @@ -390,7 +390,7 @@ module Google # Update properties of this object def update!(**args) - @content = args[:content] unless args[:content].nil? + @content = args[:content] if args.key?(:content) end end @@ -414,8 +414,8 @@ module Google # Update properties of this object def update!(**args) - @gx_ids = args[:gx_ids] unless args[:gx_ids].nil? - @primary_keys = args[:primary_keys] unless args[:primary_keys].nil? + @gx_ids = args[:gx_ids] if args.key?(:gx_ids) + @primary_keys = args[:primary_keys] if args.key?(:primary_keys) end end @@ -444,8 +444,8 @@ module Google # Update properties of this object def update!(**args) - @features = args[:features] unless args[:features].nil? - @normalize_geometries = args[:normalize_geometries] unless args[:normalize_geometries].nil? + @features = args[:features] if args.key?(:features) + @normalize_geometries = args[:normalize_geometries] if args.key?(:normalize_geometries) end end @@ -474,8 +474,8 @@ module Google # Update properties of this object def update!(**args) - @features = args[:features] unless args[:features].nil? - @normalize_geometries = args[:normalize_geometries] unless args[:normalize_geometries].nil? + @features = args[:features] if args.key?(:features) + @normalize_geometries = args[:normalize_geometries] if args.key?(:normalize_geometries) end end @@ -516,11 +516,11 @@ module Google # Update properties of this object def update!(**args) - @allowed_queries_per_second = args[:allowed_queries_per_second] unless args[:allowed_queries_per_second].nil? - @features = args[:features] unless args[:features].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @schema = args[:schema] unless args[:schema].nil? - @type = args[:type] unless args[:type].nil? + @allowed_queries_per_second = args[:allowed_queries_per_second] if args.key?(:allowed_queries_per_second) + @features = args[:features] if args.key?(:features) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @schema = args[:schema] if args.key?(:schema) + @type = args[:type] if args.key?(:type) end end @@ -549,9 +549,9 @@ module Google # Update properties of this object def update!(**args) - @filename = args[:filename] unless args[:filename].nil? - @size = args[:size] unless args[:size].nil? - @upload_status = args[:upload_status] unless args[:upload_status].nil? + @filename = args[:filename] if args.key?(:filename) + @size = args[:size] if args.key?(:size) + @upload_status = args[:upload_status] if args.key?(:upload_status) end end @@ -580,9 +580,9 @@ module Google # Update properties of this object def update!(**args) - @column = args[:column] unless args[:column].nil? - @operator = args[:operator] unless args[:operator].nil? - @value = args[:value] unless args[:value].nil? + @column = args[:column] if args.key?(:column) + @operator = args[:operator] if args.key?(:operator) + @value = args[:value] if args.key?(:value) end end @@ -608,8 +608,8 @@ module Google # Update properties of this object def update!(**args) - @geometries = args[:geometries] unless args[:geometries].nil? - @type = args[:type] unless args[:type].nil? + @geometries = args[:geometries] if args.key?(:geometries) + @type = args[:type] if args.key?(:type) end end @@ -634,8 +634,8 @@ module Google # Update properties of this object def update!(**args) - @coordinates = args[:coordinates] unless args[:coordinates].nil? - @type = args[:type] unless args[:type].nil? + @coordinates = args[:coordinates] if args.key?(:coordinates) + @type = args[:type] if args.key?(:type) end end @@ -660,8 +660,8 @@ module Google # Update properties of this object def update!(**args) - @coordinates = args[:coordinates] unless args[:coordinates].nil? - @type = args[:type] unless args[:type].nil? + @coordinates = args[:coordinates] if args.key?(:coordinates) + @type = args[:type] if args.key?(:type) end end @@ -686,8 +686,8 @@ module Google # Update properties of this object def update!(**args) - @coordinates = args[:coordinates] unless args[:coordinates].nil? - @type = args[:type] unless args[:type].nil? + @coordinates = args[:coordinates] if args.key?(:coordinates) + @type = args[:type] if args.key?(:type) end end @@ -712,8 +712,8 @@ module Google # Update properties of this object def update!(**args) - @coordinates = args[:coordinates] unless args[:coordinates].nil? - @type = args[:type] unless args[:type].nil? + @coordinates = args[:coordinates] if args.key?(:coordinates) + @type = args[:type] if args.key?(:type) end end @@ -741,8 +741,8 @@ module Google # Update properties of this object def update!(**args) - @coordinates = args[:coordinates] unless args[:coordinates].nil? - @type = args[:type] unless args[:type].nil? + @coordinates = args[:coordinates] if args.key?(:coordinates) + @type = args[:type] if args.key?(:type) end end @@ -771,8 +771,8 @@ module Google # Update properties of this object def update!(**args) - @coordinates = args[:coordinates] unless args[:coordinates].nil? - @type = args[:type] unless args[:type].nil? + @coordinates = args[:coordinates] if args.key?(:coordinates) + @type = args[:type] if args.key?(:type) end end @@ -801,9 +801,9 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @id = args[:id] unless args[:id].nil? - @name = args[:name] unless args[:name].nil? + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) end end @@ -839,10 +839,10 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @name = args[:name] unless args[:name].nil? - @scaled_shape = args[:scaled_shape] unless args[:scaled_shape].nil? - @scaling_function = args[:scaling_function] unless args[:scaling_function].nil? + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @scaled_shape = args[:scaled_shape] if args.key?(:scaled_shape) + @scaling_function = args[:scaling_function] if args.key?(:scaling_function) end end @@ -866,8 +866,8 @@ module Google # Update properties of this object def update!(**args) - @icons = args[:icons] unless args[:icons].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @icons = args[:icons] if args.key?(:icons) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -917,13 +917,13 @@ module Google # Update properties of this object def update!(**args) - @color = args[:color] unless args[:color].nil? - @column = args[:column] unless args[:column].nil? - @font_style = args[:font_style] unless args[:font_style].nil? - @font_weight = args[:font_weight] unless args[:font_weight].nil? - @opacity = args[:opacity] unless args[:opacity].nil? - @outline = args[:outline] unless args[:outline].nil? - @size = args[:size] unless args[:size].nil? + @color = args[:color] if args.key?(:color) + @column = args[:column] if args.key?(:column) + @font_style = args[:font_style] if args.key?(:font_style) + @font_weight = args[:font_weight] if args.key?(:font_weight) + @opacity = args[:opacity] if args.key?(:opacity) + @outline = args[:outline] if args.key?(:outline) + @size = args[:size] if args.key?(:size) end end @@ -1068,26 +1068,26 @@ module Google # Update properties of this object def update!(**args) - @bbox = args[:bbox] unless args[:bbox].nil? - @creation_time = args[:creation_time] unless args[:creation_time].nil? - @creator_email = args[:creator_email] unless args[:creator_email].nil? - @datasource_type = args[:datasource_type] unless args[:datasource_type].nil? - @datasources = args[:datasources] unless args[:datasources].nil? - @description = args[:description] unless args[:description].nil? - @draft_access_list = args[:draft_access_list] unless args[:draft_access_list].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @last_modified_time = args[:last_modified_time] unless args[:last_modified_time].nil? - @last_modifier_email = args[:last_modifier_email] unless args[:last_modifier_email].nil? - @layer_type = args[:layer_type] unless args[:layer_type].nil? - @name = args[:name] unless args[:name].nil? - @processing_status = args[:processing_status] unless args[:processing_status].nil? - @project_id = args[:project_id] unless args[:project_id].nil? - @published_access_list = args[:published_access_list] unless args[:published_access_list].nil? - @publishing_status = args[:publishing_status] unless args[:publishing_status].nil? - @style = args[:style] unless args[:style].nil? - @tags = args[:tags] unless args[:tags].nil? - @writers_can_edit_permissions = args[:writers_can_edit_permissions] unless args[:writers_can_edit_permissions].nil? + @bbox = args[:bbox] if args.key?(:bbox) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @creator_email = args[:creator_email] if args.key?(:creator_email) + @datasource_type = args[:datasource_type] if args.key?(:datasource_type) + @datasources = args[:datasources] if args.key?(:datasources) + @description = args[:description] if args.key?(:description) + @draft_access_list = args[:draft_access_list] if args.key?(:draft_access_list) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) + @last_modifier_email = args[:last_modifier_email] if args.key?(:last_modifier_email) + @layer_type = args[:layer_type] if args.key?(:layer_type) + @name = args[:name] if args.key?(:name) + @processing_status = args[:processing_status] if args.key?(:processing_status) + @project_id = args[:project_id] if args.key?(:project_id) + @published_access_list = args[:published_access_list] if args.key?(:published_access_list) + @publishing_status = args[:publishing_status] if args.key?(:publishing_status) + @style = args[:style] if args.key?(:style) + @tags = args[:tags] if args.key?(:tags) + @writers_can_edit_permissions = args[:writers_can_edit_permissions] if args.key?(:writers_can_edit_permissions) end end @@ -1114,8 +1114,8 @@ module Google # Update properties of this object def update!(**args) - @layers = args[:layers] unless args[:layers].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @layers = args[:layers] if args.key?(:layers) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1151,10 +1151,10 @@ module Google # Update properties of this object def update!(**args) - @border = args[:border] unless args[:border].nil? - @dash = args[:dash] unless args[:dash].nil? - @label = args[:label] unless args[:label].nil? - @stroke = args[:stroke] unless args[:stroke].nil? + @border = args[:border] if args.key?(:border) + @dash = args[:dash] if args.key?(:dash) + @label = args[:label] if args.key?(:label) + @stroke = args[:stroke] if args.key?(:stroke) end # Stroke of the line. @@ -1183,9 +1183,9 @@ module Google # Update properties of this object def update!(**args) - @color = args[:color] unless args[:color].nil? - @opacity = args[:opacity] unless args[:opacity].nil? - @width = args[:width] unless args[:width].nil? + @color = args[:color] if args.key?(:color) + @opacity = args[:opacity] if args.key?(:opacity) + @width = args[:width] if args.key?(:width) end end end @@ -1320,25 +1320,25 @@ module Google # Update properties of this object def update!(**args) - @bbox = args[:bbox] unless args[:bbox].nil? - @contents = args[:contents] unless args[:contents].nil? - @creation_time = args[:creation_time] unless args[:creation_time].nil? - @creator_email = args[:creator_email] unless args[:creator_email].nil? - @default_viewport = args[:default_viewport] unless args[:default_viewport].nil? - @description = args[:description] unless args[:description].nil? - @draft_access_list = args[:draft_access_list] unless args[:draft_access_list].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @last_modified_time = args[:last_modified_time] unless args[:last_modified_time].nil? - @last_modifier_email = args[:last_modifier_email] unless args[:last_modifier_email].nil? - @name = args[:name] unless args[:name].nil? - @processing_status = args[:processing_status] unless args[:processing_status].nil? - @project_id = args[:project_id] unless args[:project_id].nil? - @published_access_list = args[:published_access_list] unless args[:published_access_list].nil? - @publishing_status = args[:publishing_status] unless args[:publishing_status].nil? - @tags = args[:tags] unless args[:tags].nil? - @versions = args[:versions] unless args[:versions].nil? - @writers_can_edit_permissions = args[:writers_can_edit_permissions] unless args[:writers_can_edit_permissions].nil? + @bbox = args[:bbox] if args.key?(:bbox) + @contents = args[:contents] if args.key?(:contents) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @creator_email = args[:creator_email] if args.key?(:creator_email) + @default_viewport = args[:default_viewport] if args.key?(:default_viewport) + @description = args[:description] if args.key?(:description) + @draft_access_list = args[:draft_access_list] if args.key?(:draft_access_list) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) + @last_modifier_email = args[:last_modifier_email] if args.key?(:last_modifier_email) + @name = args[:name] if args.key?(:name) + @processing_status = args[:processing_status] if args.key?(:processing_status) + @project_id = args[:project_id] if args.key?(:project_id) + @published_access_list = args[:published_access_list] if args.key?(:published_access_list) + @publishing_status = args[:publishing_status] if args.key?(:publishing_status) + @tags = args[:tags] if args.key?(:tags) + @versions = args[:versions] if args.key?(:versions) + @writers_can_edit_permissions = args[:writers_can_edit_permissions] if args.key?(:writers_can_edit_permissions) end end @@ -1392,13 +1392,13 @@ module Google # Update properties of this object def update!(**args) - @contents = args[:contents] unless args[:contents].nil? - @default_viewport = args[:default_viewport] unless args[:default_viewport].nil? - @expandable = args[:expandable] unless args[:expandable].nil? - @key = args[:key] unless args[:key].nil? - @name = args[:name] unless args[:name].nil? - @type = args[:type] unless args[:type].nil? - @visibility = args[:visibility] unless args[:visibility].nil? + @contents = args[:contents] if args.key?(:contents) + @default_viewport = args[:default_viewport] if args.key?(:default_viewport) + @expandable = args[:expandable] if args.key?(:expandable) + @key = args[:key] if args.key?(:key) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) + @visibility = args[:visibility] if args.key?(:visibility) end end @@ -1440,11 +1440,11 @@ module Google # Update properties of this object def update!(**args) - @default_viewport = args[:default_viewport] unless args[:default_viewport].nil? - @kml_url = args[:kml_url] unless args[:kml_url].nil? - @name = args[:name] unless args[:name].nil? - @type = args[:type] unless args[:type].nil? - @visibility = args[:visibility] unless args[:visibility].nil? + @default_viewport = args[:default_viewport] if args.key?(:default_viewport) + @kml_url = args[:kml_url] if args.key?(:kml_url) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) + @visibility = args[:visibility] if args.key?(:visibility) end end @@ -1492,12 +1492,12 @@ module Google # Update properties of this object def update!(**args) - @default_viewport = args[:default_viewport] unless args[:default_viewport].nil? - @id = args[:id] unless args[:id].nil? - @key = args[:key] unless args[:key].nil? - @name = args[:name] unless args[:name].nil? - @type = args[:type] unless args[:type].nil? - @visibility = args[:visibility] unless args[:visibility].nil? + @default_viewport = args[:default_viewport] if args.key?(:default_viewport) + @id = args[:id] if args.key?(:id) + @key = args[:key] if args.key?(:key) + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) + @visibility = args[:visibility] if args.key?(:visibility) end end @@ -1521,8 +1521,8 @@ module Google # Update properties of this object def update!(**args) - @maps = args[:maps] unless args[:maps].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @maps = args[:maps] if args.key?(:maps) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1541,7 +1541,7 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? + @id = args[:id] if args.key?(:id) end end @@ -1565,8 +1565,8 @@ module Google # Update properties of this object def update!(**args) - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @parents = args[:parents] unless args[:parents].nil? + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @parents = args[:parents] if args.key?(:parents) end end @@ -1606,10 +1606,10 @@ module Google # Update properties of this object def update!(**args) - @discoverable = args[:discoverable] unless args[:discoverable].nil? - @id = args[:id] unless args[:id].nil? - @role = args[:role] unless args[:role].nil? - @type = args[:type] unless args[:type].nil? + @discoverable = args[:discoverable] if args.key?(:discoverable) + @id = args[:id] if args.key?(:id) + @role = args[:role] if args.key?(:role) + @type = args[:type] if args.key?(:type) end end @@ -1630,7 +1630,7 @@ module Google # Update properties of this object def update!(**args) - @ids = args[:ids] unless args[:ids].nil? + @ids = args[:ids] if args.key?(:ids) end end @@ -1662,7 +1662,7 @@ module Google # Update properties of this object def update!(**args) - @permissions = args[:permissions] unless args[:permissions].nil? + @permissions = args[:permissions] if args.key?(:permissions) end end @@ -1694,7 +1694,7 @@ module Google # Update properties of this object def update!(**args) - @permissions = args[:permissions] unless args[:permissions].nil? + @permissions = args[:permissions] if args.key?(:permissions) end end @@ -1718,8 +1718,8 @@ module Google # Update properties of this object def update!(**args) - @icon = args[:icon] unless args[:icon].nil? - @label = args[:label] unless args[:label].nil? + @icon = args[:icon] if args.key?(:icon) + @label = args[:label] if args.key?(:label) end end @@ -1748,9 +1748,9 @@ module Google # Update properties of this object def update!(**args) - @fill = args[:fill] unless args[:fill].nil? - @label = args[:label] unless args[:label].nil? - @stroke = args[:stroke] unless args[:stroke].nil? + @fill = args[:fill] if args.key?(:fill) + @label = args[:label] if args.key?(:label) + @stroke = args[:stroke] if args.key?(:stroke) end end @@ -1787,8 +1787,8 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @name = args[:name] unless args[:name].nil? + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) end end @@ -1807,7 +1807,7 @@ module Google # Update properties of this object def update!(**args) - @projects = args[:projects] unless args[:projects].nil? + @projects = args[:projects] if args.key?(:projects) end end @@ -1861,11 +1861,11 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @id = args[:id] unless args[:id].nil? - @layer_type = args[:layer_type] unless args[:layer_type].nil? - @name = args[:name] unless args[:name].nil? - @project_id = args[:project_id] unless args[:project_id].nil? + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @layer_type = args[:layer_type] if args.key?(:layer_type) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) end end @@ -1889,8 +1889,8 @@ module Google # Update properties of this object def update!(**args) - @layers = args[:layers] unless args[:layers].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @layers = args[:layers] if args.key?(:layers) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1934,12 +1934,12 @@ module Google # Update properties of this object def update!(**args) - @contents = args[:contents] unless args[:contents].nil? - @default_viewport = args[:default_viewport] unless args[:default_viewport].nil? - @description = args[:description] unless args[:description].nil? - @id = args[:id] unless args[:id].nil? - @name = args[:name] unless args[:name].nil? - @project_id = args[:project_id] unless args[:project_id].nil? + @contents = args[:contents] if args.key?(:contents) + @default_viewport = args[:default_viewport] if args.key?(:default_viewport) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) end end @@ -1963,8 +1963,8 @@ module Google # Update properties of this object def update!(**args) - @maps = args[:maps] unless args[:maps].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @maps = args[:maps] if args.key?(:maps) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -2087,25 +2087,25 @@ module Google # Update properties of this object def update!(**args) - @acquisition_time = args[:acquisition_time] unless args[:acquisition_time].nil? - @attribution = args[:attribution] unless args[:attribution].nil? - @bbox = args[:bbox] unless args[:bbox].nil? - @creation_time = args[:creation_time] unless args[:creation_time].nil? - @creator_email = args[:creator_email] unless args[:creator_email].nil? - @description = args[:description] unless args[:description].nil? - @draft_access_list = args[:draft_access_list] unless args[:draft_access_list].nil? - @etag = args[:etag] unless args[:etag].nil? - @files = args[:files] unless args[:files].nil? - @id = args[:id] unless args[:id].nil? - @last_modified_time = args[:last_modified_time] unless args[:last_modified_time].nil? - @last_modifier_email = args[:last_modifier_email] unless args[:last_modifier_email].nil? - @mask_type = args[:mask_type] unless args[:mask_type].nil? - @name = args[:name] unless args[:name].nil? - @processing_status = args[:processing_status] unless args[:processing_status].nil? - @project_id = args[:project_id] unless args[:project_id].nil? - @raster_type = args[:raster_type] unless args[:raster_type].nil? - @tags = args[:tags] unless args[:tags].nil? - @writers_can_edit_permissions = args[:writers_can_edit_permissions] unless args[:writers_can_edit_permissions].nil? + @acquisition_time = args[:acquisition_time] if args.key?(:acquisition_time) + @attribution = args[:attribution] if args.key?(:attribution) + @bbox = args[:bbox] if args.key?(:bbox) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @creator_email = args[:creator_email] if args.key?(:creator_email) + @description = args[:description] if args.key?(:description) + @draft_access_list = args[:draft_access_list] if args.key?(:draft_access_list) + @etag = args[:etag] if args.key?(:etag) + @files = args[:files] if args.key?(:files) + @id = args[:id] if args.key?(:id) + @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) + @last_modifier_email = args[:last_modifier_email] if args.key?(:last_modifier_email) + @mask_type = args[:mask_type] if args.key?(:mask_type) + @name = args[:name] if args.key?(:name) + @processing_status = args[:processing_status] if args.key?(:processing_status) + @project_id = args[:project_id] if args.key?(:project_id) + @raster_type = args[:raster_type] if args.key?(:raster_type) + @tags = args[:tags] if args.key?(:tags) + @writers_can_edit_permissions = args[:writers_can_edit_permissions] if args.key?(:writers_can_edit_permissions) end end @@ -2222,23 +2222,23 @@ module Google # Update properties of this object def update!(**args) - @attribution = args[:attribution] unless args[:attribution].nil? - @bbox = args[:bbox] unless args[:bbox].nil? - @creation_time = args[:creation_time] unless args[:creation_time].nil? - @creator_email = args[:creator_email] unless args[:creator_email].nil? - @description = args[:description] unless args[:description].nil? - @draft_access_list = args[:draft_access_list] unless args[:draft_access_list].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @last_modified_time = args[:last_modified_time] unless args[:last_modified_time].nil? - @last_modifier_email = args[:last_modifier_email] unless args[:last_modifier_email].nil? - @mosaic = args[:mosaic] unless args[:mosaic].nil? - @name = args[:name] unless args[:name].nil? - @processing_status = args[:processing_status] unless args[:processing_status].nil? - @project_id = args[:project_id] unless args[:project_id].nil? - @raster_type = args[:raster_type] unless args[:raster_type].nil? - @tags = args[:tags] unless args[:tags].nil? - @writers_can_edit_permissions = args[:writers_can_edit_permissions] unless args[:writers_can_edit_permissions].nil? + @attribution = args[:attribution] if args.key?(:attribution) + @bbox = args[:bbox] if args.key?(:bbox) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @creator_email = args[:creator_email] if args.key?(:creator_email) + @description = args[:description] if args.key?(:description) + @draft_access_list = args[:draft_access_list] if args.key?(:draft_access_list) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) + @last_modifier_email = args[:last_modifier_email] if args.key?(:last_modifier_email) + @mosaic = args[:mosaic] if args.key?(:mosaic) + @name = args[:name] if args.key?(:name) + @processing_status = args[:processing_status] if args.key?(:processing_status) + @project_id = args[:project_id] if args.key?(:project_id) + @raster_type = args[:raster_type] if args.key?(:raster_type) + @tags = args[:tags] if args.key?(:tags) + @writers_can_edit_permissions = args[:writers_can_edit_permissions] if args.key?(:writers_can_edit_permissions) end end @@ -2266,8 +2266,8 @@ module Google # Update properties of this object def update!(**args) - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @raster_collections = args[:raster_collections] unless args[:raster_collections].nil? + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @raster_collections = args[:raster_collections] if args.key?(:raster_collections) end end @@ -2330,15 +2330,15 @@ module Google # Update properties of this object def update!(**args) - @bbox = args[:bbox] unless args[:bbox].nil? - @creation_time = args[:creation_time] unless args[:creation_time].nil? - @description = args[:description] unless args[:description].nil? - @id = args[:id] unless args[:id].nil? - @last_modified_time = args[:last_modified_time] unless args[:last_modified_time].nil? - @name = args[:name] unless args[:name].nil? - @project_id = args[:project_id] unless args[:project_id].nil? - @raster_type = args[:raster_type] unless args[:raster_type].nil? - @tags = args[:tags] unless args[:tags].nil? + @bbox = args[:bbox] if args.key?(:bbox) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @description = args[:description] if args.key?(:description) + @id = args[:id] if args.key?(:id) + @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) + @raster_type = args[:raster_type] if args.key?(:raster_type) + @tags = args[:tags] if args.key?(:tags) end end @@ -2357,7 +2357,7 @@ module Google # Update properties of this object def update!(**args) - @ids = args[:ids] unless args[:ids].nil? + @ids = args[:ids] if args.key?(:ids) end end @@ -2389,7 +2389,7 @@ module Google # Update properties of this object def update!(**args) - @ids = args[:ids] unless args[:ids].nil? + @ids = args[:ids] if args.key?(:ids) end end @@ -2426,8 +2426,8 @@ module Google # Update properties of this object def update!(**args) - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @rasters = args[:rasters] unless args[:rasters].nil? + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @rasters = args[:rasters] if args.key?(:rasters) end end @@ -2451,8 +2451,8 @@ module Google # Update properties of this object def update!(**args) - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @rasters = args[:rasters] unless args[:rasters].nil? + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @rasters = args[:rasters] if args.key?(:rasters) end end @@ -2481,9 +2481,9 @@ module Google # Update properties of this object def update!(**args) - @border = args[:border] unless args[:border].nil? - @fill = args[:fill] unless args[:fill].nil? - @shape = args[:shape] unless args[:shape].nil? + @border = args[:border] if args.key?(:border) + @fill = args[:fill] if args.key?(:fill) + @shape = args[:shape] if args.key?(:shape) end end @@ -2519,10 +2519,10 @@ module Google # Update properties of this object def update!(**args) - @column = args[:column] unless args[:column].nil? - @scaling_type = args[:scaling_type] unless args[:scaling_type].nil? - @size_range = args[:size_range] unless args[:size_range].nil? - @value_range = args[:value_range] unless args[:value_range].nil? + @column = args[:column] if args.key?(:column) + @scaling_type = args[:scaling_type] if args.key?(:scaling_type) + @size_range = args[:size_range] if args.key?(:size_range) + @value_range = args[:value_range] if args.key?(:value_range) end end @@ -2556,9 +2556,9 @@ module Google # Update properties of this object def update!(**args) - @columns = args[:columns] unless args[:columns].nil? - @primary_geometry = args[:primary_geometry] unless args[:primary_geometry].nil? - @primary_key = args[:primary_key] unless args[:primary_key].nil? + @columns = args[:columns] if args.key?(:columns) + @primary_geometry = args[:primary_geometry] if args.key?(:primary_geometry) + @primary_key = args[:primary_key] if args.key?(:primary_key) end end @@ -2582,8 +2582,8 @@ module Google # Update properties of this object def update!(**args) - @max = args[:max] unless args[:max].nil? - @min = args[:min] unless args[:min].nil? + @max = args[:max] if args.key?(:max) + @min = args[:min] if args.key?(:min) end end @@ -2713,24 +2713,24 @@ module Google # Update properties of this object def update!(**args) - @bbox = args[:bbox] unless args[:bbox].nil? - @creation_time = args[:creation_time] unless args[:creation_time].nil? - @creator_email = args[:creator_email] unless args[:creator_email].nil? - @description = args[:description] unless args[:description].nil? - @draft_access_list = args[:draft_access_list] unless args[:draft_access_list].nil? - @etag = args[:etag] unless args[:etag].nil? - @files = args[:files] unless args[:files].nil? - @id = args[:id] unless args[:id].nil? - @last_modified_time = args[:last_modified_time] unless args[:last_modified_time].nil? - @last_modifier_email = args[:last_modifier_email] unless args[:last_modifier_email].nil? - @name = args[:name] unless args[:name].nil? - @processing_status = args[:processing_status] unless args[:processing_status].nil? - @project_id = args[:project_id] unless args[:project_id].nil? - @published_access_list = args[:published_access_list] unless args[:published_access_list].nil? - @schema = args[:schema] unless args[:schema].nil? - @source_encoding = args[:source_encoding] unless args[:source_encoding].nil? - @tags = args[:tags] unless args[:tags].nil? - @writers_can_edit_permissions = args[:writers_can_edit_permissions] unless args[:writers_can_edit_permissions].nil? + @bbox = args[:bbox] if args.key?(:bbox) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @creator_email = args[:creator_email] if args.key?(:creator_email) + @description = args[:description] if args.key?(:description) + @draft_access_list = args[:draft_access_list] if args.key?(:draft_access_list) + @etag = args[:etag] if args.key?(:etag) + @files = args[:files] if args.key?(:files) + @id = args[:id] if args.key?(:id) + @last_modified_time = args[:last_modified_time] if args.key?(:last_modified_time) + @last_modifier_email = args[:last_modifier_email] if args.key?(:last_modifier_email) + @name = args[:name] if args.key?(:name) + @processing_status = args[:processing_status] if args.key?(:processing_status) + @project_id = args[:project_id] if args.key?(:project_id) + @published_access_list = args[:published_access_list] if args.key?(:published_access_list) + @schema = args[:schema] if args.key?(:schema) + @source_encoding = args[:source_encoding] if args.key?(:source_encoding) + @tags = args[:tags] if args.key?(:tags) + @writers_can_edit_permissions = args[:writers_can_edit_permissions] if args.key?(:writers_can_edit_permissions) end end @@ -2754,8 +2754,8 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @type = args[:type] unless args[:type].nil? + @name = args[:name] if args.key?(:name) + @type = args[:type] if args.key?(:type) end end @@ -2782,8 +2782,8 @@ module Google # Update properties of this object def update!(**args) - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @tables = args[:tables] unless args[:tables].nil? + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @tables = args[:tables] if args.key?(:tables) end end @@ -2808,8 +2808,8 @@ module Google # Update properties of this object def update!(**args) - @max = args[:max] unless args[:max].nil? - @min = args[:min] unless args[:min].nil? + @max = args[:max] if args.key?(:max) + @min = args[:min] if args.key?(:min) end end @@ -2838,9 +2838,9 @@ module Google # Update properties of this object def update!(**args) - @display_rules = args[:display_rules] unless args[:display_rules].nil? - @feature_info = args[:feature_info] unless args[:feature_info].nil? - @type = args[:type] unless args[:type].nil? + @display_rules = args[:display_rules] if args.key?(:display_rules) + @feature_info = args[:feature_info] if args.key?(:feature_info) + @type = args[:type] if args.key?(:type) end end @@ -2864,8 +2864,8 @@ module Google # Update properties of this object def update!(**args) - @max = args[:max] unless args[:max].nil? - @min = args[:min] unless args[:min].nil? + @max = args[:max] if args.key?(:max) + @min = args[:min] if args.key?(:min) end end end diff --git a/generated/google/apis/mirror_v1/classes.rb b/generated/google/apis/mirror_v1/classes.rb index d7da43c60..4711a5488 100644 --- a/generated/google/apis/mirror_v1/classes.rb +++ b/generated/google/apis/mirror_v1/classes.rb @@ -52,10 +52,10 @@ module Google # Update properties of this object def update!(**args) - @auth_tokens = args[:auth_tokens] unless args[:auth_tokens].nil? - @features = args[:features] unless args[:features].nil? - @password = args[:password] unless args[:password].nil? - @user_data = args[:user_data] unless args[:user_data].nil? + @auth_tokens = args[:auth_tokens] if args.key?(:auth_tokens) + @features = args[:features] if args.key?(:features) + @password = args[:password] if args.key?(:password) + @user_data = args[:user_data] if args.key?(:user_data) end end @@ -93,10 +93,10 @@ module Google # Update properties of this object def update!(**args) - @content_type = args[:content_type] unless args[:content_type].nil? - @content_url = args[:content_url] unless args[:content_url].nil? - @id = args[:id] unless args[:id].nil? - @is_processing_content = args[:is_processing_content] unless args[:is_processing_content].nil? + @content_type = args[:content_type] if args.key?(:content_type) + @content_url = args[:content_url] if args.key?(:content_url) + @id = args[:id] if args.key?(:id) + @is_processing_content = args[:is_processing_content] if args.key?(:is_processing_content) end end @@ -121,8 +121,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -146,8 +146,8 @@ module Google # Update properties of this object def update!(**args) - @auth_token = args[:auth_token] unless args[:auth_token].nil? - @type = args[:type] unless args[:type].nil? + @auth_token = args[:auth_token] if args.key?(:auth_token) + @type = args[:type] if args.key?(:type) end end @@ -170,7 +170,7 @@ module Google # Update properties of this object def update!(**args) - @type = args[:type] unless args[:type].nil? + @type = args[:type] if args.key?(:type) end end @@ -261,18 +261,18 @@ module Google # Update properties of this object def update!(**args) - @accept_commands = args[:accept_commands] unless args[:accept_commands].nil? - @accept_types = args[:accept_types] unless args[:accept_types].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @id = args[:id] unless args[:id].nil? - @image_urls = args[:image_urls] unless args[:image_urls].nil? - @kind = args[:kind] unless args[:kind].nil? - @phone_number = args[:phone_number] unless args[:phone_number].nil? - @priority = args[:priority] unless args[:priority].nil? - @sharing_features = args[:sharing_features] unless args[:sharing_features].nil? - @source = args[:source] unless args[:source].nil? - @speakable_name = args[:speakable_name] unless args[:speakable_name].nil? - @type = args[:type] unless args[:type].nil? + @accept_commands = args[:accept_commands] if args.key?(:accept_commands) + @accept_types = args[:accept_types] if args.key?(:accept_types) + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @image_urls = args[:image_urls] if args.key?(:image_urls) + @kind = args[:kind] if args.key?(:kind) + @phone_number = args[:phone_number] if args.key?(:phone_number) + @priority = args[:priority] if args.key?(:priority) + @sharing_features = args[:sharing_features] if args.key?(:sharing_features) + @source = args[:source] if args.key?(:source) + @speakable_name = args[:speakable_name] if args.key?(:speakable_name) + @type = args[:type] if args.key?(:type) end end @@ -297,8 +297,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -353,14 +353,14 @@ module Google # Update properties of this object def update!(**args) - @accuracy = args[:accuracy] unless args[:accuracy].nil? - @address = args[:address] unless args[:address].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @latitude = args[:latitude] unless args[:latitude].nil? - @longitude = args[:longitude] unless args[:longitude].nil? - @timestamp = args[:timestamp] unless args[:timestamp].nil? + @accuracy = args[:accuracy] if args.key?(:accuracy) + @address = args[:address] if args.key?(:address) + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) + @timestamp = args[:timestamp] if args.key?(:timestamp) end end @@ -385,8 +385,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -474,12 +474,12 @@ module Google # Update properties of this object def update!(**args) - @action = args[:action] unless args[:action].nil? - @contextual_command = args[:contextual_command] unless args[:contextual_command].nil? - @id = args[:id] unless args[:id].nil? - @payload = args[:payload] unless args[:payload].nil? - @remove_when_selected = args[:remove_when_selected] unless args[:remove_when_selected].nil? - @values = args[:values] unless args[:values].nil? + @action = args[:action] if args.key?(:action) + @contextual_command = args[:contextual_command] if args.key?(:contextual_command) + @id = args[:id] if args.key?(:id) + @payload = args[:payload] if args.key?(:payload) + @remove_when_selected = args[:remove_when_selected] if args.key?(:remove_when_selected) + @values = args[:values] if args.key?(:values) end end @@ -515,9 +515,9 @@ module Google # Update properties of this object def update!(**args) - @display_name = args[:display_name] unless args[:display_name].nil? - @icon_url = args[:icon_url] unless args[:icon_url].nil? - @state = args[:state] unless args[:state].nil? + @display_name = args[:display_name] if args.key?(:display_name) + @icon_url = args[:icon_url] if args.key?(:icon_url) + @state = args[:state] if args.key?(:state) end end @@ -562,12 +562,12 @@ module Google # Update properties of this object def update!(**args) - @collection = args[:collection] unless args[:collection].nil? - @item_id = args[:item_id] unless args[:item_id].nil? - @operation = args[:operation] unless args[:operation].nil? - @user_actions = args[:user_actions] unless args[:user_actions].nil? - @user_token = args[:user_token] unless args[:user_token].nil? - @verify_token = args[:verify_token] unless args[:verify_token].nil? + @collection = args[:collection] if args.key?(:collection) + @item_id = args[:item_id] if args.key?(:item_id) + @operation = args[:operation] if args.key?(:operation) + @user_actions = args[:user_actions] if args.key?(:user_actions) + @user_token = args[:user_token] if args.key?(:user_token) + @verify_token = args[:verify_token] if args.key?(:verify_token) end end @@ -593,8 +593,8 @@ module Google # Update properties of this object def update!(**args) - @delivery_time = args[:delivery_time] unless args[:delivery_time].nil? - @level = args[:level] unless args[:level].nil? + @delivery_time = args[:delivery_time] if args.key?(:delivery_time) + @level = args[:level] if args.key?(:level) end end @@ -627,9 +627,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @value = args[:value] unless args[:value].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @value = args[:value] if args.key?(:value) end end @@ -701,15 +701,15 @@ module Google # Update properties of this object def update!(**args) - @callback_url = args[:callback_url] unless args[:callback_url].nil? - @collection = args[:collection] unless args[:collection].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @notification = args[:notification] unless args[:notification].nil? - @operation = args[:operation] unless args[:operation].nil? - @updated = args[:updated] unless args[:updated].nil? - @user_token = args[:user_token] unless args[:user_token].nil? - @verify_token = args[:verify_token] unless args[:verify_token].nil? + @callback_url = args[:callback_url] if args.key?(:callback_url) + @collection = args[:collection] if args.key?(:collection) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @notification = args[:notification] if args.key?(:notification) + @operation = args[:operation] if args.key?(:operation) + @updated = args[:updated] if args.key?(:updated) + @user_token = args[:user_token] if args.key?(:user_token) + @verify_token = args[:verify_token] if args.key?(:verify_token) end end @@ -734,8 +734,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -945,32 +945,32 @@ module Google # Update properties of this object def update!(**args) - @attachments = args[:attachments] unless args[:attachments].nil? - @bundle_id = args[:bundle_id] unless args[:bundle_id].nil? - @canonical_url = args[:canonical_url] unless args[:canonical_url].nil? - @created = args[:created] unless args[:created].nil? - @creator = args[:creator] unless args[:creator].nil? - @display_time = args[:display_time] unless args[:display_time].nil? - @etag = args[:etag] unless args[:etag].nil? - @html = args[:html] unless args[:html].nil? - @id = args[:id] unless args[:id].nil? - @in_reply_to = args[:in_reply_to] unless args[:in_reply_to].nil? - @is_bundle_cover = args[:is_bundle_cover] unless args[:is_bundle_cover].nil? - @is_deleted = args[:is_deleted] unless args[:is_deleted].nil? - @is_pinned = args[:is_pinned] unless args[:is_pinned].nil? - @kind = args[:kind] unless args[:kind].nil? - @location = args[:location] unless args[:location].nil? - @menu_items = args[:menu_items] unless args[:menu_items].nil? - @notification = args[:notification] unless args[:notification].nil? - @pin_score = args[:pin_score] unless args[:pin_score].nil? - @recipients = args[:recipients] unless args[:recipients].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @source_item_id = args[:source_item_id] unless args[:source_item_id].nil? - @speakable_text = args[:speakable_text] unless args[:speakable_text].nil? - @speakable_type = args[:speakable_type] unless args[:speakable_type].nil? - @text = args[:text] unless args[:text].nil? - @title = args[:title] unless args[:title].nil? - @updated = args[:updated] unless args[:updated].nil? + @attachments = args[:attachments] if args.key?(:attachments) + @bundle_id = args[:bundle_id] if args.key?(:bundle_id) + @canonical_url = args[:canonical_url] if args.key?(:canonical_url) + @created = args[:created] if args.key?(:created) + @creator = args[:creator] if args.key?(:creator) + @display_time = args[:display_time] if args.key?(:display_time) + @etag = args[:etag] if args.key?(:etag) + @html = args[:html] if args.key?(:html) + @id = args[:id] if args.key?(:id) + @in_reply_to = args[:in_reply_to] if args.key?(:in_reply_to) + @is_bundle_cover = args[:is_bundle_cover] if args.key?(:is_bundle_cover) + @is_deleted = args[:is_deleted] if args.key?(:is_deleted) + @is_pinned = args[:is_pinned] if args.key?(:is_pinned) + @kind = args[:kind] if args.key?(:kind) + @location = args[:location] if args.key?(:location) + @menu_items = args[:menu_items] if args.key?(:menu_items) + @notification = args[:notification] if args.key?(:notification) + @pin_score = args[:pin_score] if args.key?(:pin_score) + @recipients = args[:recipients] if args.key?(:recipients) + @self_link = args[:self_link] if args.key?(:self_link) + @source_item_id = args[:source_item_id] if args.key?(:source_item_id) + @speakable_text = args[:speakable_text] if args.key?(:speakable_text) + @speakable_type = args[:speakable_type] if args.key?(:speakable_type) + @text = args[:text] if args.key?(:text) + @title = args[:title] if args.key?(:title) + @updated = args[:updated] if args.key?(:updated) end end @@ -1001,9 +1001,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1038,8 +1038,8 @@ module Google # Update properties of this object def update!(**args) - @payload = args[:payload] unless args[:payload].nil? - @type = args[:type] unless args[:type].nil? + @payload = args[:payload] if args.key?(:payload) + @type = args[:type] if args.key?(:type) end end @@ -1063,8 +1063,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end diff --git a/generated/google/apis/oauth2_v2.rb b/generated/google/apis/oauth2_v2.rb index 4ecf26699..986435d32 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 = '20151215' + REVISION = '20160122' # 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/classes.rb b/generated/google/apis/oauth2_v2/classes.rb index 4d2f3847a..f90172b68 100644 --- a/generated/google/apis/oauth2_v2/classes.rb +++ b/generated/google/apis/oauth2_v2/classes.rb @@ -37,7 +37,7 @@ module Google # Update properties of this object def update!(**args) - @keys = args[:keys] unless args[:keys].nil? + @keys = args[:keys] if args.key?(:keys) end # @@ -80,12 +80,12 @@ module Google # Update properties of this object def update!(**args) - @alg = args[:alg] unless args[:alg].nil? - @e = args[:e] unless args[:e].nil? - @kid = args[:kid] unless args[:kid].nil? - @kty = args[:kty] unless args[:kty].nil? - @n = args[:n] unless args[:n].nil? - @use = args[:use] unless args[:use].nil? + @alg = args[:alg] if args.key?(:alg) + @e = args[:e] if args.key?(:e) + @kid = args[:kid] if args.key?(:kid) + @kty = args[:kty] if args.key?(:kty) + @n = args[:n] if args.key?(:n) + @use = args[:use] if args.key?(:use) end end end @@ -148,15 +148,15 @@ module Google # Update properties of this object def update!(**args) - @access_type = args[:access_type] unless args[:access_type].nil? - @audience = args[:audience] unless args[:audience].nil? - @email = args[:email] unless args[:email].nil? - @expires_in = args[:expires_in] unless args[:expires_in].nil? - @issued_to = args[:issued_to] unless args[:issued_to].nil? - @scope = args[:scope] unless args[:scope].nil? - @token_handle = args[:token_handle] unless args[:token_handle].nil? - @user_id = args[:user_id] unless args[:user_id].nil? - @verified_email = args[:verified_email] unless args[:verified_email].nil? + @access_type = args[:access_type] if args.key?(:access_type) + @audience = args[:audience] if args.key?(:audience) + @email = args[:email] if args.key?(:email) + @expires_in = args[:expires_in] if args.key?(:expires_in) + @issued_to = args[:issued_to] if args.key?(:issued_to) + @scope = args[:scope] if args.key?(:scope) + @token_handle = args[:token_handle] if args.key?(:token_handle) + @user_id = args[:user_id] if args.key?(:user_id) + @verified_email = args[:verified_email] if args.key?(:verified_email) end end @@ -227,17 +227,17 @@ module Google # Update properties of this object def update!(**args) - @email = args[:email] unless args[:email].nil? - @family_name = args[:family_name] unless args[:family_name].nil? - @gender = args[:gender] unless args[:gender].nil? - @given_name = args[:given_name] unless args[:given_name].nil? - @hd = args[:hd] unless args[:hd].nil? - @id = args[:id] unless args[:id].nil? - @link = args[:link] unless args[:link].nil? - @locale = args[:locale] unless args[:locale].nil? - @name = args[:name] unless args[:name].nil? - @picture = args[:picture] unless args[:picture].nil? - @verified_email = args[:verified_email] unless args[:verified_email].nil? + @email = args[:email] if args.key?(:email) + @family_name = args[:family_name] if args.key?(:family_name) + @gender = args[:gender] if args.key?(:gender) + @given_name = args[:given_name] if args.key?(:given_name) + @hd = args[:hd] if args.key?(:hd) + @id = args[:id] if args.key?(:id) + @link = args[:link] if args.key?(:link) + @locale = args[:locale] if args.key?(:locale) + @name = args[:name] if args.key?(:name) + @picture = args[:picture] if args.key?(:picture) + @verified_email = args[:verified_email] if args.key?(:verified_email) end end end diff --git a/generated/google/apis/pagespeedonline_v2/classes.rb b/generated/google/apis/pagespeedonline_v2/classes.rb index 21f5cb81d..b9d52a7ca 100644 --- a/generated/google/apis/pagespeedonline_v2/classes.rb +++ b/generated/google/apis/pagespeedonline_v2/classes.rb @@ -45,8 +45,8 @@ module Google # Update properties of this object def update!(**args) - @args = args[:args] unless args[:args].nil? - @format = args[:format] unless args[:format].nil? + @args = args[:args] if args.key?(:args) + @format = args[:format] if args.key?(:format) end # @@ -89,11 +89,11 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @rects = args[:rects] unless args[:rects].nil? - @secondary_rects = args[:secondary_rects] unless args[:secondary_rects].nil? - @type = args[:type] unless args[:type].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @rects = args[:rects] if args.key?(:rects) + @secondary_rects = args[:secondary_rects] if args.key?(:secondary_rects) + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) end # @@ -126,10 +126,10 @@ module Google # Update properties of this object def update!(**args) - @height = args[:height] unless args[:height].nil? - @left = args[:left] unless args[:left].nil? - @top = args[:top] unless args[:top].nil? - @width = args[:width] unless args[:width].nil? + @height = args[:height] if args.key?(:height) + @left = args[:left] if args.key?(:left) + @top = args[:top] if args.key?(:top) + @width = args[:width] if args.key?(:width) end end @@ -163,10 +163,10 @@ module Google # Update properties of this object def update!(**args) - @height = args[:height] unless args[:height].nil? - @left = args[:left] unless args[:left].nil? - @top = args[:top] unless args[:top].nil? - @width = args[:width] unless args[:width].nil? + @height = args[:height] if args.key?(:height) + @left = args[:left] if args.key?(:left) + @top = args[:top] if args.key?(:top) + @width = args[:width] if args.key?(:width) end end end @@ -213,12 +213,12 @@ module Google # Update properties of this object def update!(**args) - @data = args[:data] unless args[:data].nil? - @height = args[:height] unless args[:height].nil? - @key = args[:key] unless args[:key].nil? - @mime_type = args[:mime_type] unless args[:mime_type].nil? - @page_rect = args[:page_rect] unless args[:page_rect].nil? - @width = args[:width] unless args[:width].nil? + @data = args[:data] if args.key?(:data) + @height = args[:height] if args.key?(:height) + @key = args[:key] if args.key?(:key) + @mime_type = args[:mime_type] if args.key?(:mime_type) + @page_rect = args[:page_rect] if args.key?(:page_rect) + @width = args[:width] if args.key?(:width) end # The region of the page that is captured by this image, with dimensions @@ -252,10 +252,10 @@ module Google # Update properties of this object def update!(**args) - @height = args[:height] unless args[:height].nil? - @left = args[:left] unless args[:left].nil? - @top = args[:top] unless args[:top].nil? - @width = args[:width] unless args[:width].nil? + @height = args[:height] if args.key?(:height) + @left = args[:left] if args.key?(:left) + @top = args[:top] if args.key?(:top) + @width = args[:width] if args.key?(:width) end end end @@ -325,16 +325,16 @@ module Google # Update properties of this object def update!(**args) - @formatted_results = args[:formatted_results] unless args[:formatted_results].nil? - @id = args[:id] unless args[:id].nil? - @invalid_rules = args[:invalid_rules] unless args[:invalid_rules].nil? - @kind = args[:kind] unless args[:kind].nil? - @page_stats = args[:page_stats] unless args[:page_stats].nil? - @response_code = args[:response_code] unless args[:response_code].nil? - @rule_groups = args[:rule_groups] unless args[:rule_groups].nil? - @screenshot = args[:screenshot] unless args[:screenshot].nil? - @title = args[:title] unless args[:title].nil? - @version = args[:version] unless args[:version].nil? + @formatted_results = args[:formatted_results] if args.key?(:formatted_results) + @id = args[:id] if args.key?(:id) + @invalid_rules = args[:invalid_rules] if args.key?(:invalid_rules) + @kind = args[:kind] if args.key?(:kind) + @page_stats = args[:page_stats] if args.key?(:page_stats) + @response_code = args[:response_code] if args.key?(:response_code) + @rule_groups = args[:rule_groups] if args.key?(:rule_groups) + @screenshot = args[:screenshot] if args.key?(:screenshot) + @title = args[:title] if args.key?(:title) + @version = args[:version] if args.key?(:version) end # Localized PageSpeed results. Contains a ruleResults entry for each PageSpeed @@ -359,8 +359,8 @@ module Google # Update properties of this object def update!(**args) - @locale = args[:locale] unless args[:locale].nil? - @rule_results = args[:rule_results] unless args[:rule_results].nil? + @locale = args[:locale] if args.key?(:locale) + @rule_results = args[:rule_results] if args.key?(:rule_results) end # The enum-like identifier for this rule. For instance "EnableKeepAlive" or " @@ -408,11 +408,11 @@ module Google # Update properties of this object def update!(**args) - @groups = args[:groups] unless args[:groups].nil? - @localized_rule_name = args[:localized_rule_name] unless args[:localized_rule_name].nil? - @rule_impact = args[:rule_impact] unless args[:rule_impact].nil? - @summary = args[:summary] unless args[:summary].nil? - @url_blocks = args[:url_blocks] unless args[:url_blocks].nil? + @groups = args[:groups] if args.key?(:groups) + @localized_rule_name = args[:localized_rule_name] if args.key?(:localized_rule_name) + @rule_impact = args[:rule_impact] if args.key?(:rule_impact) + @summary = args[:summary] if args.key?(:summary) + @url_blocks = args[:url_blocks] if args.key?(:url_blocks) end # @@ -435,8 +435,8 @@ module Google # Update properties of this object def update!(**args) - @header = args[:header] unless args[:header].nil? - @urls = args[:urls] unless args[:urls].nil? + @header = args[:header] if args.key?(:header) + @urls = args[:urls] if args.key?(:urls) end # @@ -460,8 +460,8 @@ module Google # Update properties of this object def update!(**args) - @details = args[:details] unless args[:details].nil? - @result = args[:result] unless args[:result].nil? + @details = args[:details] if args.key?(:details) + @result = args[:result] if args.key?(:result) end end end @@ -546,19 +546,19 @@ module Google # Update properties of this object def update!(**args) - @css_response_bytes = args[:css_response_bytes] unless args[:css_response_bytes].nil? - @flash_response_bytes = args[:flash_response_bytes] unless args[:flash_response_bytes].nil? - @html_response_bytes = args[:html_response_bytes] unless args[:html_response_bytes].nil? - @image_response_bytes = args[:image_response_bytes] unless args[:image_response_bytes].nil? - @javascript_response_bytes = args[:javascript_response_bytes] unless args[:javascript_response_bytes].nil? - @number_css_resources = args[:number_css_resources] unless args[:number_css_resources].nil? - @number_hosts = args[:number_hosts] unless args[:number_hosts].nil? - @number_js_resources = args[:number_js_resources] unless args[:number_js_resources].nil? - @number_resources = args[:number_resources] unless args[:number_resources].nil? - @number_static_resources = args[:number_static_resources] unless args[:number_static_resources].nil? - @other_response_bytes = args[:other_response_bytes] unless args[:other_response_bytes].nil? - @text_response_bytes = args[:text_response_bytes] unless args[:text_response_bytes].nil? - @total_request_bytes = args[:total_request_bytes] unless args[:total_request_bytes].nil? + @css_response_bytes = args[:css_response_bytes] if args.key?(:css_response_bytes) + @flash_response_bytes = args[:flash_response_bytes] if args.key?(:flash_response_bytes) + @html_response_bytes = args[:html_response_bytes] if args.key?(:html_response_bytes) + @image_response_bytes = args[:image_response_bytes] if args.key?(:image_response_bytes) + @javascript_response_bytes = args[:javascript_response_bytes] if args.key?(:javascript_response_bytes) + @number_css_resources = args[:number_css_resources] if args.key?(:number_css_resources) + @number_hosts = args[:number_hosts] if args.key?(:number_hosts) + @number_js_resources = args[:number_js_resources] if args.key?(:number_js_resources) + @number_resources = args[:number_resources] if args.key?(:number_resources) + @number_static_resources = args[:number_static_resources] if args.key?(:number_static_resources) + @other_response_bytes = args[:other_response_bytes] if args.key?(:other_response_bytes) + @text_response_bytes = args[:text_response_bytes] if args.key?(:text_response_bytes) + @total_request_bytes = args[:total_request_bytes] if args.key?(:total_request_bytes) end end @@ -580,7 +580,7 @@ module Google # Update properties of this object def update!(**args) - @score = args[:score] unless args[:score].nil? + @score = args[:score] if args.key?(:score) end end @@ -604,8 +604,8 @@ module Google # Update properties of this object def update!(**args) - @major = args[:major] unless args[:major].nil? - @minor = args[:minor] unless args[:minor].nil? + @major = args[:major] if args.key?(:major) + @minor = args[:minor] if args.key?(:minor) end end end diff --git a/generated/google/apis/partners_v2/classes.rb b/generated/google/apis/partners_v2/classes.rb index 9556dda5a..40d91c97b 100644 --- a/generated/google/apis/partners_v2/classes.rb +++ b/generated/google/apis/partners_v2/classes.rb @@ -68,13 +68,13 @@ module Google # 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? + @request_metadata = args[:request_metadata] if args.key?(:request_metadata) + @event_action = args[:event_action] if args.key?(:event_action) + @event_category = args[:event_category] if args.key?(:event_category) + @event_scope = args[:event_scope] if args.key?(:event_scope) + @event_datas = args[:event_datas] if args.key?(:event_datas) + @url = args[:url] if args.key?(:url) + @lead = args[:lead] if args.key?(:lead) end end @@ -114,11 +114,11 @@ module Google # 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? + @user_overrides = args[:user_overrides] if args.key?(:user_overrides) + @locale = args[:locale] if args.key?(:locale) + @partners_session_id = args[:partners_session_id] if args.key?(:partners_session_id) + @experiment_ids = args[:experiment_ids] if args.key?(:experiment_ids) + @traffic_source = args[:traffic_source] if args.key?(:traffic_source) end end @@ -143,8 +143,8 @@ module Google # 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? + @ip_address = args[:ip_address] if args.key?(:ip_address) + @user_id = args[:user_id] if args.key?(:user_id) end end @@ -171,8 +171,8 @@ module Google # 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? + @traffic_source_id = args[:traffic_source_id] if args.key?(:traffic_source_id) + @traffic_sub_id = args[:traffic_sub_id] if args.key?(:traffic_sub_id) end end @@ -196,8 +196,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @values = args[:values] unless args[:values].nil? + @key = args[:key] if args.key?(:key) + @values = args[:values] if args.key?(:values) end end @@ -262,16 +262,16 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @type = args[:type] if args.key?(:type) + @email = args[:email] if args.key?(:email) + @given_name = args[:given_name] if args.key?(:given_name) + @family_name = args[:family_name] if args.key?(:family_name) + @website_url = args[:website_url] if args.key?(:website_url) + @phone_number = args[:phone_number] if args.key?(:phone_number) + @comments = args[:comments] if args.key?(:comments) + @gps_motivations = args[:gps_motivations] if args.key?(:gps_motivations) + @min_monthly_budget = args[:min_monthly_budget] if args.key?(:min_monthly_budget) end end @@ -305,9 +305,9 @@ module Google # 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? + @currency_code = args[:currency_code] if args.key?(:currency_code) + @units = args[:units] if args.key?(:units) + @nanos = args[:nanos] if args.key?(:nanos) end end @@ -326,7 +326,7 @@ module Google # Update properties of this object def update!(**args) - @response_metadata = args[:response_metadata] unless args[:response_metadata].nil? + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) end end @@ -345,7 +345,7 @@ module Google # Update properties of this object def update!(**args) - @debug_info = args[:debug_info] unless args[:debug_info].nil? + @debug_info = args[:debug_info] if args.key?(:debug_info) end end @@ -374,9 +374,9 @@ module Google # 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? + @server_info = args[:server_info] if args.key?(:server_info) + @service_url = args[:service_url] if args.key?(:service_url) + @server_trace_info = args[:server_trace_info] if args.key?(:server_trace_info) end end @@ -410,10 +410,10 @@ module Google # 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? + @request_metadata = args[:request_metadata] if args.key?(:request_metadata) + @level = args[:level] if args.key?(:level) + @details = args[:details] if args.key?(:details) + @client_info = args[:client_info] if args.key?(:client_info) end end @@ -432,7 +432,7 @@ module Google # Update properties of this object def update!(**args) - @response_metadata = args[:response_metadata] unless args[:response_metadata].nil? + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) end end @@ -456,8 +456,8 @@ module Google # 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? + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) + @user_states = args[:user_states] if args.key?(:user_states) end end @@ -482,8 +482,8 @@ module Google # 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? + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) + @company = args[:company] if args.key?(:company) end end @@ -558,18 +558,18 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) + @localized_infos = args[:localized_infos] if args.key?(:localized_infos) + @locations = args[:locations] if args.key?(:locations) + @converted_min_monthly_budget = args[:converted_min_monthly_budget] if args.key?(:converted_min_monthly_budget) + @original_min_monthly_budget = args[:original_min_monthly_budget] if args.key?(:original_min_monthly_budget) + @public_profile = args[:public_profile] if args.key?(:public_profile) + @certification_statuses = args[:certification_statuses] if args.key?(:certification_statuses) + @ranks = args[:ranks] if args.key?(:ranks) + @website_url = args[:website_url] if args.key?(:website_url) + @industries = args[:industries] if args.key?(:industries) + @services = args[:services] if args.key?(:services) end end @@ -604,10 +604,10 @@ module Google # 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? + @language_code = args[:language_code] if args.key?(:language_code) + @display_name = args[:display_name] if args.key?(:display_name) + @overview = args[:overview] if args.key?(:overview) + @country_codes = args[:country_codes] if args.key?(:country_codes) end end @@ -649,8 +649,8 @@ module Google # 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? + @address = args[:address] if args.key?(:address) + @lat_lng = args[:lat_lng] if args.key?(:lat_lng) end end @@ -692,8 +692,8 @@ module Google # Update properties of this object def update!(**args) - @latitude = args[:latitude] unless args[:latitude].nil? - @longitude = args[:longitude] unless args[:longitude].nil? + @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) end end @@ -727,10 +727,10 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @display_name = args[:display_name] if args.key?(:display_name) + @url = args[:url] if args.key?(:url) + @display_image_url = args[:display_image_url] if args.key?(:display_image_url) end end @@ -760,9 +760,9 @@ module Google # 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? + @type = args[:type] if args.key?(:type) + @exam_statuses = args[:exam_statuses] if args.key?(:exam_statuses) + @is_certified = args[:is_certified] if args.key?(:is_certified) end end @@ -786,8 +786,8 @@ module Google # 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? + @type = args[:type] if args.key?(:type) + @number_users_pass = args[:number_users_pass] if args.key?(:number_users_pass) end end @@ -811,8 +811,8 @@ module Google # Update properties of this object def update!(**args) - @type = args[:type] unless args[:type].nil? - @value = args[:value] unless args[:value].nil? + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) end end @@ -843,9 +843,9 @@ module Google # 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? + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) + @companies = args[:companies] if args.key?(:companies) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -875,9 +875,9 @@ module Google # 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? + @request_metadata = args[:request_metadata] if args.key?(:request_metadata) + @lead = args[:lead] if args.key?(:lead) + @recaptcha_challenge = args[:recaptcha_challenge] if args.key?(:recaptcha_challenge) end end @@ -901,8 +901,8 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @response = args[:response] unless args[:response].nil? + @id = args[:id] if args.key?(:id) + @response = args[:response] if args.key?(:response) end end @@ -932,9 +932,9 @@ module Google # 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? + @response_metadata = args[:response_metadata] if args.key?(:response_metadata) + @lead = args[:lead] if args.key?(:lead) + @recaptcha_status = args[:recaptcha_status] if args.key?(:recaptcha_status) end end end diff --git a/generated/google/apis/plus_domains_v1.rb b/generated/google/apis/plus_domains_v1.rb index 4d3874ec8..d0c6e99b8 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 = '20160120' + REVISION = '20160126' # 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 92fe46940..939fe7a57 100644 --- a/generated/google/apis/plus_domains_v1/classes.rb +++ b/generated/google/apis/plus_domains_v1/classes.rb @@ -53,10 +53,10 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @domain_restricted = args[:domain_restricted] unless args[:domain_restricted].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @description = args[:description] if args.key?(:description) + @domain_restricted = args[:domain_restricted] if args.key?(:domain_restricted) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -179,26 +179,26 @@ module Google # Update properties of this object def update!(**args) - @access = args[:access] unless args[:access].nil? - @actor = args[:actor] unless args[:actor].nil? - @address = args[:address] unless args[:address].nil? - @annotation = args[:annotation] unless args[:annotation].nil? - @crosspost_source = args[:crosspost_source] unless args[:crosspost_source].nil? - @etag = args[:etag] unless args[:etag].nil? - @geocode = args[:geocode] unless args[:geocode].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @location = args[:location] unless args[:location].nil? - @object = args[:object] unless args[:object].nil? - @place_id = args[:place_id] unless args[:place_id].nil? - @place_name = args[:place_name] unless args[:place_name].nil? - @provider = args[:provider] unless args[:provider].nil? - @published = args[:published] unless args[:published].nil? - @radius = args[:radius] unless args[:radius].nil? - @title = args[:title] unless args[:title].nil? - @updated = args[:updated] unless args[:updated].nil? - @url = args[:url] unless args[:url].nil? - @verb = args[:verb] unless args[:verb].nil? + @access = args[:access] if args.key?(:access) + @actor = args[:actor] if args.key?(:actor) + @address = args[:address] if args.key?(:address) + @annotation = args[:annotation] if args.key?(:annotation) + @crosspost_source = args[:crosspost_source] if args.key?(:crosspost_source) + @etag = args[:etag] if args.key?(:etag) + @geocode = args[:geocode] if args.key?(:geocode) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @location = args[:location] if args.key?(:location) + @object = args[:object] if args.key?(:object) + @place_id = args[:place_id] if args.key?(:place_id) + @place_name = args[:place_name] if args.key?(:place_name) + @provider = args[:provider] if args.key?(:provider) + @published = args[:published] if args.key?(:published) + @radius = args[:radius] if args.key?(:radius) + @title = args[:title] if args.key?(:title) + @updated = args[:updated] if args.key?(:updated) + @url = args[:url] if args.key?(:url) + @verb = args[:verb] if args.key?(:verb) end # The person who performed this activity. @@ -246,13 +246,13 @@ module Google # 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? + @client_specific_actor_info = args[:client_specific_actor_info] if args.key?(:client_specific_actor_info) + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @image = args[:image] if args.key?(:image) + @name = args[:name] if args.key?(:name) + @url = args[:url] if args.key?(:url) + @verification = args[:verification] if args.key?(:verification) end # Actor info specific to particular clients. @@ -270,7 +270,7 @@ module Google # Update properties of this object def update!(**args) - @youtube_actor_info = args[:youtube_actor_info] unless args[:youtube_actor_info].nil? + @youtube_actor_info = args[:youtube_actor_info] if args.key?(:youtube_actor_info) end # Actor info specific to YouTube clients. @@ -288,7 +288,7 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) end end end @@ -310,7 +310,7 @@ module Google # Update properties of this object def update!(**args) - @url = args[:url] unless args[:url].nil? + @url = args[:url] if args.key?(:url) end end @@ -334,8 +334,8 @@ module Google # 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? + @family_name = args[:family_name] if args.key?(:family_name) + @given_name = args[:given_name] if args.key?(:given_name) end end @@ -354,7 +354,7 @@ module Google # Update properties of this object def update!(**args) - @ad_hoc_verified = args[:ad_hoc_verified] unless args[:ad_hoc_verified].nil? + @ad_hoc_verified = args[:ad_hoc_verified] if args.key?(:ad_hoc_verified) end end end @@ -431,17 +431,17 @@ module Google # Update properties of this object def update!(**args) - @actor = args[:actor] unless args[:actor].nil? - @attachments = args[:attachments] unless args[:attachments].nil? - @content = args[:content] unless args[:content].nil? - @id = args[:id] unless args[:id].nil? - @object_type = args[:object_type] unless args[:object_type].nil? - @original_content = args[:original_content] unless args[:original_content].nil? - @plusoners = args[:plusoners] unless args[:plusoners].nil? - @replies = args[:replies] unless args[:replies].nil? - @resharers = args[:resharers] unless args[:resharers].nil? - @status_for_viewer = args[:status_for_viewer] unless args[:status_for_viewer].nil? - @url = args[:url] unless args[:url].nil? + @actor = args[:actor] if args.key?(:actor) + @attachments = args[:attachments] if args.key?(:attachments) + @content = args[:content] if args.key?(:content) + @id = args[:id] if args.key?(:id) + @object_type = args[:object_type] if args.key?(:object_type) + @original_content = args[:original_content] if args.key?(:original_content) + @plusoners = args[:plusoners] if args.key?(:plusoners) + @replies = args[:replies] if args.key?(:replies) + @resharers = args[:resharers] if args.key?(:resharers) + @status_for_viewer = args[:status_for_viewer] if args.key?(:status_for_viewer) + @url = args[:url] if args.key?(:url) end # If this activity's object is itself another activity, such as when a person @@ -485,12 +485,12 @@ module Google # 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? + @client_specific_actor_info = args[:client_specific_actor_info] if args.key?(:client_specific_actor_info) + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @image = args[:image] if args.key?(:image) + @url = args[:url] if args.key?(:url) + @verification = args[:verification] if args.key?(:verification) end # Actor info specific to particular clients. @@ -508,7 +508,7 @@ module Google # Update properties of this object def update!(**args) - @youtube_actor_info = args[:youtube_actor_info] unless args[:youtube_actor_info].nil? + @youtube_actor_info = args[:youtube_actor_info] if args.key?(:youtube_actor_info) end # Actor info specific to YouTube clients. @@ -526,7 +526,7 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) end end end @@ -546,7 +546,7 @@ module Google # Update properties of this object def update!(**args) - @url = args[:url] unless args[:url].nil? + @url = args[:url] if args.key?(:url) end end @@ -565,7 +565,7 @@ module Google # Update properties of this object def update!(**args) - @ad_hoc_verified = args[:ad_hoc_verified] unless args[:ad_hoc_verified].nil? + @ad_hoc_verified = args[:ad_hoc_verified] if args.key?(:ad_hoc_verified) end end end @@ -639,16 +639,16 @@ module Google # Update properties of this object def update!(**args) - @content = args[:content] unless args[:content].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @embed = args[:embed] unless args[:embed].nil? - @full_image = args[:full_image] unless args[:full_image].nil? - @id = args[:id] unless args[:id].nil? - @image = args[:image] unless args[:image].nil? - @object_type = args[:object_type] unless args[:object_type].nil? - @preview_thumbnails = args[:preview_thumbnails] unless args[:preview_thumbnails].nil? - @thumbnails = args[:thumbnails] unless args[:thumbnails].nil? - @url = args[:url] unless args[:url].nil? + @content = args[:content] if args.key?(:content) + @display_name = args[:display_name] if args.key?(:display_name) + @embed = args[:embed] if args.key?(:embed) + @full_image = args[:full_image] if args.key?(:full_image) + @id = args[:id] if args.key?(:id) + @image = args[:image] if args.key?(:image) + @object_type = args[:object_type] if args.key?(:object_type) + @preview_thumbnails = args[:preview_thumbnails] if args.key?(:preview_thumbnails) + @thumbnails = args[:thumbnails] if args.key?(:thumbnails) + @url = args[:url] if args.key?(:url) end # If the attachment is a video, the embeddable link. @@ -671,8 +671,8 @@ module Google # Update properties of this object def update!(**args) - @type = args[:type] unless args[:type].nil? - @url = args[:url] unless args[:url].nil? + @type = args[:type] if args.key?(:type) + @url = args[:url] if args.key?(:url) end end @@ -706,10 +706,10 @@ module Google # Update properties of this object def update!(**args) - @height = args[:height] unless args[:height].nil? - @type = args[:type] unless args[:type].nil? - @url = args[:url] unless args[:url].nil? - @width = args[:width] unless args[:width].nil? + @height = args[:height] if args.key?(:height) + @type = args[:type] if args.key?(:type) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) end end @@ -743,10 +743,10 @@ module Google # Update properties of this object def update!(**args) - @height = args[:height] unless args[:height].nil? - @type = args[:type] unless args[:type].nil? - @url = args[:url] unless args[:url].nil? - @width = args[:width] unless args[:width].nil? + @height = args[:height] if args.key?(:height) + @type = args[:type] if args.key?(:type) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) end end @@ -765,7 +765,7 @@ module Google # Update properties of this object def update!(**args) - @url = args[:url] unless args[:url].nil? + @url = args[:url] if args.key?(:url) end end @@ -794,9 +794,9 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @image = args[:image] unless args[:image].nil? - @url = args[:url] unless args[:url].nil? + @description = args[:description] if args.key?(:description) + @image = args[:image] if args.key?(:image) + @url = args[:url] if args.key?(:url) end # Image resource. @@ -829,10 +829,10 @@ module Google # Update properties of this object def update!(**args) - @height = args[:height] unless args[:height].nil? - @type = args[:type] unless args[:type].nil? - @url = args[:url] unless args[:url].nil? - @width = args[:width] unless args[:width].nil? + @height = args[:height] if args.key?(:height) + @type = args[:type] if args.key?(:type) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) end end end @@ -858,8 +858,8 @@ module Google # Update properties of this object def update!(**args) - @self_link = args[:self_link] unless args[:self_link].nil? - @total_items = args[:total_items] unless args[:total_items].nil? + @self_link = args[:self_link] if args.key?(:self_link) + @total_items = args[:total_items] if args.key?(:total_items) end end @@ -883,8 +883,8 @@ module Google # Update properties of this object def update!(**args) - @self_link = args[:self_link] unless args[:self_link].nil? - @total_items = args[:total_items] unless args[:total_items].nil? + @self_link = args[:self_link] if args.key?(:self_link) + @total_items = args[:total_items] if args.key?(:total_items) end end @@ -908,8 +908,8 @@ module Google # Update properties of this object def update!(**args) - @self_link = args[:self_link] unless args[:self_link].nil? - @total_items = args[:total_items] unless args[:total_items].nil? + @self_link = args[:self_link] if args.key?(:self_link) + @total_items = args[:total_items] if args.key?(:total_items) end end @@ -953,11 +953,11 @@ module Google # Update properties of this object def update!(**args) - @can_comment = args[:can_comment] unless args[:can_comment].nil? - @can_plusone = args[:can_plusone] unless args[:can_plusone].nil? - @can_update = args[:can_update] unless args[:can_update].nil? - @is_plus_oned = args[:is_plus_oned] unless args[:is_plus_oned].nil? - @resharing_disabled = args[:resharing_disabled] unless args[:resharing_disabled].nil? + @can_comment = args[:can_comment] if args.key?(:can_comment) + @can_plusone = args[:can_plusone] if args.key?(:can_plusone) + @can_update = args[:can_update] if args.key?(:can_update) + @is_plus_oned = args[:is_plus_oned] if args.key?(:is_plus_oned) + @resharing_disabled = args[:resharing_disabled] if args.key?(:resharing_disabled) end end end @@ -977,7 +977,7 @@ module Google # Update properties of this object def update!(**args) - @title = args[:title] unless args[:title].nil? + @title = args[:title] if args.key?(:title) end end end @@ -1041,15 +1041,15 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @title = args[:title] unless args[:title].nil? - @updated = args[:updated] unless args[:updated].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @title = args[:title] if args.key?(:title) + @updated = args[:updated] if args.key?(:updated) end end @@ -1093,11 +1093,11 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @item = args[:item] unless args[:item].nil? - @kind = args[:kind] unless args[:kind].nil? - @member_count = args[:member_count] unless args[:member_count].nil? - @visibility = args[:visibility] unless args[:visibility].nil? + @etag = args[:etag] if args.key?(:etag) + @item = args[:item] if args.key?(:item) + @kind = args[:kind] if args.key?(:kind) + @member_count = args[:member_count] if args.key?(:member_count) + @visibility = args[:visibility] if args.key?(:visibility) end end @@ -1139,11 +1139,11 @@ module Google # 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? - @total_items = args[:total_items] unless args[:total_items].nil? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @total_items = args[:total_items] if args.key?(:total_items) end end @@ -1192,13 +1192,13 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @people = args[:people] unless args[:people].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @description = args[:description] if args.key?(:description) + @display_name = args[:display_name] if args.key?(:display_name) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @people = args[:people] if args.key?(:people) + @self_link = args[:self_link] if args.key?(:self_link) end # The people in this circle. @@ -1216,7 +1216,7 @@ module Google # Update properties of this object def update!(**args) - @total_items = args[:total_items] unless args[:total_items].nil? + @total_items = args[:total_items] if args.key?(:total_items) end end end @@ -1273,14 +1273,14 @@ module Google # 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_link = args[:next_link] unless args[:next_link].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @title = args[:title] unless args[:title].nil? - @total_items = args[:total_items] unless args[:total_items].nil? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @title = args[:title] if args.key?(:title) + @total_items = args[:total_items] if args.key?(:total_items) end end @@ -1353,17 +1353,17 @@ module Google # Update properties of this object def update!(**args) - @actor = args[:actor] unless args[:actor].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @in_reply_to = args[:in_reply_to] unless args[:in_reply_to].nil? - @kind = args[:kind] unless args[:kind].nil? - @object = args[:object] unless args[:object].nil? - @plusoners = args[:plusoners] unless args[:plusoners].nil? - @published = args[:published] unless args[:published].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @updated = args[:updated] unless args[:updated].nil? - @verb = args[:verb] unless args[:verb].nil? + @actor = args[:actor] if args.key?(:actor) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @in_reply_to = args[:in_reply_to] if args.key?(:in_reply_to) + @kind = args[:kind] if args.key?(:kind) + @object = args[:object] if args.key?(:object) + @plusoners = args[:plusoners] if args.key?(:plusoners) + @published = args[:published] if args.key?(:published) + @self_link = args[:self_link] if args.key?(:self_link) + @updated = args[:updated] if args.key?(:updated) + @verb = args[:verb] if args.key?(:verb) end # The person who posted this comment. @@ -1406,12 +1406,12 @@ module Google # 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? + @client_specific_actor_info = args[:client_specific_actor_info] if args.key?(:client_specific_actor_info) + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @image = args[:image] if args.key?(:image) + @url = args[:url] if args.key?(:url) + @verification = args[:verification] if args.key?(:verification) end # Actor info specific to particular clients. @@ -1429,7 +1429,7 @@ module Google # Update properties of this object def update!(**args) - @youtube_actor_info = args[:youtube_actor_info] unless args[:youtube_actor_info].nil? + @youtube_actor_info = args[:youtube_actor_info] if args.key?(:youtube_actor_info) end # Actor info specific to YouTube clients. @@ -1447,7 +1447,7 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) end end end @@ -1469,7 +1469,7 @@ module Google # Update properties of this object def update!(**args) - @url = args[:url] unless args[:url].nil? + @url = args[:url] if args.key?(:url) end end @@ -1488,7 +1488,7 @@ module Google # Update properties of this object def update!(**args) - @ad_hoc_verified = args[:ad_hoc_verified] unless args[:ad_hoc_verified].nil? + @ad_hoc_verified = args[:ad_hoc_verified] if args.key?(:ad_hoc_verified) end end end @@ -1513,8 +1513,8 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @url = args[:url] unless args[:url].nil? + @id = args[:id] if args.key?(:id) + @url = args[:url] if args.key?(:url) end end @@ -1546,9 +1546,9 @@ module Google # Update properties of this object def update!(**args) - @content = args[:content] unless args[:content].nil? - @object_type = args[:object_type] unless args[:object_type].nil? - @original_content = args[:original_content] unless args[:original_content].nil? + @content = args[:content] if args.key?(:content) + @object_type = args[:object_type] if args.key?(:object_type) + @original_content = args[:original_content] if args.key?(:original_content) end end @@ -1567,7 +1567,7 @@ module Google # Update properties of this object def update!(**args) - @total_items = args[:total_items] unless args[:total_items].nil? + @total_items = args[:total_items] if args.key?(:total_items) end end end @@ -1625,14 +1625,14 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @title = args[:title] unless args[:title].nil? - @updated = args[:updated] unless args[:updated].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @title = args[:title] if args.key?(:title) + @updated = args[:updated] if args.key?(:updated) end end @@ -1744,24 +1744,24 @@ module Google # Update properties of this object def update!(**args) - @author = args[:author] unless args[:author].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @etag = args[:etag] unless args[:etag].nil? - @exif = args[:exif] unless args[:exif].nil? - @height = args[:height] unless args[:height].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @media_created_time = args[:media_created_time] unless args[:media_created_time].nil? - @media_url = args[:media_url] unless args[:media_url].nil? - @published = args[:published] unless args[:published].nil? - @size_bytes = args[:size_bytes] unless args[:size_bytes].nil? - @streams = args[:streams] unless args[:streams].nil? - @summary = args[:summary] unless args[:summary].nil? - @updated = args[:updated] unless args[:updated].nil? - @url = args[:url] unless args[:url].nil? - @video_duration = args[:video_duration] unless args[:video_duration].nil? - @video_status = args[:video_status] unless args[:video_status].nil? - @width = args[:width] unless args[:width].nil? + @author = args[:author] if args.key?(:author) + @display_name = args[:display_name] if args.key?(:display_name) + @etag = args[:etag] if args.key?(:etag) + @exif = args[:exif] if args.key?(:exif) + @height = args[:height] if args.key?(:height) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @media_created_time = args[:media_created_time] if args.key?(:media_created_time) + @media_url = args[:media_url] if args.key?(:media_url) + @published = args[:published] if args.key?(:published) + @size_bytes = args[:size_bytes] if args.key?(:size_bytes) + @streams = args[:streams] if args.key?(:streams) + @summary = args[:summary] if args.key?(:summary) + @updated = args[:updated] if args.key?(:updated) + @url = args[:url] if args.key?(:url) + @video_duration = args[:video_duration] if args.key?(:video_duration) + @video_status = args[:video_status] if args.key?(:video_status) + @width = args[:width] if args.key?(:width) end # The person who uploaded this media. @@ -1794,10 +1794,10 @@ module Google # Update properties of this object def update!(**args) - @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? + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @image = args[:image] if args.key?(:image) + @url = args[:url] if args.key?(:url) end # The author's Google profile image. @@ -1817,7 +1817,7 @@ module Google # Update properties of this object def update!(**args) - @url = args[:url] unless args[:url].nil? + @url = args[:url] if args.key?(:url) end end end @@ -1837,7 +1837,7 @@ module Google # Update properties of this object def update!(**args) - @time = args[:time] unless args[:time].nil? + @time = args[:time] if args.key?(:time) end end end @@ -1892,13 +1892,13 @@ module Google # 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? - @self_link = args[:self_link] unless args[:self_link].nil? - @title = args[:title] unless args[:title].nil? - @total_items = args[:total_items] unless args[:total_items].nil? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @title = args[:title] if args.key?(:title) + @total_items = args[:total_items] if args.key?(:total_items) end end @@ -2078,34 +2078,34 @@ module Google # Update properties of this object def update!(**args) - @about_me = args[:about_me] unless args[:about_me].nil? - @birthday = args[:birthday] unless args[:birthday].nil? - @bragging_rights = args[:bragging_rights] unless args[:bragging_rights].nil? - @circled_by_count = args[:circled_by_count] unless args[:circled_by_count].nil? - @cover = args[:cover] unless args[:cover].nil? - @current_location = args[:current_location] unless args[:current_location].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @domain = args[:domain] unless args[:domain].nil? - @emails = args[:emails] unless args[:emails].nil? - @etag = args[:etag] unless args[:etag].nil? - @gender = args[:gender] unless args[:gender].nil? - @id = args[:id] unless args[:id].nil? - @image = args[:image] unless args[:image].nil? - @is_plus_user = args[:is_plus_user] unless args[:is_plus_user].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @nickname = args[:nickname] unless args[:nickname].nil? - @object_type = args[:object_type] unless args[:object_type].nil? - @occupation = args[:occupation] unless args[:occupation].nil? - @organizations = args[:organizations] unless args[:organizations].nil? - @places_lived = args[:places_lived] unless args[:places_lived].nil? - @plus_one_count = args[:plus_one_count] unless args[:plus_one_count].nil? - @relationship_status = args[:relationship_status] unless args[:relationship_status].nil? - @skills = args[:skills] unless args[:skills].nil? - @tagline = args[:tagline] unless args[:tagline].nil? - @url = args[:url] unless args[:url].nil? - @urls = args[:urls] unless args[:urls].nil? - @verified = args[:verified] unless args[:verified].nil? + @about_me = args[:about_me] if args.key?(:about_me) + @birthday = args[:birthday] if args.key?(:birthday) + @bragging_rights = args[:bragging_rights] if args.key?(:bragging_rights) + @circled_by_count = args[:circled_by_count] if args.key?(:circled_by_count) + @cover = args[:cover] if args.key?(:cover) + @current_location = args[:current_location] if args.key?(:current_location) + @display_name = args[:display_name] if args.key?(:display_name) + @domain = args[:domain] if args.key?(:domain) + @emails = args[:emails] if args.key?(:emails) + @etag = args[:etag] if args.key?(:etag) + @gender = args[:gender] if args.key?(:gender) + @id = args[:id] if args.key?(:id) + @image = args[:image] if args.key?(:image) + @is_plus_user = args[:is_plus_user] if args.key?(:is_plus_user) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @nickname = args[:nickname] if args.key?(:nickname) + @object_type = args[:object_type] if args.key?(:object_type) + @occupation = args[:occupation] if args.key?(:occupation) + @organizations = args[:organizations] if args.key?(:organizations) + @places_lived = args[:places_lived] if args.key?(:places_lived) + @plus_one_count = args[:plus_one_count] if args.key?(:plus_one_count) + @relationship_status = args[:relationship_status] if args.key?(:relationship_status) + @skills = args[:skills] if args.key?(:skills) + @tagline = args[:tagline] if args.key?(:tagline) + @url = args[:url] if args.key?(:url) + @urls = args[:urls] if args.key?(:urls) + @verified = args[:verified] if args.key?(:verified) end # The cover photo content. @@ -2135,9 +2135,9 @@ module Google # Update properties of this object def update!(**args) - @cover_info = args[:cover_info] unless args[:cover_info].nil? - @cover_photo = args[:cover_photo] unless args[:cover_photo].nil? - @layout = args[:layout] unless args[:layout].nil? + @cover_info = args[:cover_info] if args.key?(:cover_info) + @cover_photo = args[:cover_photo] if args.key?(:cover_photo) + @layout = args[:layout] if args.key?(:layout) end # Extra information about the cover photo. @@ -2162,8 +2162,8 @@ module Google # Update properties of this object def update!(**args) - @left_image_offset = args[:left_image_offset] unless args[:left_image_offset].nil? - @top_image_offset = args[:top_image_offset] unless args[:top_image_offset].nil? + @left_image_offset = args[:left_image_offset] if args.key?(:left_image_offset) + @top_image_offset = args[:top_image_offset] if args.key?(:top_image_offset) end end @@ -2192,9 +2192,9 @@ module Google # 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? + @height = args[:height] if args.key?(:height) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) end end end @@ -2224,8 +2224,8 @@ module Google # Update properties of this object def update!(**args) - @type = args[:type] unless args[:type].nil? - @value = args[:value] unless args[:value].nil? + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) end end @@ -2252,8 +2252,8 @@ module Google # Update properties of this object def update!(**args) - @is_default = args[:is_default] unless args[:is_default].nil? - @url = args[:url] unless args[:url].nil? + @is_default = args[:is_default] if args.key?(:is_default) + @url = args[:url] if args.key?(:url) end end @@ -2297,12 +2297,12 @@ module Google # Update properties of this object def update!(**args) - @family_name = args[:family_name] unless args[:family_name].nil? - @formatted = args[:formatted] unless args[:formatted].nil? - @given_name = args[:given_name] unless args[:given_name].nil? - @honorific_prefix = args[:honorific_prefix] unless args[:honorific_prefix].nil? - @honorific_suffix = args[:honorific_suffix] unless args[:honorific_suffix].nil? - @middle_name = args[:middle_name] unless args[:middle_name].nil? + @family_name = args[:family_name] if args.key?(:family_name) + @formatted = args[:formatted] if args.key?(:formatted) + @given_name = args[:given_name] if args.key?(:given_name) + @honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix) + @honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix) + @middle_name = args[:middle_name] if args.key?(:middle_name) end end @@ -2366,15 +2366,15 @@ module Google # Update properties of this object def update!(**args) - @department = args[:department] unless args[:department].nil? - @description = args[:description] unless args[:description].nil? - @end_date = args[:end_date] unless args[:end_date].nil? - @location = args[:location] unless args[:location].nil? - @name = args[:name] unless args[:name].nil? - @primary = args[:primary] unless args[:primary].nil? - @start_date = args[:start_date] unless args[:start_date].nil? - @title = args[:title] unless args[:title].nil? - @type = args[:type] unless args[:type].nil? + @department = args[:department] if args.key?(:department) + @description = args[:description] if args.key?(:description) + @end_date = args[:end_date] if args.key?(:end_date) + @location = args[:location] if args.key?(:location) + @name = args[:name] if args.key?(:name) + @primary = args[:primary] if args.key?(:primary) + @start_date = args[:start_date] if args.key?(:start_date) + @title = args[:title] if args.key?(:title) + @type = args[:type] if args.key?(:type) end end @@ -2400,8 +2400,8 @@ module Google # Update properties of this object def update!(**args) - @primary = args[:primary] unless args[:primary].nil? - @value = args[:value] unless args[:value].nil? + @primary = args[:primary] if args.key?(:primary) + @value = args[:value] if args.key?(:value) end end @@ -2435,9 +2435,9 @@ module Google # Update properties of this object def update!(**args) - @label = args[:label] unless args[:label].nil? - @type = args[:type] unless args[:type].nil? - @value = args[:value] unless args[:value].nil? + @label = args[:label] if args.key?(:label) + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) end end end @@ -2477,11 +2477,11 @@ module Google # Update properties of this object def update!(**args) - @address = args[:address] unless args[:address].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @position = args[:position] unless args[:position].nil? + @address = args[:address] if args.key?(:address) + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @position = args[:position] if args.key?(:position) end # The physical address of the place. @@ -2499,7 +2499,7 @@ module Google # Update properties of this object def update!(**args) - @formatted = args[:formatted] unless args[:formatted].nil? + @formatted = args[:formatted] if args.key?(:formatted) end end @@ -2523,8 +2523,8 @@ module Google # Update properties of this object def update!(**args) - @latitude = args[:latitude] unless args[:latitude].nil? - @longitude = args[:longitude] unless args[:longitude].nil? + @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) end end end @@ -2562,9 +2562,9 @@ module Google # Update properties of this object def update!(**args) - @display_name = args[:display_name] unless args[:display_name].nil? - @id = args[:id] unless args[:id].nil? - @type = args[:type] unless args[:type].nil? + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @type = args[:type] if args.key?(:type) end end @@ -2598,10 +2598,10 @@ module Google # Update properties of this object def update!(**args) - @height = args[:height] unless args[:height].nil? - @type = args[:type] unless args[:type].nil? - @url = args[:url] unless args[:url].nil? - @width = args[:width] unless args[:width].nil? + @height = args[:height] if args.key?(:height) + @type = args[:type] if args.key?(:type) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) end end end diff --git a/generated/google/apis/plus_v1.rb b/generated/google/apis/plus_v1.rb index cf24fe9ed..aaff2d6ac 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 = '20160120' + REVISION = '20160126' # 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 ec0b18128..150f53267 100644 --- a/generated/google/apis/plus_v1/classes.rb +++ b/generated/google/apis/plus_v1/classes.rb @@ -47,9 +47,9 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @description = args[:description] if args.key?(:description) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -172,26 +172,26 @@ module Google # Update properties of this object def update!(**args) - @access = args[:access] unless args[:access].nil? - @actor = args[:actor] unless args[:actor].nil? - @address = args[:address] unless args[:address].nil? - @annotation = args[:annotation] unless args[:annotation].nil? - @crosspost_source = args[:crosspost_source] unless args[:crosspost_source].nil? - @etag = args[:etag] unless args[:etag].nil? - @geocode = args[:geocode] unless args[:geocode].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @location = args[:location] unless args[:location].nil? - @object = args[:object] unless args[:object].nil? - @place_id = args[:place_id] unless args[:place_id].nil? - @place_name = args[:place_name] unless args[:place_name].nil? - @provider = args[:provider] unless args[:provider].nil? - @published = args[:published] unless args[:published].nil? - @radius = args[:radius] unless args[:radius].nil? - @title = args[:title] unless args[:title].nil? - @updated = args[:updated] unless args[:updated].nil? - @url = args[:url] unless args[:url].nil? - @verb = args[:verb] unless args[:verb].nil? + @access = args[:access] if args.key?(:access) + @actor = args[:actor] if args.key?(:actor) + @address = args[:address] if args.key?(:address) + @annotation = args[:annotation] if args.key?(:annotation) + @crosspost_source = args[:crosspost_source] if args.key?(:crosspost_source) + @etag = args[:etag] if args.key?(:etag) + @geocode = args[:geocode] if args.key?(:geocode) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @location = args[:location] if args.key?(:location) + @object = args[:object] if args.key?(:object) + @place_id = args[:place_id] if args.key?(:place_id) + @place_name = args[:place_name] if args.key?(:place_name) + @provider = args[:provider] if args.key?(:provider) + @published = args[:published] if args.key?(:published) + @radius = args[:radius] if args.key?(:radius) + @title = args[:title] if args.key?(:title) + @updated = args[:updated] if args.key?(:updated) + @url = args[:url] if args.key?(:url) + @verb = args[:verb] if args.key?(:verb) end # The person who performed this activity. @@ -239,13 +239,13 @@ module Google # 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? + @client_specific_actor_info = args[:client_specific_actor_info] if args.key?(:client_specific_actor_info) + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @image = args[:image] if args.key?(:image) + @name = args[:name] if args.key?(:name) + @url = args[:url] if args.key?(:url) + @verification = args[:verification] if args.key?(:verification) end # Actor info specific to particular clients. @@ -263,7 +263,7 @@ module Google # Update properties of this object def update!(**args) - @youtube_actor_info = args[:youtube_actor_info] unless args[:youtube_actor_info].nil? + @youtube_actor_info = args[:youtube_actor_info] if args.key?(:youtube_actor_info) end # Actor info specific to YouTube clients. @@ -281,7 +281,7 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) end end end @@ -303,7 +303,7 @@ module Google # Update properties of this object def update!(**args) - @url = args[:url] unless args[:url].nil? + @url = args[:url] if args.key?(:url) end end @@ -327,8 +327,8 @@ module Google # 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? + @family_name = args[:family_name] if args.key?(:family_name) + @given_name = args[:given_name] if args.key?(:given_name) end end @@ -347,7 +347,7 @@ module Google # Update properties of this object def update!(**args) - @ad_hoc_verified = args[:ad_hoc_verified] unless args[:ad_hoc_verified].nil? + @ad_hoc_verified = args[:ad_hoc_verified] if args.key?(:ad_hoc_verified) end end end @@ -419,16 +419,16 @@ module Google # Update properties of this object def update!(**args) - @actor = args[:actor] unless args[:actor].nil? - @attachments = args[:attachments] unless args[:attachments].nil? - @content = args[:content] unless args[:content].nil? - @id = args[:id] unless args[:id].nil? - @object_type = args[:object_type] unless args[:object_type].nil? - @original_content = args[:original_content] unless args[:original_content].nil? - @plusoners = args[:plusoners] unless args[:plusoners].nil? - @replies = args[:replies] unless args[:replies].nil? - @resharers = args[:resharers] unless args[:resharers].nil? - @url = args[:url] unless args[:url].nil? + @actor = args[:actor] if args.key?(:actor) + @attachments = args[:attachments] if args.key?(:attachments) + @content = args[:content] if args.key?(:content) + @id = args[:id] if args.key?(:id) + @object_type = args[:object_type] if args.key?(:object_type) + @original_content = args[:original_content] if args.key?(:original_content) + @plusoners = args[:plusoners] if args.key?(:plusoners) + @replies = args[:replies] if args.key?(:replies) + @resharers = args[:resharers] if args.key?(:resharers) + @url = args[:url] if args.key?(:url) end # If this activity's object is itself another activity, such as when a person @@ -472,12 +472,12 @@ module Google # 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? + @client_specific_actor_info = args[:client_specific_actor_info] if args.key?(:client_specific_actor_info) + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @image = args[:image] if args.key?(:image) + @url = args[:url] if args.key?(:url) + @verification = args[:verification] if args.key?(:verification) end # Actor info specific to particular clients. @@ -495,7 +495,7 @@ module Google # Update properties of this object def update!(**args) - @youtube_actor_info = args[:youtube_actor_info] unless args[:youtube_actor_info].nil? + @youtube_actor_info = args[:youtube_actor_info] if args.key?(:youtube_actor_info) end # Actor info specific to YouTube clients. @@ -513,7 +513,7 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) end end end @@ -533,7 +533,7 @@ module Google # Update properties of this object def update!(**args) - @url = args[:url] unless args[:url].nil? + @url = args[:url] if args.key?(:url) end end @@ -552,7 +552,7 @@ module Google # Update properties of this object def update!(**args) - @ad_hoc_verified = args[:ad_hoc_verified] unless args[:ad_hoc_verified].nil? + @ad_hoc_verified = args[:ad_hoc_verified] if args.key?(:ad_hoc_verified) end end end @@ -619,15 +619,15 @@ module Google # Update properties of this object def update!(**args) - @content = args[:content] unless args[:content].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @embed = args[:embed] unless args[:embed].nil? - @full_image = args[:full_image] unless args[:full_image].nil? - @id = args[:id] unless args[:id].nil? - @image = args[:image] unless args[:image].nil? - @object_type = args[:object_type] unless args[:object_type].nil? - @thumbnails = args[:thumbnails] unless args[:thumbnails].nil? - @url = args[:url] unless args[:url].nil? + @content = args[:content] if args.key?(:content) + @display_name = args[:display_name] if args.key?(:display_name) + @embed = args[:embed] if args.key?(:embed) + @full_image = args[:full_image] if args.key?(:full_image) + @id = args[:id] if args.key?(:id) + @image = args[:image] if args.key?(:image) + @object_type = args[:object_type] if args.key?(:object_type) + @thumbnails = args[:thumbnails] if args.key?(:thumbnails) + @url = args[:url] if args.key?(:url) end # If the attachment is a video, the embeddable link. @@ -650,8 +650,8 @@ module Google # Update properties of this object def update!(**args) - @type = args[:type] unless args[:type].nil? - @url = args[:url] unless args[:url].nil? + @type = args[:type] if args.key?(:type) + @url = args[:url] if args.key?(:url) end end @@ -685,10 +685,10 @@ module Google # Update properties of this object def update!(**args) - @height = args[:height] unless args[:height].nil? - @type = args[:type] unless args[:type].nil? - @url = args[:url] unless args[:url].nil? - @width = args[:width] unless args[:width].nil? + @height = args[:height] if args.key?(:height) + @type = args[:type] if args.key?(:type) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) end end @@ -722,10 +722,10 @@ module Google # Update properties of this object def update!(**args) - @height = args[:height] unless args[:height].nil? - @type = args[:type] unless args[:type].nil? - @url = args[:url] unless args[:url].nil? - @width = args[:width] unless args[:width].nil? + @height = args[:height] if args.key?(:height) + @type = args[:type] if args.key?(:type) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) end end @@ -754,9 +754,9 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @image = args[:image] unless args[:image].nil? - @url = args[:url] unless args[:url].nil? + @description = args[:description] if args.key?(:description) + @image = args[:image] if args.key?(:image) + @url = args[:url] if args.key?(:url) end # Image resource. @@ -789,10 +789,10 @@ module Google # Update properties of this object def update!(**args) - @height = args[:height] unless args[:height].nil? - @type = args[:type] unless args[:type].nil? - @url = args[:url] unless args[:url].nil? - @width = args[:width] unless args[:width].nil? + @height = args[:height] if args.key?(:height) + @type = args[:type] if args.key?(:type) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) end end end @@ -818,8 +818,8 @@ module Google # Update properties of this object def update!(**args) - @self_link = args[:self_link] unless args[:self_link].nil? - @total_items = args[:total_items] unless args[:total_items].nil? + @self_link = args[:self_link] if args.key?(:self_link) + @total_items = args[:total_items] if args.key?(:total_items) end end @@ -843,8 +843,8 @@ module Google # Update properties of this object def update!(**args) - @self_link = args[:self_link] unless args[:self_link].nil? - @total_items = args[:total_items] unless args[:total_items].nil? + @self_link = args[:self_link] if args.key?(:self_link) + @total_items = args[:total_items] if args.key?(:total_items) end end @@ -868,8 +868,8 @@ module Google # Update properties of this object def update!(**args) - @self_link = args[:self_link] unless args[:self_link].nil? - @total_items = args[:total_items] unless args[:total_items].nil? + @self_link = args[:self_link] if args.key?(:self_link) + @total_items = args[:total_items] if args.key?(:total_items) end end end @@ -889,7 +889,7 @@ module Google # Update properties of this object def update!(**args) - @title = args[:title] unless args[:title].nil? + @title = args[:title] if args.key?(:title) end end end @@ -953,15 +953,15 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @title = args[:title] unless args[:title].nil? - @updated = args[:updated] unless args[:updated].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @title = args[:title] if args.key?(:title) + @updated = args[:updated] if args.key?(:updated) end end @@ -1034,17 +1034,17 @@ module Google # Update properties of this object def update!(**args) - @actor = args[:actor] unless args[:actor].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @in_reply_to = args[:in_reply_to] unless args[:in_reply_to].nil? - @kind = args[:kind] unless args[:kind].nil? - @object = args[:object] unless args[:object].nil? - @plusoners = args[:plusoners] unless args[:plusoners].nil? - @published = args[:published] unless args[:published].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @updated = args[:updated] unless args[:updated].nil? - @verb = args[:verb] unless args[:verb].nil? + @actor = args[:actor] if args.key?(:actor) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @in_reply_to = args[:in_reply_to] if args.key?(:in_reply_to) + @kind = args[:kind] if args.key?(:kind) + @object = args[:object] if args.key?(:object) + @plusoners = args[:plusoners] if args.key?(:plusoners) + @published = args[:published] if args.key?(:published) + @self_link = args[:self_link] if args.key?(:self_link) + @updated = args[:updated] if args.key?(:updated) + @verb = args[:verb] if args.key?(:verb) end # The person who posted this comment. @@ -1087,12 +1087,12 @@ module Google # 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? + @client_specific_actor_info = args[:client_specific_actor_info] if args.key?(:client_specific_actor_info) + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @image = args[:image] if args.key?(:image) + @url = args[:url] if args.key?(:url) + @verification = args[:verification] if args.key?(:verification) end # Actor info specific to particular clients. @@ -1110,7 +1110,7 @@ module Google # Update properties of this object def update!(**args) - @youtube_actor_info = args[:youtube_actor_info] unless args[:youtube_actor_info].nil? + @youtube_actor_info = args[:youtube_actor_info] if args.key?(:youtube_actor_info) end # Actor info specific to YouTube clients. @@ -1128,7 +1128,7 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) end end end @@ -1150,7 +1150,7 @@ module Google # Update properties of this object def update!(**args) - @url = args[:url] unless args[:url].nil? + @url = args[:url] if args.key?(:url) end end @@ -1169,7 +1169,7 @@ module Google # Update properties of this object def update!(**args) - @ad_hoc_verified = args[:ad_hoc_verified] unless args[:ad_hoc_verified].nil? + @ad_hoc_verified = args[:ad_hoc_verified] if args.key?(:ad_hoc_verified) end end end @@ -1194,8 +1194,8 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @url = args[:url] unless args[:url].nil? + @id = args[:id] if args.key?(:id) + @url = args[:url] if args.key?(:url) end end @@ -1227,9 +1227,9 @@ module Google # Update properties of this object def update!(**args) - @content = args[:content] unless args[:content].nil? - @object_type = args[:object_type] unless args[:object_type].nil? - @original_content = args[:original_content] unless args[:original_content].nil? + @content = args[:content] if args.key?(:content) + @object_type = args[:object_type] if args.key?(:object_type) + @original_content = args[:original_content] if args.key?(:original_content) end end @@ -1248,7 +1248,7 @@ module Google # Update properties of this object def update!(**args) - @total_items = args[:total_items] unless args[:total_items].nil? + @total_items = args[:total_items] if args.key?(:total_items) end end end @@ -1306,14 +1306,14 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_link = args[:next_link] unless args[:next_link].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @title = args[:title] unless args[:title].nil? - @updated = args[:updated] unless args[:updated].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_link = args[:next_link] if args.key?(:next_link) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @title = args[:title] if args.key?(:title) + @updated = args[:updated] if args.key?(:updated) end end @@ -1367,13 +1367,13 @@ module Google # 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? - @self_link = args[:self_link] unless args[:self_link].nil? - @title = args[:title] unless args[:title].nil? - @total_items = args[:total_items] unless args[:total_items].nil? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) + @title = args[:title] if args.key?(:title) + @total_items = args[:total_items] if args.key?(:total_items) end end @@ -1565,36 +1565,36 @@ module Google # Update properties of this object def update!(**args) - @about_me = args[:about_me] unless args[:about_me].nil? - @age_range = args[:age_range] unless args[:age_range].nil? - @birthday = args[:birthday] unless args[:birthday].nil? - @bragging_rights = args[:bragging_rights] unless args[:bragging_rights].nil? - @circled_by_count = args[:circled_by_count] unless args[:circled_by_count].nil? - @cover = args[:cover] unless args[:cover].nil? - @current_location = args[:current_location] unless args[:current_location].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @domain = args[:domain] unless args[:domain].nil? - @emails = args[:emails] unless args[:emails].nil? - @etag = args[:etag] unless args[:etag].nil? - @gender = args[:gender] unless args[:gender].nil? - @id = args[:id] unless args[:id].nil? - @image = args[:image] unless args[:image].nil? - @is_plus_user = args[:is_plus_user] unless args[:is_plus_user].nil? - @kind = args[:kind] unless args[:kind].nil? - @language = args[:language] unless args[:language].nil? - @name = args[:name] unless args[:name].nil? - @nickname = args[:nickname] unless args[:nickname].nil? - @object_type = args[:object_type] unless args[:object_type].nil? - @occupation = args[:occupation] unless args[:occupation].nil? - @organizations = args[:organizations] unless args[:organizations].nil? - @places_lived = args[:places_lived] unless args[:places_lived].nil? - @plus_one_count = args[:plus_one_count] unless args[:plus_one_count].nil? - @relationship_status = args[:relationship_status] unless args[:relationship_status].nil? - @skills = args[:skills] unless args[:skills].nil? - @tagline = args[:tagline] unless args[:tagline].nil? - @url = args[:url] unless args[:url].nil? - @urls = args[:urls] unless args[:urls].nil? - @verified = args[:verified] unless args[:verified].nil? + @about_me = args[:about_me] if args.key?(:about_me) + @age_range = args[:age_range] if args.key?(:age_range) + @birthday = args[:birthday] if args.key?(:birthday) + @bragging_rights = args[:bragging_rights] if args.key?(:bragging_rights) + @circled_by_count = args[:circled_by_count] if args.key?(:circled_by_count) + @cover = args[:cover] if args.key?(:cover) + @current_location = args[:current_location] if args.key?(:current_location) + @display_name = args[:display_name] if args.key?(:display_name) + @domain = args[:domain] if args.key?(:domain) + @emails = args[:emails] if args.key?(:emails) + @etag = args[:etag] if args.key?(:etag) + @gender = args[:gender] if args.key?(:gender) + @id = args[:id] if args.key?(:id) + @image = args[:image] if args.key?(:image) + @is_plus_user = args[:is_plus_user] if args.key?(:is_plus_user) + @kind = args[:kind] if args.key?(:kind) + @language = args[:language] if args.key?(:language) + @name = args[:name] if args.key?(:name) + @nickname = args[:nickname] if args.key?(:nickname) + @object_type = args[:object_type] if args.key?(:object_type) + @occupation = args[:occupation] if args.key?(:occupation) + @organizations = args[:organizations] if args.key?(:organizations) + @places_lived = args[:places_lived] if args.key?(:places_lived) + @plus_one_count = args[:plus_one_count] if args.key?(:plus_one_count) + @relationship_status = args[:relationship_status] if args.key?(:relationship_status) + @skills = args[:skills] if args.key?(:skills) + @tagline = args[:tagline] if args.key?(:tagline) + @url = args[:url] if args.key?(:url) + @urls = args[:urls] if args.key?(:urls) + @verified = args[:verified] if args.key?(:verified) end # The age range of the person. Valid ranges are 17 or younger, 18 to 20, and 21 @@ -1625,8 +1625,8 @@ module Google # Update properties of this object def update!(**args) - @max = args[:max] unless args[:max].nil? - @min = args[:min] unless args[:min].nil? + @max = args[:max] if args.key?(:max) + @min = args[:min] if args.key?(:min) end end @@ -1657,9 +1657,9 @@ module Google # Update properties of this object def update!(**args) - @cover_info = args[:cover_info] unless args[:cover_info].nil? - @cover_photo = args[:cover_photo] unless args[:cover_photo].nil? - @layout = args[:layout] unless args[:layout].nil? + @cover_info = args[:cover_info] if args.key?(:cover_info) + @cover_photo = args[:cover_photo] if args.key?(:cover_photo) + @layout = args[:layout] if args.key?(:layout) end # Extra information about the cover photo. @@ -1684,8 +1684,8 @@ module Google # Update properties of this object def update!(**args) - @left_image_offset = args[:left_image_offset] unless args[:left_image_offset].nil? - @top_image_offset = args[:top_image_offset] unless args[:top_image_offset].nil? + @left_image_offset = args[:left_image_offset] if args.key?(:left_image_offset) + @top_image_offset = args[:top_image_offset] if args.key?(:top_image_offset) end end @@ -1714,9 +1714,9 @@ module Google # 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? + @height = args[:height] if args.key?(:height) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) end end end @@ -1746,8 +1746,8 @@ module Google # Update properties of this object def update!(**args) - @type = args[:type] unless args[:type].nil? - @value = args[:value] unless args[:value].nil? + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) end end @@ -1774,8 +1774,8 @@ module Google # Update properties of this object def update!(**args) - @is_default = args[:is_default] unless args[:is_default].nil? - @url = args[:url] unless args[:url].nil? + @is_default = args[:is_default] if args.key?(:is_default) + @url = args[:url] if args.key?(:url) end end @@ -1819,12 +1819,12 @@ module Google # Update properties of this object def update!(**args) - @family_name = args[:family_name] unless args[:family_name].nil? - @formatted = args[:formatted] unless args[:formatted].nil? - @given_name = args[:given_name] unless args[:given_name].nil? - @honorific_prefix = args[:honorific_prefix] unless args[:honorific_prefix].nil? - @honorific_suffix = args[:honorific_suffix] unless args[:honorific_suffix].nil? - @middle_name = args[:middle_name] unless args[:middle_name].nil? + @family_name = args[:family_name] if args.key?(:family_name) + @formatted = args[:formatted] if args.key?(:formatted) + @given_name = args[:given_name] if args.key?(:given_name) + @honorific_prefix = args[:honorific_prefix] if args.key?(:honorific_prefix) + @honorific_suffix = args[:honorific_suffix] if args.key?(:honorific_suffix) + @middle_name = args[:middle_name] if args.key?(:middle_name) end end @@ -1888,15 +1888,15 @@ module Google # Update properties of this object def update!(**args) - @department = args[:department] unless args[:department].nil? - @description = args[:description] unless args[:description].nil? - @end_date = args[:end_date] unless args[:end_date].nil? - @location = args[:location] unless args[:location].nil? - @name = args[:name] unless args[:name].nil? - @primary = args[:primary] unless args[:primary].nil? - @start_date = args[:start_date] unless args[:start_date].nil? - @title = args[:title] unless args[:title].nil? - @type = args[:type] unless args[:type].nil? + @department = args[:department] if args.key?(:department) + @description = args[:description] if args.key?(:description) + @end_date = args[:end_date] if args.key?(:end_date) + @location = args[:location] if args.key?(:location) + @name = args[:name] if args.key?(:name) + @primary = args[:primary] if args.key?(:primary) + @start_date = args[:start_date] if args.key?(:start_date) + @title = args[:title] if args.key?(:title) + @type = args[:type] if args.key?(:type) end end @@ -1922,8 +1922,8 @@ module Google # Update properties of this object def update!(**args) - @primary = args[:primary] unless args[:primary].nil? - @value = args[:value] unless args[:value].nil? + @primary = args[:primary] if args.key?(:primary) + @value = args[:value] if args.key?(:value) end end @@ -1957,9 +1957,9 @@ module Google # Update properties of this object def update!(**args) - @label = args[:label] unless args[:label].nil? - @type = args[:type] unless args[:type].nil? - @value = args[:value] unless args[:value].nil? + @label = args[:label] if args.key?(:label) + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) end end end @@ -1999,11 +1999,11 @@ module Google # Update properties of this object def update!(**args) - @address = args[:address] unless args[:address].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @position = args[:position] unless args[:position].nil? + @address = args[:address] if args.key?(:address) + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @position = args[:position] if args.key?(:position) end # The physical address of the place. @@ -2021,7 +2021,7 @@ module Google # Update properties of this object def update!(**args) - @formatted = args[:formatted] unless args[:formatted].nil? + @formatted = args[:formatted] if args.key?(:formatted) end end @@ -2045,8 +2045,8 @@ module Google # Update properties of this object def update!(**args) - @latitude = args[:latitude] unless args[:latitude].nil? - @longitude = args[:longitude] unless args[:longitude].nil? + @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) end end end @@ -2084,9 +2084,9 @@ module Google # Update properties of this object def update!(**args) - @display_name = args[:display_name] unless args[:display_name].nil? - @id = args[:id] unless args[:id].nil? - @type = args[:type] unless args[:type].nil? + @display_name = args[:display_name] if args.key?(:display_name) + @id = args[:id] if args.key?(:id) + @type = args[:type] if args.key?(:type) end end end diff --git a/generated/google/apis/prediction_v1_6/classes.rb b/generated/google/apis/prediction_v1_6/classes.rb index 6f8167918..bba35e95a 100644 --- a/generated/google/apis/prediction_v1_6/classes.rb +++ b/generated/google/apis/prediction_v1_6/classes.rb @@ -62,12 +62,12 @@ module Google # Update properties of this object def update!(**args) - @data_description = args[:data_description] unless args[:data_description].nil? - @errors = args[:errors] unless args[:errors].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @model_description = args[:model_description] unless args[:model_description].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @data_description = args[:data_description] if args.key?(:data_description) + @errors = args[:errors] if args.key?(:errors) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @model_description = args[:model_description] if args.key?(:model_description) + @self_link = args[:self_link] if args.key?(:self_link) end # Description of the data the model was trained on. @@ -90,8 +90,8 @@ module Google # Update properties of this object def update!(**args) - @features = args[:features] unless args[:features].nil? - @output_feature = args[:output_feature] unless args[:output_feature].nil? + @features = args[:features] if args.key?(:features) + @output_feature = args[:output_feature] if args.key?(:output_feature) end # @@ -124,10 +124,10 @@ module Google # Update properties of this object def update!(**args) - @categorical = args[:categorical] unless args[:categorical].nil? - @index = args[:index] unless args[:index].nil? - @numeric = args[:numeric] unless args[:numeric].nil? - @text = args[:text] unless args[:text].nil? + @categorical = args[:categorical] if args.key?(:categorical) + @index = args[:index] if args.key?(:index) + @numeric = args[:numeric] if args.key?(:numeric) + @text = args[:text] if args.key?(:text) end # Description of the categorical values of this feature. @@ -150,8 +150,8 @@ module Google # Update properties of this object def update!(**args) - @count = args[:count] unless args[:count].nil? - @values = args[:values] unless args[:values].nil? + @count = args[:count] if args.key?(:count) + @values = args[:values] if args.key?(:values) end # @@ -174,8 +174,8 @@ module Google # Update properties of this object def update!(**args) - @count = args[:count] unless args[:count].nil? - @value = args[:value] unless args[:value].nil? + @count = args[:count] if args.key?(:count) + @value = args[:value] if args.key?(:value) end end end @@ -205,9 +205,9 @@ module Google # Update properties of this object def update!(**args) - @count = args[:count] unless args[:count].nil? - @mean = args[:mean] unless args[:mean].nil? - @variance = args[:variance] unless args[:variance].nil? + @count = args[:count] if args.key?(:count) + @mean = args[:mean] if args.key?(:mean) + @variance = args[:variance] if args.key?(:variance) end end @@ -226,7 +226,7 @@ module Google # Update properties of this object def update!(**args) - @count = args[:count] unless args[:count].nil? + @count = args[:count] if args.key?(:count) end end end @@ -251,8 +251,8 @@ module Google # Update properties of this object def update!(**args) - @numeric = args[:numeric] unless args[:numeric].nil? - @text = args[:text] unless args[:text].nil? + @numeric = args[:numeric] if args.key?(:numeric) + @text = args[:text] if args.key?(:text) end # Description of the output values in the data set. @@ -280,9 +280,9 @@ module Google # Update properties of this object def update!(**args) - @count = args[:count] unless args[:count].nil? - @mean = args[:mean] unless args[:mean].nil? - @variance = args[:variance] unless args[:variance].nil? + @count = args[:count] if args.key?(:count) + @mean = args[:mean] if args.key?(:mean) + @variance = args[:variance] if args.key?(:variance) end end @@ -306,8 +306,8 @@ module Google # Update properties of this object def update!(**args) - @count = args[:count] unless args[:count].nil? - @value = args[:value] unless args[:value].nil? + @count = args[:count] if args.key?(:count) + @value = args[:value] if args.key?(:value) end end end @@ -342,9 +342,9 @@ module Google # Update properties of this object def update!(**args) - @confusion_matrix = args[:confusion_matrix] unless args[:confusion_matrix].nil? - @confusion_matrix_row_totals = args[:confusion_matrix_row_totals] unless args[:confusion_matrix_row_totals].nil? - @modelinfo = args[:modelinfo] unless args[:modelinfo].nil? + @confusion_matrix = args[:confusion_matrix] if args.key?(:confusion_matrix) + @confusion_matrix_row_totals = args[:confusion_matrix_row_totals] if args.key?(:confusion_matrix_row_totals) + @modelinfo = args[:modelinfo] if args.key?(:modelinfo) end end end @@ -364,7 +364,7 @@ module Google # Update properties of this object def update!(**args) - @input = args[:input] unless args[:input].nil? + @input = args[:input] if args.key?(:input) end # Input to the model for a prediction. @@ -382,7 +382,7 @@ module Google # Update properties of this object def update!(**args) - @csv_instance = args[:csv_instance] unless args[:csv_instance].nil? + @csv_instance = args[:csv_instance] if args.key?(:csv_instance) end end end @@ -438,14 +438,14 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @model_type = args[:model_type] unless args[:model_type].nil? - @source_model = args[:source_model] unless args[:source_model].nil? - @storage_data_location = args[:storage_data_location] unless args[:storage_data_location].nil? - @storage_pmml_location = args[:storage_pmml_location] unless args[:storage_pmml_location].nil? - @storage_pmml_model_location = args[:storage_pmml_model_location] unless args[:storage_pmml_model_location].nil? - @training_instances = args[:training_instances] unless args[:training_instances].nil? - @utility = args[:utility] unless args[:utility].nil? + @id = args[:id] if args.key?(:id) + @model_type = args[:model_type] if args.key?(:model_type) + @source_model = args[:source_model] if args.key?(:source_model) + @storage_data_location = args[:storage_data_location] if args.key?(:storage_data_location) + @storage_pmml_location = args[:storage_pmml_location] if args.key?(:storage_pmml_location) + @storage_pmml_model_location = args[:storage_pmml_model_location] if args.key?(:storage_pmml_model_location) + @training_instances = args[:training_instances] if args.key?(:training_instances) + @utility = args[:utility] if args.key?(:utility) end # @@ -468,8 +468,8 @@ module Google # Update properties of this object def update!(**args) - @csv_instance = args[:csv_instance] unless args[:csv_instance].nil? - @output = args[:output] unless args[:output].nil? + @csv_instance = args[:csv_instance] if args.key?(:csv_instance) + @output = args[:output] if args.key?(:output) end end end @@ -540,17 +540,17 @@ module Google # Update properties of this object def update!(**args) - @created = args[:created] unless args[:created].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @model_info = args[:model_info] unless args[:model_info].nil? - @model_type = args[:model_type] unless args[:model_type].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @storage_data_location = args[:storage_data_location] unless args[:storage_data_location].nil? - @storage_pmml_location = args[:storage_pmml_location] unless args[:storage_pmml_location].nil? - @storage_pmml_model_location = args[:storage_pmml_model_location] unless args[:storage_pmml_model_location].nil? - @training_complete = args[:training_complete] unless args[:training_complete].nil? - @training_status = args[:training_status] unless args[:training_status].nil? + @created = args[:created] if args.key?(:created) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @model_info = args[:model_info] if args.key?(:model_info) + @model_type = args[:model_type] if args.key?(:model_type) + @self_link = args[:self_link] if args.key?(:self_link) + @storage_data_location = args[:storage_data_location] if args.key?(:storage_data_location) + @storage_pmml_location = args[:storage_pmml_location] if args.key?(:storage_pmml_location) + @storage_pmml_model_location = args[:storage_pmml_model_location] if args.key?(:storage_pmml_model_location) + @training_complete = args[:training_complete] if args.key?(:training_complete) + @training_status = args[:training_status] if args.key?(:training_status) end # Model metadata. @@ -600,12 +600,12 @@ module Google # Update properties of this object def update!(**args) - @class_weighted_accuracy = args[:class_weighted_accuracy] unless args[:class_weighted_accuracy].nil? - @classification_accuracy = args[:classification_accuracy] unless args[:classification_accuracy].nil? - @mean_squared_error = args[:mean_squared_error] unless args[:mean_squared_error].nil? - @model_type = args[:model_type] unless args[:model_type].nil? - @number_instances = args[:number_instances] unless args[:number_instances].nil? - @number_labels = args[:number_labels] unless args[:number_labels].nil? + @class_weighted_accuracy = args[:class_weighted_accuracy] if args.key?(:class_weighted_accuracy) + @classification_accuracy = args[:classification_accuracy] if args.key?(:classification_accuracy) + @mean_squared_error = args[:mean_squared_error] if args.key?(:mean_squared_error) + @model_type = args[:model_type] if args.key?(:model_type) + @number_instances = args[:number_instances] if args.key?(:number_instances) + @number_labels = args[:number_labels] if args.key?(:number_labels) end end end @@ -640,10 +640,10 @@ module Google # 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? - @self_link = args[:self_link] unless args[:self_link].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -688,12 +688,12 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @output_label = args[:output_label] unless args[:output_label].nil? - @output_multi = args[:output_multi] unless args[:output_multi].nil? - @output_value = args[:output_value] unless args[:output_value].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @output_label = args[:output_label] if args.key?(:output_label) + @output_multi = args[:output_multi] if args.key?(:output_multi) + @output_value = args[:output_value] if args.key?(:output_value) + @self_link = args[:self_link] if args.key?(:self_link) end # @@ -716,8 +716,8 @@ module Google # Update properties of this object def update!(**args) - @label = args[:label] unless args[:label].nil? - @score = args[:score] unless args[:score].nil? + @label = args[:label] if args.key?(:label) + @score = args[:score] if args.key?(:score) end end end @@ -742,8 +742,8 @@ module Google # Update properties of this object def update!(**args) - @csv_instance = args[:csv_instance] unless args[:csv_instance].nil? - @output = args[:output] unless args[:output].nil? + @csv_instance = args[:csv_instance] if args.key?(:csv_instance) + @output = args[:output] if args.key?(:output) end end end diff --git a/generated/google/apis/proximitybeacon_v1beta1/classes.rb b/generated/google/apis/proximitybeacon_v1beta1/classes.rb index 71ba77224..ec845ade2 100644 --- a/generated/google/apis/proximitybeacon_v1beta1/classes.rb +++ b/generated/google/apis/proximitybeacon_v1beta1/classes.rb @@ -105,15 +105,15 @@ module Google # 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? + @beacon_name = args[:beacon_name] if args.key?(:beacon_name) + @advertised_id = args[:advertised_id] if args.key?(:advertised_id) + @status = args[:status] if args.key?(:status) + @place_id = args[:place_id] if args.key?(:place_id) + @lat_lng = args[:lat_lng] if args.key?(:lat_lng) + @indoor_level = args[:indoor_level] if args.key?(:indoor_level) + @expected_stability = args[:expected_stability] if args.key?(:expected_stability) + @description = args[:description] if args.key?(:description) + @properties = args[:properties] if args.key?(:properties) end end @@ -141,8 +141,8 @@ module Google # Update properties of this object def update!(**args) - @type = args[:type] unless args[:type].nil? - @id = args[:id] unless args[:id].nil? + @type = args[:type] if args.key?(:type) + @id = args[:id] if args.key?(:id) end end @@ -184,8 +184,8 @@ module Google # Update properties of this object def update!(**args) - @latitude = args[:latitude] unless args[:latitude].nil? - @longitude = args[:longitude] unless args[:longitude].nil? + @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) end end @@ -205,7 +205,7 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? + @name = args[:name] if args.key?(:name) end end @@ -253,9 +253,9 @@ module Google # 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? + @beacons = args[:beacons] if args.key?(:beacons) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @total_count = args[:total_count] if args.key?(:total_count) end end @@ -290,9 +290,9 @@ module Google # 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? + @attachment_name = args[:attachment_name] if args.key?(:attachment_name) + @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type) + @data = args[:data] if args.key?(:data) end end @@ -311,7 +311,7 @@ module Google # Update properties of this object def update!(**args) - @attachments = args[:attachments] unless args[:attachments].nil? + @attachments = args[:attachments] if args.key?(:attachments) end end @@ -330,7 +330,7 @@ module Google # Update properties of this object def update!(**args) - @num_deleted = args[:num_deleted] unless args[:num_deleted].nil? + @num_deleted = args[:num_deleted] if args.key?(:num_deleted) end end @@ -349,7 +349,7 @@ module Google # Update properties of this object def update!(**args) - @namespaces = args[:namespaces] unless args[:namespaces].nil? + @namespaces = args[:namespaces] if args.key?(:namespaces) end end @@ -377,8 +377,8 @@ module Google # 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? + @namespace_name = args[:namespace_name] if args.key?(:namespace_name) + @serving_visibility = args[:serving_visibility] if args.key?(:serving_visibility) end end @@ -403,8 +403,8 @@ module Google # 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? + @diagnostics = args[:diagnostics] if args.key?(:diagnostics) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -439,9 +439,9 @@ module Google # 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? + @beacon_name = args[:beacon_name] if args.key?(:beacon_name) + @estimated_low_battery_date = args[:estimated_low_battery_date] if args.key?(:estimated_low_battery_date) + @alerts = args[:alerts] if args.key?(:alerts) end end @@ -478,9 +478,9 @@ module Google # 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? + @year = args[:year] if args.key?(:year) + @month = args[:month] if args.key?(:month) + @day = args[:day] if args.key?(:day) end end @@ -508,8 +508,8 @@ module Google # 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? + @observations = args[:observations] if args.key?(:observations) + @namespaced_types = args[:namespaced_types] if args.key?(:namespaced_types) end end @@ -541,9 +541,9 @@ module Google # 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? + @advertised_id = args[:advertised_id] if args.key?(:advertised_id) + @telemetry = args[:telemetry] if args.key?(:telemetry) + @timestamp_ms = args[:timestamp_ms] if args.key?(:timestamp_ms) end end @@ -563,7 +563,7 @@ module Google # Update properties of this object def update!(**args) - @beacons = args[:beacons] unless args[:beacons].nil? + @beacons = args[:beacons] if args.key?(:beacons) end end @@ -600,10 +600,10 @@ module Google # 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? + @advertised_id = args[:advertised_id] if args.key?(:advertised_id) + @beacon_name = args[:beacon_name] if args.key?(:beacon_name) + @description = args[:description] if args.key?(:description) + @attachments = args[:attachments] if args.key?(:attachments) end end @@ -630,8 +630,8 @@ module Google # 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? + @namespaced_type = args[:namespaced_type] if args.key?(:namespaced_type) + @data = args[:data] if args.key?(:data) end end end diff --git a/generated/google/apis/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb index fc6f016bc..41c708182 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -46,7 +46,7 @@ module Google # Update properties of this object def update!(**args) - @policy = args[:policy] unless args[:policy].nil? + @policy = args[:policy] if args.key?(:policy) end end @@ -86,9 +86,9 @@ module Google # 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? + @version = args[:version] if args.key?(:version) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) end end @@ -124,8 +124,8 @@ module Google # Update properties of this object def update!(**args) - @role = args[:role] unless args[:role].nil? - @members = args[:members] unless args[:members].nil? + @role = args[:role] if args.key?(:role) + @members = args[:members] if args.key?(:members) end end @@ -145,7 +145,7 @@ module Google # Update properties of this object def update!(**args) - @permissions = args[:permissions] unless args[:permissions].nil? + @permissions = args[:permissions] if args.key?(:permissions) end end @@ -164,7 +164,7 @@ module Google # Update properties of this object def update!(**args) - @permissions = args[:permissions] unless args[:permissions].nil? + @permissions = args[:permissions] if args.key?(:permissions) end end @@ -187,7 +187,7 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? + @name = args[:name] if args.key?(:name) end end @@ -206,7 +206,7 @@ module Google # Update properties of this object def update!(**args) - @messages = args[:messages] unless args[:messages].nil? + @messages = args[:messages] if args.key?(:messages) end end @@ -247,10 +247,10 @@ module Google # 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? + @data = args[:data] if args.key?(:data) + @attributes = args[:attributes] if args.key?(:attributes) + @message_id = args[:message_id] if args.key?(:message_id) + @publish_time = args[:publish_time] if args.key?(:publish_time) end end @@ -270,7 +270,7 @@ module Google # Update properties of this object def update!(**args) - @message_ids = args[:message_ids] unless args[:message_ids].nil? + @message_ids = args[:message_ids] if args.key?(:message_ids) end end @@ -295,8 +295,8 @@ module Google # 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? + @topics = args[:topics] if args.key?(:topics) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -322,8 +322,8 @@ module Google # 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? + @subscriptions = args[:subscriptions] if args.key?(:subscriptions) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -390,10 +390,10 @@ module Google # 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? + @name = args[:name] if args.key?(:name) + @topic = args[:topic] if args.key?(:topic) + @push_config = args[:push_config] if args.key?(:push_config) + @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds) end end @@ -431,8 +431,8 @@ module Google # 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? + @push_endpoint = args[:push_endpoint] if args.key?(:push_endpoint) + @attributes = args[:attributes] if args.key?(:attributes) end end @@ -458,8 +458,8 @@ module Google # 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? + @subscriptions = args[:subscriptions] if args.key?(:subscriptions) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -487,8 +487,8 @@ module Google # 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? + @ack_ids = args[:ack_ids] if args.key?(:ack_ids) + @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds) end end @@ -508,7 +508,7 @@ module Google # Update properties of this object def update!(**args) - @ack_ids = args[:ack_ids] unless args[:ack_ids].nil? + @ack_ids = args[:ack_ids] if args.key?(:ack_ids) end end @@ -538,8 +538,8 @@ module Google # 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? + @return_immediately = args[:return_immediately] if args.key?(:return_immediately) + @max_messages = args[:max_messages] if args.key?(:max_messages) end end @@ -561,7 +561,7 @@ module Google # Update properties of this object def update!(**args) - @received_messages = args[:received_messages] unless args[:received_messages].nil? + @received_messages = args[:received_messages] if args.key?(:received_messages) end end @@ -586,8 +586,8 @@ module Google # 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? + @ack_id = args[:ack_id] if args.key?(:ack_id) + @message = args[:message] if args.key?(:message) end end @@ -606,7 +606,7 @@ module Google # Update properties of this object def update!(**args) - @push_config = args[:push_config] unless args[:push_config].nil? + @push_config = args[:push_config] if args.key?(:push_config) end end end diff --git a/generated/google/apis/qpx_express_v1/classes.rb b/generated/google/apis/qpx_express_v1/classes.rb index 18c6531ee..75dea14af 100644 --- a/generated/google/apis/qpx_express_v1/classes.rb +++ b/generated/google/apis/qpx_express_v1/classes.rb @@ -48,9 +48,9 @@ module Google # Update properties of this object def update!(**args) - @code = args[:code] unless args[:code].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @code = args[:code] if args.key?(:code) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -87,10 +87,10 @@ module Google # Update properties of this object def update!(**args) - @city = args[:city] unless args[:city].nil? - @code = args[:code] unless args[:code].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @city = args[:city] if args.key?(:city) + @code = args[:code] if args.key?(:code) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -130,11 +130,11 @@ module Google # Update properties of this object def update!(**args) - @commercial_name = args[:commercial_name] unless args[:commercial_name].nil? - @count = args[:count] unless args[:count].nil? - @description = args[:description] unless args[:description].nil? - @kind = args[:kind] unless args[:kind].nil? - @subcode = args[:subcode] unless args[:subcode].nil? + @commercial_name = args[:commercial_name] if args.key?(:commercial_name) + @count = args[:count] if args.key?(:count) + @description = args[:description] if args.key?(:description) + @kind = args[:kind] if args.key?(:kind) + @subcode = args[:subcode] if args.key?(:subcode) end end @@ -166,9 +166,9 @@ module Google # Update properties of this object def update!(**args) - @code = args[:code] unless args[:code].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @code = args[:code] if args.key?(:code) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -205,10 +205,10 @@ module Google # Update properties of this object def update!(**args) - @code = args[:code] unless args[:code].nil? - @country = args[:country] unless args[:country].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @code = args[:code] if args.key?(:code) + @country = args[:country] if args.key?(:country) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -255,12 +255,12 @@ module Google # Update properties of this object def update!(**args) - @aircraft = args[:aircraft] unless args[:aircraft].nil? - @airport = args[:airport] unless args[:airport].nil? - @carrier = args[:carrier] unless args[:carrier].nil? - @city = args[:city] unless args[:city].nil? - @kind = args[:kind] unless args[:kind].nil? - @tax = args[:tax] unless args[:tax].nil? + @aircraft = args[:aircraft] if args.key?(:aircraft) + @airport = args[:airport] if args.key?(:airport) + @carrier = args[:carrier] if args.key?(:carrier) + @city = args[:city] if args.key?(:city) + @kind = args[:kind] if args.key?(:kind) + @tax = args[:tax] if args.key?(:tax) end end @@ -315,13 +315,13 @@ module Google # Update properties of this object def update!(**args) - @basis_code = args[:basis_code] unless args[:basis_code].nil? - @carrier = args[:carrier] unless args[:carrier].nil? - @destination = args[:destination] unless args[:destination].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @origin = args[:origin] unless args[:origin].nil? - @private = args[:private] unless args[:private].nil? + @basis_code = args[:basis_code] if args.key?(:basis_code) + @carrier = args[:carrier] if args.key?(:carrier) + @destination = args[:destination] if args.key?(:destination) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @origin = args[:origin] if args.key?(:origin) + @private = args[:private] if args.key?(:private) end end @@ -351,8 +351,8 @@ module Google # Update properties of this object def update!(**args) - @carrier = args[:carrier] unless args[:carrier].nil? - @number = args[:number] unless args[:number].nil? + @carrier = args[:carrier] if args.key?(:carrier) + @number = args[:number] if args.key?(:number) end end @@ -398,12 +398,12 @@ module Google # Update properties of this object def update!(**args) - @bag_descriptor = args[:bag_descriptor] unless args[:bag_descriptor].nil? - @kilos = args[:kilos] unless args[:kilos].nil? - @kilos_per_piece = args[:kilos_per_piece] unless args[:kilos_per_piece].nil? - @kind = args[:kind] unless args[:kind].nil? - @pieces = args[:pieces] unless args[:pieces].nil? - @pounds = args[:pounds] unless args[:pounds].nil? + @bag_descriptor = args[:bag_descriptor] if args.key?(:bag_descriptor) + @kilos = args[:kilos] if args.key?(:kilos) + @kilos_per_piece = args[:kilos_per_piece] if args.key?(:kilos_per_piece) + @kind = args[:kind] if args.key?(:kind) + @pieces = args[:pieces] if args.key?(:pieces) + @pounds = args[:pounds] if args.key?(:pounds) end end @@ -517,23 +517,23 @@ module Google # Update properties of this object def update!(**args) - @aircraft = args[:aircraft] unless args[:aircraft].nil? - @arrival_time = args[:arrival_time] unless args[:arrival_time].nil? - @change_plane = args[:change_plane] unless args[:change_plane].nil? - @connection_duration = args[:connection_duration] unless args[:connection_duration].nil? - @departure_time = args[:departure_time] unless args[:departure_time].nil? - @destination = args[:destination] unless args[:destination].nil? - @destination_terminal = args[:destination_terminal] unless args[:destination_terminal].nil? - @duration = args[:duration] unless args[:duration].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @meal = args[:meal] unless args[:meal].nil? - @mileage = args[:mileage] unless args[:mileage].nil? - @on_time_performance = args[:on_time_performance] unless args[:on_time_performance].nil? - @operating_disclosure = args[:operating_disclosure] unless args[:operating_disclosure].nil? - @origin = args[:origin] unless args[:origin].nil? - @origin_terminal = args[:origin_terminal] unless args[:origin_terminal].nil? - @secure = args[:secure] unless args[:secure].nil? + @aircraft = args[:aircraft] if args.key?(:aircraft) + @arrival_time = args[:arrival_time] if args.key?(:arrival_time) + @change_plane = args[:change_plane] if args.key?(:change_plane) + @connection_duration = args[:connection_duration] if args.key?(:connection_duration) + @departure_time = args[:departure_time] if args.key?(:departure_time) + @destination = args[:destination] if args.key?(:destination) + @destination_terminal = args[:destination_terminal] if args.key?(:destination_terminal) + @duration = args[:duration] if args.key?(:duration) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @meal = args[:meal] if args.key?(:meal) + @mileage = args[:mileage] if args.key?(:mileage) + @on_time_performance = args[:on_time_performance] if args.key?(:on_time_performance) + @operating_disclosure = args[:operating_disclosure] if args.key?(:operating_disclosure) + @origin = args[:origin] if args.key?(:origin) + @origin_terminal = args[:origin_terminal] if args.key?(:origin_terminal) + @secure = args[:secure] if args.key?(:secure) end end @@ -580,12 +580,12 @@ module Google # Update properties of this object def update!(**args) - @adult_count = args[:adult_count] unless args[:adult_count].nil? - @child_count = args[:child_count] unless args[:child_count].nil? - @infant_in_lap_count = args[:infant_in_lap_count] unless args[:infant_in_lap_count].nil? - @infant_in_seat_count = args[:infant_in_seat_count] unless args[:infant_in_seat_count].nil? - @kind = args[:kind] unless args[:kind].nil? - @senior_count = args[:senior_count] unless args[:senior_count].nil? + @adult_count = args[:adult_count] if args.key?(:adult_count) + @child_count = args[:child_count] if args.key?(:child_count) + @infant_in_lap_count = args[:infant_in_lap_count] if args.key?(:infant_in_lap_count) + @infant_in_seat_count = args[:infant_in_seat_count] if args.key?(:infant_in_seat_count) + @kind = args[:kind] if args.key?(:kind) + @senior_count = args[:senior_count] if args.key?(:senior_count) end end @@ -678,19 +678,19 @@ module Google # Update properties of this object def update!(**args) - @base_fare_total = args[:base_fare_total] unless args[:base_fare_total].nil? - @fare = args[:fare] unless args[:fare].nil? - @fare_calculation = args[:fare_calculation] unless args[:fare_calculation].nil? - @kind = args[:kind] unless args[:kind].nil? - @latest_ticketing_time = args[:latest_ticketing_time] unless args[:latest_ticketing_time].nil? - @passengers = args[:passengers] unless args[:passengers].nil? - @ptc = args[:ptc] unless args[:ptc].nil? - @refundable = args[:refundable] unless args[:refundable].nil? - @sale_fare_total = args[:sale_fare_total] unless args[:sale_fare_total].nil? - @sale_tax_total = args[:sale_tax_total] unless args[:sale_tax_total].nil? - @sale_total = args[:sale_total] unless args[:sale_total].nil? - @segment_pricing = args[:segment_pricing] unless args[:segment_pricing].nil? - @tax = args[:tax] unless args[:tax].nil? + @base_fare_total = args[:base_fare_total] if args.key?(:base_fare_total) + @fare = args[:fare] if args.key?(:fare) + @fare_calculation = args[:fare_calculation] if args.key?(:fare_calculation) + @kind = args[:kind] if args.key?(:kind) + @latest_ticketing_time = args[:latest_ticketing_time] if args.key?(:latest_ticketing_time) + @passengers = args[:passengers] if args.key?(:passengers) + @ptc = args[:ptc] if args.key?(:ptc) + @refundable = args[:refundable] if args.key?(:refundable) + @sale_fare_total = args[:sale_fare_total] if args.key?(:sale_fare_total) + @sale_tax_total = args[:sale_tax_total] if args.key?(:sale_tax_total) + @sale_total = args[:sale_total] if args.key?(:sale_total) + @segment_pricing = args[:segment_pricing] if args.key?(:segment_pricing) + @tax = args[:tax] if args.key?(:tax) end end @@ -780,17 +780,17 @@ module Google # Update properties of this object def update!(**args) - @booking_code = args[:booking_code] unless args[:booking_code].nil? - @booking_code_count = args[:booking_code_count] unless args[:booking_code_count].nil? - @cabin = args[:cabin] unless args[:cabin].nil? - @connection_duration = args[:connection_duration] unless args[:connection_duration].nil? - @duration = args[:duration] unless args[:duration].nil? - @flight = args[:flight] unless args[:flight].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @leg = args[:leg] unless args[:leg].nil? - @married_segment_group = args[:married_segment_group] unless args[:married_segment_group].nil? - @subject_to_government_approval = args[:subject_to_government_approval] unless args[:subject_to_government_approval].nil? + @booking_code = args[:booking_code] if args.key?(:booking_code) + @booking_code_count = args[:booking_code_count] if args.key?(:booking_code_count) + @cabin = args[:cabin] if args.key?(:cabin) + @connection_duration = args[:connection_duration] if args.key?(:connection_duration) + @duration = args[:duration] if args.key?(:duration) + @flight = args[:flight] if args.key?(:flight) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @leg = args[:leg] if args.key?(:leg) + @married_segment_group = args[:married_segment_group] if args.key?(:married_segment_group) + @subject_to_government_approval = args[:subject_to_government_approval] if args.key?(:subject_to_government_approval) end end @@ -826,10 +826,10 @@ module Google # Update properties of this object def update!(**args) - @fare_id = args[:fare_id] unless args[:fare_id].nil? - @free_baggage_option = args[:free_baggage_option] unless args[:free_baggage_option].nil? - @kind = args[:kind] unless args[:kind].nil? - @segment_id = args[:segment_id] unless args[:segment_id].nil? + @fare_id = args[:fare_id] if args.key?(:fare_id) + @free_baggage_option = args[:free_baggage_option] if args.key?(:free_baggage_option) + @kind = args[:kind] if args.key?(:kind) + @segment_id = args[:segment_id] if args.key?(:segment_id) end end @@ -868,9 +868,9 @@ module Google # Update properties of this object def update!(**args) - @duration = args[:duration] unless args[:duration].nil? - @kind = args[:kind] unless args[:kind].nil? - @segment = args[:segment] unless args[:segment].nil? + @duration = args[:duration] if args.key?(:duration) + @kind = args[:kind] if args.key?(:kind) + @segment = args[:segment] if args.key?(:segment) end end @@ -945,17 +945,17 @@ module Google # Update properties of this object def update!(**args) - @alliance = args[:alliance] unless args[:alliance].nil? - @date = args[:date] unless args[:date].nil? - @destination = args[:destination] unless args[:destination].nil? - @kind = args[:kind] unless args[:kind].nil? - @max_connection_duration = args[:max_connection_duration] unless args[:max_connection_duration].nil? - @max_stops = args[:max_stops] unless args[:max_stops].nil? - @origin = args[:origin] unless args[:origin].nil? - @permitted_carrier = args[:permitted_carrier] unless args[:permitted_carrier].nil? - @permitted_departure_time = args[:permitted_departure_time] unless args[:permitted_departure_time].nil? - @preferred_cabin = args[:preferred_cabin] unless args[:preferred_cabin].nil? - @prohibited_carrier = args[:prohibited_carrier] unless args[:prohibited_carrier].nil? + @alliance = args[:alliance] if args.key?(:alliance) + @date = args[:date] if args.key?(:date) + @destination = args[:destination] if args.key?(:destination) + @kind = args[:kind] if args.key?(:kind) + @max_connection_duration = args[:max_connection_duration] if args.key?(:max_connection_duration) + @max_stops = args[:max_stops] if args.key?(:max_stops) + @origin = args[:origin] if args.key?(:origin) + @permitted_carrier = args[:permitted_carrier] if args.key?(:permitted_carrier) + @permitted_departure_time = args[:permitted_departure_time] if args.key?(:permitted_departure_time) + @preferred_cabin = args[:preferred_cabin] if args.key?(:preferred_cabin) + @prohibited_carrier = args[:prohibited_carrier] if args.key?(:prohibited_carrier) end end @@ -985,9 +985,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) end end @@ -1033,12 +1033,12 @@ module Google # Update properties of this object def update!(**args) - @charge_type = args[:charge_type] unless args[:charge_type].nil? - @code = args[:code] unless args[:code].nil? - @country = args[:country] unless args[:country].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @sale_price = args[:sale_price] unless args[:sale_price].nil? + @charge_type = args[:charge_type] if args.key?(:charge_type) + @code = args[:code] if args.key?(:code) + @country = args[:country] if args.key?(:country) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @sale_price = args[:sale_price] if args.key?(:sale_price) end end @@ -1069,9 +1069,9 @@ module Google # Update properties of this object def update!(**args) - @earliest_time = args[:earliest_time] unless args[:earliest_time].nil? - @kind = args[:kind] unless args[:kind].nil? - @latest_time = args[:latest_time] unless args[:latest_time].nil? + @earliest_time = args[:earliest_time] if args.key?(:earliest_time) + @kind = args[:kind] if args.key?(:kind) + @latest_time = args[:latest_time] if args.key?(:latest_time) end end @@ -1112,11 +1112,11 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @pricing = args[:pricing] unless args[:pricing].nil? - @sale_total = args[:sale_total] unless args[:sale_total].nil? - @slice = args[:slice] unless args[:slice].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @pricing = args[:pricing] if args.key?(:pricing) + @sale_total = args[:sale_total] if args.key?(:sale_total) + @slice = args[:slice] if args.key?(:slice) end end @@ -1171,12 +1171,12 @@ module Google # Update properties of this object def update!(**args) - @max_price = args[:max_price] unless args[:max_price].nil? - @passengers = args[:passengers] unless args[:passengers].nil? - @refundable = args[:refundable] unless args[:refundable].nil? - @sale_country = args[:sale_country] unless args[:sale_country].nil? - @slice = args[:slice] unless args[:slice].nil? - @solutions = args[:solutions] unless args[:solutions].nil? + @max_price = args[:max_price] if args.key?(:max_price) + @passengers = args[:passengers] if args.key?(:passengers) + @refundable = args[:refundable] if args.key?(:refundable) + @sale_country = args[:sale_country] if args.key?(:sale_country) + @slice = args[:slice] if args.key?(:slice) + @solutions = args[:solutions] if args.key?(:solutions) end end @@ -1212,10 +1212,10 @@ module Google # Update properties of this object def update!(**args) - @data = args[:data] unless args[:data].nil? - @kind = args[:kind] unless args[:kind].nil? - @request_id = args[:request_id] unless args[:request_id].nil? - @trip_option = args[:trip_option] unless args[:trip_option].nil? + @data = args[:data] if args.key?(:data) + @kind = args[:kind] if args.key?(:kind) + @request_id = args[:request_id] if args.key?(:request_id) + @trip_option = args[:trip_option] if args.key?(:trip_option) end end @@ -1234,7 +1234,7 @@ module Google # Update properties of this object def update!(**args) - @request = args[:request] unless args[:request].nil? + @request = args[:request] if args.key?(:request) end end @@ -1259,8 +1259,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @trips = args[:trips] unless args[:trips].nil? + @kind = args[:kind] if args.key?(:kind) + @trips = args[:trips] if args.key?(:trips) end end end diff --git a/generated/google/apis/replicapool_v1beta2/classes.rb b/generated/google/apis/replicapool_v1beta2/classes.rb index b95aa0f8f..677c5938b 100644 --- a/generated/google/apis/replicapool_v1beta2/classes.rb +++ b/generated/google/apis/replicapool_v1beta2/classes.rb @@ -119,20 +119,20 @@ 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_size = args[:current_size] unless args[:current_size].nil? - @description = args[:description] unless args[:description].nil? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @group = args[:group] unless args[:group].nil? - @id = args[:id] unless args[:id].nil? - @instance_template = args[:instance_template] unless args[:instance_template].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? - @target_pools = args[:target_pools] unless args[:target_pools].nil? - @target_size = args[:target_size] unless args[:target_size].nil? + @auto_healing_policies = args[:auto_healing_policies] if args.key?(:auto_healing_policies) + @base_instance_name = args[:base_instance_name] if args.key?(:base_instance_name) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @current_size = args[:current_size] if args.key?(:current_size) + @description = args[:description] if args.key?(:description) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @group = args[:group] if args.key?(:group) + @id = args[:id] if args.key?(:id) + @instance_template = args[:instance_template] if args.key?(:instance_template) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @self_link = args[:self_link] if args.key?(:self_link) + @target_pools = args[:target_pools] if args.key?(:target_pools) + @target_size = args[:target_size] if args.key?(:target_size) end end @@ -171,11 +171,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -195,7 +195,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -215,7 +215,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -235,7 +235,7 @@ module Google # Update properties of this object def update!(**args) - @instances = args[:instances] unless args[:instances].nil? + @instances = args[:instances] if args.key?(:instances) end end @@ -255,7 +255,7 @@ module Google # Update properties of this object def update!(**args) - @instance_template = args[:instance_template] unless args[:instance_template].nil? + @instance_template = args[:instance_template] if args.key?(:instance_template) end end @@ -283,8 +283,8 @@ module Google # Update properties of this object def update!(**args) - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @target_pools = args[:target_pools] unless args[:target_pools].nil? + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @target_pools = args[:target_pools] if args.key?(:target_pools) end end @@ -422,28 +422,28 @@ module Google # 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? + @client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @end_time = args[:end_time] if args.key?(:end_time) + @error = args[:error] if args.key?(:error) + @http_error_message = args[:http_error_message] if args.key?(:http_error_message) + @http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code) + @id = args[:id] if args.key?(:id) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @progress = args[:progress] if args.key?(:progress) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @start_time = args[:start_time] if args.key?(:start_time) + @status = args[:status] if args.key?(:status) + @status_message = args[:status_message] if args.key?(:status_message) + @target_id = args[:target_id] if args.key?(:target_id) + @target_link = args[:target_link] if args.key?(:target_link) + @user = args[:user] if args.key?(:user) + @warnings = args[:warnings] if args.key?(:warnings) + @zone = args[:zone] if args.key?(:zone) end # [Output Only] If errors occurred during processing of this operation, this @@ -462,7 +462,7 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? + @errors = args[:errors] if args.key?(:errors) end # @@ -491,9 +491,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @location = args[:location] if args.key?(:location) + @message = args[:message] if args.key?(:message) end end end @@ -523,9 +523,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -548,8 +548,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -590,11 +590,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -622,8 +622,8 @@ module Google # 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? + @action_type = args[:action_type] if args.key?(:action_type) + @health_check = args[:health_check] if args.key?(:health_check) end end end diff --git a/generated/google/apis/replicapoolupdater_v1beta1/classes.rb b/generated/google/apis/replicapoolupdater_v1beta1/classes.rb index 175179432..25529ad99 100644 --- a/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +++ b/generated/google/apis/replicapoolupdater_v1beta1/classes.rb @@ -57,9 +57,9 @@ module Google # Update properties of this object def update!(**args) - @error = args[:error] unless args[:error].nil? - @instance = args[:instance] unless args[:instance].nil? - @status = args[:status] unless args[:status].nil? + @error = args[:error] if args.key?(:error) + @instance = args[:instance] if args.key?(:instance) + @status = args[:status] if args.key?(:status) end # Errors that occurred during the instance update. @@ -77,7 +77,7 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? + @errors = args[:errors] if args.key?(:errors) end # @@ -106,9 +106,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @location = args[:location] if args.key?(:location) + @message = args[:message] if args.key?(:message) end end end @@ -144,10 +144,10 @@ module Google # 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? - @self_link = args[:self_link] unless args[:self_link].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -278,28 +278,28 @@ module Google # 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? + @client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @end_time = args[:end_time] if args.key?(:end_time) + @error = args[:error] if args.key?(:error) + @http_error_message = args[:http_error_message] if args.key?(:http_error_message) + @http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code) + @id = args[:id] if args.key?(:id) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @progress = args[:progress] if args.key?(:progress) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @start_time = args[:start_time] if args.key?(:start_time) + @status = args[:status] if args.key?(:status) + @status_message = args[:status_message] if args.key?(:status_message) + @target_id = args[:target_id] if args.key?(:target_id) + @target_link = args[:target_link] if args.key?(:target_link) + @user = args[:user] if args.key?(:user) + @warnings = args[:warnings] if args.key?(:warnings) + @zone = args[:zone] if args.key?(:zone) end # [Output Only] If errors occurred during processing of this operation, this @@ -318,7 +318,7 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? + @errors = args[:errors] if args.key?(:errors) end # @@ -347,9 +347,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @location = args[:location] if args.key?(:location) + @message = args[:message] if args.key?(:message) end end end @@ -379,9 +379,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -404,8 +404,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -447,11 +447,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -567,22 +567,22 @@ module Google # Update properties of this object def update!(**args) - @action_type = args[:action_type] unless args[:action_type].nil? - @creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil? - @description = args[:description] unless args[:description].nil? - @error = args[:error] unless args[:error].nil? - @id = args[:id] unless args[:id].nil? - @instance_group = args[:instance_group] unless args[:instance_group].nil? - @instance_group_manager = args[:instance_group_manager] unless args[:instance_group_manager].nil? - @instance_template = args[:instance_template] unless args[:instance_template].nil? - @kind = args[:kind] unless args[:kind].nil? - @old_instance_template = args[:old_instance_template] unless args[:old_instance_template].nil? - @policy = args[:policy] unless args[:policy].nil? - @progress = args[:progress] unless args[:progress].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @status = args[:status] unless args[:status].nil? - @status_message = args[:status_message] unless args[:status_message].nil? - @user = args[:user] unless args[:user].nil? + @action_type = args[:action_type] if args.key?(:action_type) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @error = args[:error] if args.key?(:error) + @id = args[:id] if args.key?(:id) + @instance_group = args[:instance_group] if args.key?(:instance_group) + @instance_group_manager = args[:instance_group_manager] if args.key?(:instance_group_manager) + @instance_template = args[:instance_template] if args.key?(:instance_template) + @kind = args[:kind] if args.key?(:kind) + @old_instance_template = args[:old_instance_template] if args.key?(:old_instance_template) + @policy = args[:policy] if args.key?(:policy) + @progress = args[:progress] if args.key?(:progress) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) + @status_message = args[:status_message] if args.key?(:status_message) + @user = args[:user] if args.key?(:user) end # [Output Only] Errors that occurred during the rolling update. @@ -600,7 +600,7 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? + @errors = args[:errors] if args.key?(:errors) end # @@ -629,9 +629,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @location = args[:location] if args.key?(:location) + @message = args[:message] if args.key?(:message) end end end @@ -683,11 +683,11 @@ module Google # Update properties of this object def update!(**args) - @auto_pause_after_instances = args[:auto_pause_after_instances] unless args[:auto_pause_after_instances].nil? - @instance_startup_timeout_sec = args[:instance_startup_timeout_sec] unless args[:instance_startup_timeout_sec].nil? - @max_num_concurrent_instances = args[:max_num_concurrent_instances] unless args[:max_num_concurrent_instances].nil? - @max_num_failed_instances = args[:max_num_failed_instances] unless args[:max_num_failed_instances].nil? - @min_instance_update_time_sec = args[:min_instance_update_time_sec] unless args[:min_instance_update_time_sec].nil? + @auto_pause_after_instances = args[:auto_pause_after_instances] if args.key?(:auto_pause_after_instances) + @instance_startup_timeout_sec = args[:instance_startup_timeout_sec] if args.key?(:instance_startup_timeout_sec) + @max_num_concurrent_instances = args[:max_num_concurrent_instances] if args.key?(:max_num_concurrent_instances) + @max_num_failed_instances = args[:max_num_failed_instances] if args.key?(:max_num_failed_instances) + @min_instance_update_time_sec = args[:min_instance_update_time_sec] if args.key?(:min_instance_update_time_sec) end end end @@ -722,10 +722,10 @@ module Google # 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? - @self_link = args[:self_link] unless args[:self_link].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end end diff --git a/generated/google/apis/reseller_v1/classes.rb b/generated/google/apis/reseller_v1/classes.rb index dea3fccac..5abd336fa 100644 --- a/generated/google/apis/reseller_v1/classes.rb +++ b/generated/google/apis/reseller_v1/classes.rb @@ -85,16 +85,16 @@ module Google # 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? - @kind = args[:kind] unless args[:kind].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? + @address_line1 = args[:address_line1] if args.key?(:address_line1) + @address_line2 = args[:address_line2] if args.key?(:address_line2) + @address_line3 = args[:address_line3] if args.key?(:address_line3) + @contact_name = args[:contact_name] if args.key?(:contact_name) + @country_code = args[:country_code] if args.key?(:country_code) + @kind = args[:kind] if args.key?(:kind) + @locality = args[:locality] if args.key?(:locality) + @organization_name = args[:organization_name] if args.key?(:organization_name) + @postal_code = args[:postal_code] if args.key?(:postal_code) + @region = args[:region] if args.key?(:region) end end @@ -128,10 +128,10 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @plan_name = args[:plan_name] unless args[:plan_name].nil? - @purchase_order_id = args[:purchase_order_id] unless args[:purchase_order_id].nil? - @seats = args[:seats] unless args[:seats].nil? + @kind = args[:kind] if args.key?(:kind) + @plan_name = args[:plan_name] if args.key?(:plan_name) + @purchase_order_id = args[:purchase_order_id] if args.key?(:purchase_order_id) + @seats = args[:seats] if args.key?(:seats) end end @@ -186,14 +186,14 @@ module Google # Update properties of this object 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? - @postal_address = args[:postal_address] unless args[:postal_address].nil? - @resource_ui_url = args[:resource_ui_url] unless args[:resource_ui_url].nil? + @alternate_email = args[:alternate_email] if args.key?(:alternate_email) + @customer_domain = args[:customer_domain] if args.key?(:customer_domain) + @customer_domain_verified = args[:customer_domain_verified] if args.key?(:customer_domain_verified) + @customer_id = args[:customer_id] if args.key?(:customer_id) + @kind = args[:kind] if args.key?(:kind) + @phone_number = args[:phone_number] if args.key?(:phone_number) + @postal_address = args[:postal_address] if args.key?(:postal_address) + @resource_ui_url = args[:resource_ui_url] if args.key?(:resource_ui_url) end end @@ -217,8 +217,8 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @renewal_type = args[:renewal_type] unless args[:renewal_type].nil? + @kind = args[:kind] if args.key?(:kind) + @renewal_type = args[:renewal_type] if args.key?(:renewal_type) end end @@ -255,10 +255,10 @@ module Google # Update properties of this object def update!(**args) - @kind = args[:kind] unless args[:kind].nil? - @licensed_number_of_seats = args[:licensed_number_of_seats] unless args[:licensed_number_of_seats].nil? - @maximum_number_of_seats = args[:maximum_number_of_seats] unless args[:maximum_number_of_seats].nil? - @number_of_seats = args[:number_of_seats] unless args[:number_of_seats].nil? + @kind = args[:kind] if args.key?(:kind) + @licensed_number_of_seats = args[:licensed_number_of_seats] if args.key?(:licensed_number_of_seats) + @maximum_number_of_seats = args[:maximum_number_of_seats] if args.key?(:maximum_number_of_seats) + @number_of_seats = args[:number_of_seats] if args.key?(:number_of_seats) end end @@ -358,21 +358,21 @@ module Google # Update properties of this object def update!(**args) - @billing_method = args[:billing_method] unless args[:billing_method].nil? - @creation_time = args[:creation_time] unless args[:creation_time].nil? - @customer_id = args[:customer_id] unless args[:customer_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @plan = args[:plan] unless args[:plan].nil? - @purchase_order_id = args[:purchase_order_id] unless args[:purchase_order_id].nil? - @renewal_settings = args[:renewal_settings] unless args[:renewal_settings].nil? - @resource_ui_url = args[:resource_ui_url] unless args[:resource_ui_url].nil? - @seats = args[:seats] unless args[:seats].nil? - @sku_id = args[:sku_id] unless args[:sku_id].nil? - @status = args[:status] unless args[:status].nil? - @subscription_id = args[:subscription_id] unless args[:subscription_id].nil? - @suspension_reasons = args[:suspension_reasons] unless args[:suspension_reasons].nil? - @transfer_info = args[:transfer_info] unless args[:transfer_info].nil? - @trial_settings = args[:trial_settings] unless args[:trial_settings].nil? + @billing_method = args[:billing_method] if args.key?(:billing_method) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @customer_id = args[:customer_id] if args.key?(:customer_id) + @kind = args[:kind] if args.key?(:kind) + @plan = args[:plan] if args.key?(:plan) + @purchase_order_id = args[:purchase_order_id] if args.key?(:purchase_order_id) + @renewal_settings = args[:renewal_settings] if args.key?(:renewal_settings) + @resource_ui_url = args[:resource_ui_url] if args.key?(:resource_ui_url) + @seats = args[:seats] if args.key?(:seats) + @sku_id = args[:sku_id] if args.key?(:sku_id) + @status = args[:status] if args.key?(:status) + @subscription_id = args[:subscription_id] if args.key?(:subscription_id) + @suspension_reasons = args[:suspension_reasons] if args.key?(:suspension_reasons) + @transfer_info = args[:transfer_info] if args.key?(:transfer_info) + @trial_settings = args[:trial_settings] if args.key?(:trial_settings) end # Plan details of the subscription @@ -401,9 +401,9 @@ module Google # Update properties of this object def update!(**args) - @commitment_interval = args[:commitment_interval] unless args[:commitment_interval].nil? - @is_commitment_plan = args[:is_commitment_plan] unless args[:is_commitment_plan].nil? - @plan_name = args[:plan_name] unless args[:plan_name].nil? + @commitment_interval = args[:commitment_interval] if args.key?(:commitment_interval) + @is_commitment_plan = args[:is_commitment_plan] if args.key?(:is_commitment_plan) + @plan_name = args[:plan_name] if args.key?(:plan_name) end # Interval of the commitment if it is a commitment plan. @@ -426,8 +426,8 @@ module Google # Update properties of this object def update!(**args) - @end_time = args[:end_time] unless args[:end_time].nil? - @start_time = args[:start_time] unless args[:start_time].nil? + @end_time = args[:end_time] if args.key?(:end_time) + @start_time = args[:start_time] if args.key?(:start_time) end end end @@ -452,8 +452,8 @@ module Google # Update properties of this object def update!(**args) - @minimum_transferable_seats = args[:minimum_transferable_seats] unless args[:minimum_transferable_seats].nil? - @transferability_expiration_time = args[:transferability_expiration_time] unless args[:transferability_expiration_time].nil? + @minimum_transferable_seats = args[:minimum_transferable_seats] if args.key?(:minimum_transferable_seats) + @transferability_expiration_time = args[:transferability_expiration_time] if args.key?(:transferability_expiration_time) end end @@ -478,8 +478,8 @@ module Google # Update properties of this object def update!(**args) - @is_in_trial = args[:is_in_trial] unless args[:is_in_trial].nil? - @trial_end_time = args[:trial_end_time] unless args[:trial_end_time].nil? + @is_in_trial = args[:is_in_trial] if args.key?(:is_in_trial) + @trial_end_time = args[:trial_end_time] if args.key?(:trial_end_time) end end end @@ -510,9 +510,9 @@ module Google # 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? - @subscriptions = args[:subscriptions] unless args[:subscriptions].nil? + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @subscriptions = args[:subscriptions] if args.key?(:subscriptions) end end end diff --git a/generated/google/apis/resourceviews_v1beta2/classes.rb b/generated/google/apis/resourceviews_v1beta2/classes.rb index 2883360f5..25a068ad9 100644 --- a/generated/google/apis/resourceviews_v1beta2/classes.rb +++ b/generated/google/apis/resourceviews_v1beta2/classes.rb @@ -42,8 +42,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end @@ -67,8 +67,8 @@ module Google # Update properties of this object def update!(**args) - @endpoints = args[:endpoints] unless args[:endpoints].nil? - @resource = args[:resource] unless args[:resource].nil? + @endpoints = args[:endpoints] if args.key?(:endpoints) + @resource = args[:resource] if args.key?(:resource) end end @@ -206,28 +206,28 @@ module Google # 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? + @client_operation_id = args[:client_operation_id] if args.key?(:client_operation_id) + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @end_time = args[:end_time] if args.key?(:end_time) + @error = args[:error] if args.key?(:error) + @http_error_message = args[:http_error_message] if args.key?(:http_error_message) + @http_error_status_code = args[:http_error_status_code] if args.key?(:http_error_status_code) + @id = args[:id] if args.key?(:id) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @progress = args[:progress] if args.key?(:progress) + @region = args[:region] if args.key?(:region) + @self_link = args[:self_link] if args.key?(:self_link) + @start_time = args[:start_time] if args.key?(:start_time) + @status = args[:status] if args.key?(:status) + @status_message = args[:status_message] if args.key?(:status_message) + @target_id = args[:target_id] if args.key?(:target_id) + @target_link = args[:target_link] if args.key?(:target_link) + @user = args[:user] if args.key?(:user) + @warnings = args[:warnings] if args.key?(:warnings) + @zone = args[:zone] if args.key?(:zone) end # [Output Only] If errors occurred during processing of this operation, this @@ -246,7 +246,7 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? + @errors = args[:errors] if args.key?(:errors) end # @@ -275,9 +275,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @location = args[:location] if args.key?(:location) + @message = args[:message] if args.key?(:message) end end end @@ -307,9 +307,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @data = args[:data] if args.key?(:data) + @message = args[:message] if args.key?(:message) end # @@ -332,8 +332,8 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @value = args[:value] if args.key?(:value) end end end @@ -374,11 +374,11 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -452,18 +452,18 @@ module Google # 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? - @endpoints = args[:endpoints] unless args[:endpoints].nil? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @labels = args[:labels] unless args[:labels].nil? - @name = args[:name] unless args[:name].nil? - @network = args[:network] unless args[:network].nil? - @resources = args[:resources] unless args[:resources].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @size = args[:size] unless args[:size].nil? + @creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp) + @description = args[:description] if args.key?(:description) + @endpoints = args[:endpoints] if args.key?(:endpoints) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @labels = args[:labels] if args.key?(:labels) + @name = args[:name] if args.key?(:name) + @network = args[:network] if args.key?(:network) + @resources = args[:resources] if args.key?(:resources) + @self_link = args[:self_link] if args.key?(:self_link) + @size = args[:size] if args.key?(:size) end end @@ -487,8 +487,8 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @port = args[:port] unless args[:port].nil? + @name = args[:name] if args.key?(:name) + @port = args[:port] if args.key?(:port) end end @@ -507,7 +507,7 @@ module Google # Update properties of this object def update!(**args) - @resources = args[:resources] unless args[:resources].nil? + @resources = args[:resources] if args.key?(:resources) end end @@ -531,8 +531,8 @@ module Google # Update properties of this object def update!(**args) - @endpoints = args[:endpoints] unless args[:endpoints].nil? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? + @endpoints = args[:endpoints] if args.key?(:endpoints) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) end end @@ -566,10 +566,10 @@ module Google # 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? - @self_link = args[:self_link] unless args[:self_link].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -598,9 +598,9 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @network = args[:network] unless args[:network].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? + @items = args[:items] if args.key?(:items) + @network = args[:network] if args.key?(:network) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -619,7 +619,7 @@ module Google # Update properties of this object def update!(**args) - @resources = args[:resources] unless args[:resources].nil? + @resources = args[:resources] if args.key?(:resources) end end @@ -650,9 +650,9 @@ module Google # Update properties of this object def update!(**args) - @endpoints = args[:endpoints] unless args[:endpoints].nil? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @resource_name = args[:resource_name] unless args[:resource_name].nil? + @endpoints = args[:endpoints] if args.key?(:endpoints) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @resource_name = args[:resource_name] if args.key?(:resource_name) end end end diff --git a/generated/google/apis/script_v1/classes.rb b/generated/google/apis/script_v1/classes.rb index 7e0c199e1..1192ae562 100644 --- a/generated/google/apis/script_v1/classes.rb +++ b/generated/google/apis/script_v1/classes.rb @@ -62,10 +62,10 @@ module Google # 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? + @function = args[:function] if args.key?(:function) + @parameters = args[:parameters] if args.key?(:parameters) + @session_state = args[:session_state] if args.key?(:session_state) + @dev_mode = args[:dev_mode] if args.key?(:dev_mode) end end @@ -122,11 +122,11 @@ module Google # 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? + @name = args[:name] if args.key?(:name) + @metadata = args[:metadata] if args.key?(:metadata) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @response = args[:response] if args.key?(:response) end end @@ -160,9 +160,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @message = args[:message] if args.key?(:message) + @details = args[:details] if args.key?(:details) end end @@ -198,9 +198,9 @@ module Google # 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? + @script_stack_trace_elements = args[:script_stack_trace_elements] if args.key?(:script_stack_trace_elements) + @error_message = args[:error_message] if args.key?(:error_message) + @error_type = args[:error_type] if args.key?(:error_type) end end @@ -224,8 +224,8 @@ module Google # 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? + @function = args[:function] if args.key?(:function) + @line_number = args[:line_number] if args.key?(:line_number) end end @@ -251,7 +251,7 @@ module Google # Update properties of this object def update!(**args) - @result = args[:result] unless args[:result].nil? + @result = args[:result] if args.key?(:result) end end end diff --git a/generated/google/apis/site_verification_v1/classes.rb b/generated/google/apis/site_verification_v1/classes.rb index 12ca309fe..924f3971c 100644 --- a/generated/google/apis/site_verification_v1/classes.rb +++ b/generated/google/apis/site_verification_v1/classes.rb @@ -43,8 +43,8 @@ module Google # Update properties of this object def update!(**args) - @site = args[:site] unless args[:site].nil? - @verification_method = args[:verification_method] unless args[:verification_method].nil? + @site = args[:site] if args.key?(:site) + @verification_method = args[:verification_method] if args.key?(:verification_method) end # The site for which a verification token will be generated. @@ -68,8 +68,8 @@ module Google # Update properties of this object def update!(**args) - @identifier = args[:identifier] unless args[:identifier].nil? - @type = args[:type] unless args[:type].nil? + @identifier = args[:identifier] if args.key?(:identifier) + @type = args[:type] if args.key?(:type) end end end @@ -99,8 +99,8 @@ module Google # Update properties of this object def update!(**args) - @verification_method = args[:verification_method] unless args[:verification_method].nil? - @token = args[:token] unless args[:token].nil? + @verification_method = args[:verification_method] if args.key?(:verification_method) + @token = args[:token] if args.key?(:token) end end @@ -119,7 +119,7 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? + @items = args[:items] if args.key?(:items) end end @@ -149,9 +149,9 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @owners = args[:owners] unless args[:owners].nil? - @site = args[:site] unless args[:site].nil? + @id = args[:id] if args.key?(:id) + @owners = args[:owners] if args.key?(:owners) + @site = args[:site] if args.key?(:site) end # The address and type of a site that is verified or will be verified. @@ -175,8 +175,8 @@ module Google # Update properties of this object def update!(**args) - @identifier = args[:identifier] unless args[:identifier].nil? - @type = args[:type] unless args[:type].nil? + @identifier = args[:identifier] if args.key?(:identifier) + @type = args[:type] if args.key?(:type) end end end diff --git a/generated/google/apis/sqladmin_v1beta4/classes.rb b/generated/google/apis/sqladmin_v1beta4/classes.rb index fcc525163..16506ec57 100644 --- a/generated/google/apis/sqladmin_v1beta4/classes.rb +++ b/generated/google/apis/sqladmin_v1beta4/classes.rb @@ -53,10 +53,10 @@ module Google # Update properties of this object def update!(**args) - @expiration_time = args[:expiration_time] unless args[:expiration_time].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @value = args[:value] unless args[:value].nil? + @expiration_time = args[:expiration_time] if args.key?(:expiration_time) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) end end @@ -94,10 +94,10 @@ module Google # Update properties of this object def update!(**args) - @binary_log_enabled = args[:binary_log_enabled] unless args[:binary_log_enabled].nil? - @enabled = args[:enabled] unless args[:enabled].nil? - @kind = args[:kind] unless args[:kind].nil? - @start_time = args[:start_time] unless args[:start_time].nil? + @binary_log_enabled = args[:binary_log_enabled] if args.key?(:binary_log_enabled) + @enabled = args[:enabled] if args.key?(:enabled) + @kind = args[:kind] if args.key?(:kind) + @start_time = args[:start_time] if args.key?(:start_time) end end @@ -166,16 +166,16 @@ module Google # Update properties of this object def update!(**args) - @end_time = args[:end_time] unless args[:end_time].nil? - @enqueued_time = args[:enqueued_time] unless args[:enqueued_time].nil? - @error = args[:error] unless args[:error].nil? - @id = args[:id] unless args[:id].nil? - @instance = args[:instance] unless args[:instance].nil? - @kind = args[:kind] unless args[:kind].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? - @window_start_time = args[:window_start_time] unless args[:window_start_time].nil? + @end_time = args[:end_time] if args.key?(:end_time) + @enqueued_time = args[:enqueued_time] if args.key?(:enqueued_time) + @error = args[:error] if args.key?(:error) + @id = args[:id] if args.key?(:id) + @instance = args[:instance] if args.key?(:instance) + @kind = args[:kind] if args.key?(:kind) + @self_link = args[:self_link] if args.key?(:self_link) + @start_time = args[:start_time] if args.key?(:start_time) + @status = args[:status] if args.key?(:status) + @window_start_time = args[:window_start_time] if args.key?(:window_start_time) end end @@ -205,9 +205,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -236,9 +236,9 @@ module Google # Update properties of this object def update!(**args) - @bin_log_file_name = args[:bin_log_file_name] unless args[:bin_log_file_name].nil? - @bin_log_position = args[:bin_log_position] unless args[:bin_log_position].nil? - @kind = args[:kind] unless args[:kind].nil? + @bin_log_file_name = args[:bin_log_file_name] if args.key?(:bin_log_file_name) + @bin_log_position = args[:bin_log_position] if args.key?(:bin_log_position) + @kind = args[:kind] if args.key?(:kind) end end @@ -267,9 +267,9 @@ module Google # Update properties of this object def update!(**args) - @bin_log_coordinates = args[:bin_log_coordinates] unless args[:bin_log_coordinates].nil? - @destination_instance_name = args[:destination_instance_name] unless args[:destination_instance_name].nil? - @kind = args[:kind] unless args[:kind].nil? + @bin_log_coordinates = args[:bin_log_coordinates] if args.key?(:bin_log_coordinates) + @destination_instance_name = args[:destination_instance_name] if args.key?(:destination_instance_name) + @kind = args[:kind] if args.key?(:kind) end end @@ -325,14 +325,14 @@ module Google # Update properties of this object def update!(**args) - @charset = args[:charset] unless args[:charset].nil? - @collation = args[:collation] unless args[:collation].nil? - @etag = args[:etag] unless args[:etag].nil? - @instance = args[:instance] unless args[:instance].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @project = args[:project] unless args[:project].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @charset = args[:charset] if args.key?(:charset) + @collation = args[:collation] if args.key?(:collation) + @etag = args[:etag] if args.key?(:etag) + @instance = args[:instance] if args.key?(:instance) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @project = args[:project] if args.key?(:project) + @self_link = args[:self_link] if args.key?(:self_link) end end @@ -361,8 +361,8 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @value = args[:value] unless args[:value].nil? + @name = args[:name] if args.key?(:name) + @value = args[:value] if args.key?(:value) end end @@ -496,27 +496,27 @@ module Google # Update properties of this object def update!(**args) - @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? - @kind = args[:kind] unless args[:kind].nil? - @master_instance_name = args[:master_instance_name] unless args[:master_instance_name].nil? - @max_disk_size = args[:max_disk_size] unless args[:max_disk_size].nil? - @name = args[:name] unless args[:name].nil? - @on_premises_configuration = args[:on_premises_configuration] unless args[:on_premises_configuration].nil? - @project = args[:project] unless args[:project].nil? - @region = args[:region] unless args[:region].nil? - @replica_configuration = args[:replica_configuration] unless args[:replica_configuration].nil? - @replica_names = args[:replica_names] unless args[:replica_names].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @server_ca_cert = args[:server_ca_cert] unless args[:server_ca_cert].nil? - @service_account_email_address = args[:service_account_email_address] unless args[:service_account_email_address].nil? - @settings = args[:settings] unless args[:settings].nil? - @state = args[:state] unless args[:state].nil? + @current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size) + @database_version = args[:database_version] if args.key?(:database_version) + @etag = args[:etag] if args.key?(:etag) + @failover_replica = args[:failover_replica] if args.key?(:failover_replica) + @instance_type = args[:instance_type] if args.key?(:instance_type) + @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses) + @ipv6_address = args[:ipv6_address] if args.key?(:ipv6_address) + @kind = args[:kind] if args.key?(:kind) + @master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name) + @max_disk_size = args[:max_disk_size] if args.key?(:max_disk_size) + @name = args[:name] if args.key?(:name) + @on_premises_configuration = args[:on_premises_configuration] if args.key?(:on_premises_configuration) + @project = args[:project] if args.key?(:project) + @region = args[:region] if args.key?(:region) + @replica_configuration = args[:replica_configuration] if args.key?(:replica_configuration) + @replica_names = args[:replica_names] if args.key?(:replica_names) + @self_link = args[:self_link] if args.key?(:self_link) + @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert) + @service_account_email_address = args[:service_account_email_address] if args.key?(:service_account_email_address) + @settings = args[:settings] if args.key?(:settings) + @state = args[:state] if args.key?(:state) end # The name and status of the failover replica. Only applies to Second Generation @@ -541,8 +541,8 @@ module Google # Update properties of this object def update!(**args) - @available = args[:available] unless args[:available].nil? - @name = args[:name] unless args[:name].nil? + @available = args[:available] if args.key?(:available) + @name = args[:name] if args.key?(:name) end end end @@ -567,8 +567,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -621,12 +621,12 @@ module Google # Update properties of this object def update!(**args) - @csv_export_options = args[:csv_export_options] unless args[:csv_export_options].nil? - @databases = args[:databases] unless args[:databases].nil? - @file_type = args[:file_type] unless args[:file_type].nil? - @kind = args[:kind] unless args[:kind].nil? - @sql_export_options = args[:sql_export_options] unless args[:sql_export_options].nil? - @uri = args[:uri] unless args[:uri].nil? + @csv_export_options = args[:csv_export_options] if args.key?(:csv_export_options) + @databases = args[:databases] if args.key?(:databases) + @file_type = args[:file_type] if args.key?(:file_type) + @kind = args[:kind] if args.key?(:kind) + @sql_export_options = args[:sql_export_options] if args.key?(:sql_export_options) + @uri = args[:uri] if args.key?(:uri) end # Options for exporting data as CSV. @@ -644,7 +644,7 @@ module Google # Update properties of this object def update!(**args) - @select_query = args[:select_query] unless args[:select_query].nil? + @select_query = args[:select_query] if args.key?(:select_query) end end @@ -670,8 +670,8 @@ 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? + @schema_only = args[:schema_only] if args.key?(:schema_only) + @tables = args[:tables] if args.key?(:tables) end end end @@ -697,8 +697,8 @@ module Google # 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? + @kind = args[:kind] if args.key?(:kind) + @settings_version = args[:settings_version] if args.key?(:settings_version) end end @@ -758,14 +758,14 @@ module Google # Update properties of this object def update!(**args) - @allowed_string_values = args[:allowed_string_values] unless args[:allowed_string_values].nil? - @applies_to = args[:applies_to] unless args[:applies_to].nil? - @kind = args[:kind] unless args[:kind].nil? - @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? + @allowed_string_values = args[:allowed_string_values] if args.key?(:allowed_string_values) + @applies_to = args[:applies_to] if args.key?(:applies_to) + @kind = args[:kind] if args.key?(:kind) + @max_value = args[:max_value] if args.key?(:max_value) + @min_value = args[:min_value] if args.key?(:min_value) + @name = args[:name] if args.key?(:name) + @requires_restart = args[:requires_restart] if args.key?(:requires_restart) + @type = args[:type] if args.key?(:type) end end @@ -789,8 +789,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -835,11 +835,11 @@ module Google # Update properties of this object def update!(**args) - @csv_import_options = args[:csv_import_options] unless args[:csv_import_options].nil? - @database = args[:database] unless args[:database].nil? - @file_type = args[:file_type] unless args[:file_type].nil? - @kind = args[:kind] unless args[:kind].nil? - @uri = args[:uri] unless args[:uri].nil? + @csv_import_options = args[:csv_import_options] if args.key?(:csv_import_options) + @database = args[:database] if args.key?(:database) + @file_type = args[:file_type] if args.key?(:file_type) + @kind = args[:kind] if args.key?(:kind) + @uri = args[:uri] if args.key?(:uri) end # Options for importing data as CSV. @@ -863,8 +863,8 @@ module Google # Update properties of this object def update!(**args) - @columns = args[:columns] unless args[:columns].nil? - @table = args[:table] unless args[:table].nil? + @columns = args[:columns] if args.key?(:columns) + @table = args[:table] if args.key?(:table) end end end @@ -884,7 +884,7 @@ module Google # Update properties of this object def update!(**args) - @clone_context = args[:clone_context] unless args[:clone_context].nil? + @clone_context = args[:clone_context] if args.key?(:clone_context) end end @@ -903,7 +903,7 @@ module Google # Update properties of this object def update!(**args) - @export_context = args[:export_context] unless args[:export_context].nil? + @export_context = args[:export_context] if args.key?(:export_context) end end @@ -922,7 +922,7 @@ module Google # Update properties of this object def update!(**args) - @failover_context = args[:failover_context] unless args[:failover_context].nil? + @failover_context = args[:failover_context] if args.key?(:failover_context) end end @@ -941,7 +941,7 @@ module Google # Update properties of this object def update!(**args) - @import_context = args[:import_context] unless args[:import_context].nil? + @import_context = args[:import_context] if args.key?(:import_context) end end @@ -971,9 +971,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -992,7 +992,7 @@ module Google # Update properties of this object def update!(**args) - @restore_backup_context = args[:restore_backup_context] unless args[:restore_backup_context].nil? + @restore_backup_context = args[:restore_backup_context] if args.key?(:restore_backup_context) end end @@ -1026,9 +1026,9 @@ module Google # Update properties of this object def update!(**args) - @authorized_networks = args[:authorized_networks] unless args[:authorized_networks].nil? - @ipv4_enabled = args[:ipv4_enabled] unless args[:ipv4_enabled].nil? - @require_ssl = args[:require_ssl] unless args[:require_ssl].nil? + @authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks) + @ipv4_enabled = args[:ipv4_enabled] if args.key?(:ipv4_enabled) + @require_ssl = args[:require_ssl] if args.key?(:require_ssl) end end @@ -1054,8 +1054,8 @@ module Google # Update properties of this object def update!(**args) - @ip_address = args[:ip_address] unless args[:ip_address].nil? - @time_to_retire = args[:time_to_retire] unless args[:time_to_retire].nil? + @ip_address = args[:ip_address] if args.key?(:ip_address) + @time_to_retire = args[:time_to_retire] if args.key?(:time_to_retire) end end @@ -1089,9 +1089,9 @@ module Google # Update properties of this object def update!(**args) - @follow_gae_application = args[:follow_gae_application] unless args[:follow_gae_application].nil? - @kind = args[:kind] unless args[:kind].nil? - @zone = args[:zone] unless args[:zone].nil? + @follow_gae_application = args[:follow_gae_application] if args.key?(:follow_gae_application) + @kind = args[:kind] if args.key?(:kind) + @zone = args[:zone] if args.key?(:zone) end end @@ -1126,10 +1126,10 @@ module Google # 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? + @day = args[:day] if args.key?(:day) + @hour = args[:hour] if args.key?(:hour) + @kind = args[:kind] if args.key?(:kind) + @update_track = args[:update_track] if args.key?(:update_track) end end @@ -1205,17 +1205,17 @@ module Google # Update properties of this object def update!(**args) - @ca_certificate = args[:ca_certificate] unless args[:ca_certificate].nil? - @client_certificate = args[:client_certificate] unless args[:client_certificate].nil? - @client_key = args[:client_key] unless args[:client_key].nil? - @connect_retry_interval = args[:connect_retry_interval] unless args[:connect_retry_interval].nil? - @dump_file_path = args[:dump_file_path] unless args[:dump_file_path].nil? - @kind = args[:kind] unless args[:kind].nil? - @master_heartbeat_period = args[:master_heartbeat_period] unless args[:master_heartbeat_period].nil? - @password = args[:password] unless args[:password].nil? - @ssl_cipher = args[:ssl_cipher] unless args[:ssl_cipher].nil? - @username = args[:username] unless args[:username].nil? - @verify_server_certificate = args[:verify_server_certificate] unless args[:verify_server_certificate].nil? + @ca_certificate = args[:ca_certificate] if args.key?(:ca_certificate) + @client_certificate = args[:client_certificate] if args.key?(:client_certificate) + @client_key = args[:client_key] if args.key?(:client_key) + @connect_retry_interval = args[:connect_retry_interval] if args.key?(:connect_retry_interval) + @dump_file_path = args[:dump_file_path] if args.key?(:dump_file_path) + @kind = args[:kind] if args.key?(:kind) + @master_heartbeat_period = args[:master_heartbeat_period] if args.key?(:master_heartbeat_period) + @password = args[:password] if args.key?(:password) + @ssl_cipher = args[:ssl_cipher] if args.key?(:ssl_cipher) + @username = args[:username] if args.key?(:username) + @verify_server_certificate = args[:verify_server_certificate] if args.key?(:verify_server_certificate) end end @@ -1239,8 +1239,8 @@ module Google # Update properties of this object def update!(**args) - @host_port = args[:host_port] unless args[:host_port].nil? - @kind = args[:kind] unless args[:kind].nil? + @host_port = args[:host_port] if args.key?(:host_port) + @kind = args[:kind] if args.key?(:kind) end end @@ -1338,21 +1338,21 @@ module Google # Update properties of this object def update!(**args) - @end_time = args[:end_time] unless args[:end_time].nil? - @error = args[:error] unless args[:error].nil? - @export_context = args[:export_context] unless args[:export_context].nil? - @import_context = args[:import_context] unless args[:import_context].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? - @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? - @target_id = args[:target_id] unless args[:target_id].nil? - @target_link = args[:target_link] unless args[:target_link].nil? - @target_project = args[:target_project] unless args[:target_project].nil? - @user = args[:user] unless args[:user].nil? + @end_time = args[:end_time] if args.key?(:end_time) + @error = args[:error] if args.key?(:error) + @export_context = args[:export_context] if args.key?(:export_context) + @import_context = args[:import_context] if args.key?(:import_context) + @insert_time = args[:insert_time] if args.key?(:insert_time) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @operation_type = args[:operation_type] if args.key?(:operation_type) + @self_link = args[:self_link] if args.key?(:self_link) + @start_time = args[:start_time] if args.key?(:start_time) + @status = args[:status] if args.key?(:status) + @target_id = args[:target_id] if args.key?(:target_id) + @target_link = args[:target_link] if args.key?(:target_link) + @target_project = args[:target_project] if args.key?(:target_project) + @user = args[:user] if args.key?(:user) end end @@ -1381,9 +1381,9 @@ module Google # Update properties of this object def update!(**args) - @code = args[:code] unless args[:code].nil? - @kind = args[:kind] unless args[:kind].nil? - @message = args[:message] unless args[:message].nil? + @code = args[:code] if args.key?(:code) + @kind = args[:kind] if args.key?(:kind) + @message = args[:message] if args.key?(:message) end end @@ -1407,8 +1407,8 @@ module Google # Update properties of this object def update!(**args) - @errors = args[:errors] unless args[:errors].nil? - @kind = args[:kind] unless args[:kind].nil? + @errors = args[:errors] if args.key?(:errors) + @kind = args[:kind] if args.key?(:kind) end end @@ -1438,9 +1438,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -1475,9 +1475,9 @@ 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? + @failover_target = args[:failover_target] if args.key?(:failover_target) + @kind = args[:kind] if args.key?(:kind) + @mysql_replica_configuration = args[:mysql_replica_configuration] if args.key?(:mysql_replica_configuration) end end @@ -1506,9 +1506,9 @@ module Google # Update properties of this object def update!(**args) - @backup_run_id = args[:backup_run_id] unless args[:backup_run_id].nil? - @instance_id = args[:instance_id] unless args[:instance_id].nil? - @kind = args[:kind] unless args[:kind].nil? + @backup_run_id = args[:backup_run_id] if args.key?(:backup_run_id) + @instance_id = args[:instance_id] if args.key?(:instance_id) + @kind = args[:kind] if args.key?(:kind) end end @@ -1623,22 +1623,22 @@ module Google # Update properties of this object def update!(**args) - @activation_policy = args[:activation_policy] unless args[:activation_policy].nil? - @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? - @tier = args[:tier] unless args[:tier].nil? + @activation_policy = args[:activation_policy] if args.key?(:activation_policy) + @authorized_gae_applications = args[:authorized_gae_applications] if args.key?(:authorized_gae_applications) + @backup_configuration = args[:backup_configuration] if args.key?(:backup_configuration) + @crash_safe_replication_enabled = args[:crash_safe_replication_enabled] if args.key?(:crash_safe_replication_enabled) + @data_disk_size_gb = args[:data_disk_size_gb] if args.key?(:data_disk_size_gb) + @data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type) + @database_flags = args[:database_flags] if args.key?(:database_flags) + @database_replication_enabled = args[:database_replication_enabled] if args.key?(:database_replication_enabled) + @ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration) + @kind = args[:kind] if args.key?(:kind) + @location_preference = args[:location_preference] if args.key?(:location_preference) + @maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window) + @pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan) + @replication_type = args[:replication_type] if args.key?(:replication_type) + @settings_version = args[:settings_version] if args.key?(:settings_version) + @tier = args[:tier] if args.key?(:tier) end end @@ -1699,15 +1699,15 @@ module Google # Update properties of this object def update!(**args) - @cert = args[:cert] unless args[:cert].nil? - @cert_serial_number = args[:cert_serial_number] unless args[:cert_serial_number].nil? - @common_name = args[:common_name] unless args[:common_name].nil? - @create_time = args[:create_time] unless args[:create_time].nil? - @expiration_time = args[:expiration_time] unless args[:expiration_time].nil? - @instance = args[:instance] unless args[:instance].nil? - @kind = args[:kind] unless args[:kind].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @sha1_fingerprint = args[:sha1_fingerprint] unless args[:sha1_fingerprint].nil? + @cert = args[:cert] if args.key?(:cert) + @cert_serial_number = args[:cert_serial_number] if args.key?(:cert_serial_number) + @common_name = args[:common_name] if args.key?(:common_name) + @create_time = args[:create_time] if args.key?(:create_time) + @expiration_time = args[:expiration_time] if args.key?(:expiration_time) + @instance = args[:instance] if args.key?(:instance) + @kind = args[:kind] if args.key?(:kind) + @self_link = args[:self_link] if args.key?(:self_link) + @sha1_fingerprint = args[:sha1_fingerprint] if args.key?(:sha1_fingerprint) end end @@ -1732,8 +1732,8 @@ module Google # Update properties of this object def update!(**args) - @cert_info = args[:cert_info] unless args[:cert_info].nil? - @cert_private_key = args[:cert_private_key] unless args[:cert_private_key].nil? + @cert_info = args[:cert_info] if args.key?(:cert_info) + @cert_private_key = args[:cert_private_key] if args.key?(:cert_private_key) end end @@ -1752,7 +1752,7 @@ module Google # Update properties of this object def update!(**args) - @public_key = args[:public_key] unless args[:public_key].nil? + @public_key = args[:public_key] if args.key?(:public_key) end end @@ -1773,7 +1773,7 @@ module Google # Update properties of this object def update!(**args) - @common_name = args[:common_name] unless args[:common_name].nil? + @common_name = args[:common_name] if args.key?(:common_name) end end @@ -1802,9 +1802,9 @@ module Google # Update properties of this object def update!(**args) - @client_cert = args[:client_cert] unless args[:client_cert].nil? - @kind = args[:kind] unless args[:kind].nil? - @server_ca_cert = args[:server_ca_cert] unless args[:server_ca_cert].nil? + @client_cert = args[:client_cert] if args.key?(:client_cert) + @kind = args[:kind] if args.key?(:kind) + @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert) end end @@ -1828,8 +1828,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -1870,11 +1870,11 @@ module Google # Update properties of this object def update!(**args) - @disk_quota = args[:disk_quota] unless args[:disk_quota].nil? - @ram = args[:ram] unless args[:ram].nil? - @kind = args[:kind] unless args[:kind].nil? - @region = args[:region] unless args[:region].nil? - @tier = args[:tier] unless args[:tier].nil? + @disk_quota = args[:disk_quota] if args.key?(:disk_quota) + @ram = args[:ram] if args.key?(:ram) + @kind = args[:kind] if args.key?(:kind) + @region = args[:region] if args.key?(:region) + @tier = args[:tier] if args.key?(:tier) end end @@ -1898,8 +1898,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -1954,13 +1954,13 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @host = args[:host] unless args[:host].nil? - @instance = args[:instance] unless args[:instance].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @password = args[:password] unless args[:password].nil? - @project = args[:project] unless args[:project].nil? + @etag = args[:etag] if args.key?(:etag) + @host = args[:host] if args.key?(:host) + @instance = args[:instance] if args.key?(:instance) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @password = args[:password] if args.key?(:password) + @project = args[:project] if args.key?(:project) end end @@ -1991,9 +1991,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end end diff --git a/generated/google/apis/storage_v1/classes.rb b/generated/google/apis/storage_v1/classes.rb index daa13ffca..b4f647927 100644 --- a/generated/google/apis/storage_v1/classes.rb +++ b/generated/google/apis/storage_v1/classes.rb @@ -134,25 +134,25 @@ module Google # Update properties of this object def update!(**args) - @acl = args[:acl] unless args[:acl].nil? - @cors_configurations = args[:cors_configurations] unless args[:cors_configurations].nil? - @default_object_acl = args[:default_object_acl] unless args[:default_object_acl].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @lifecycle = args[:lifecycle] unless args[:lifecycle].nil? - @location = args[:location] unless args[:location].nil? - @logging = args[:logging] unless args[:logging].nil? - @metageneration = args[:metageneration] unless args[:metageneration].nil? - @name = args[:name] unless args[:name].nil? - @owner = args[:owner] unless args[:owner].nil? - @project_number = args[:project_number] unless args[:project_number].nil? - @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? + @acl = args[:acl] if args.key?(:acl) + @cors_configurations = args[:cors_configurations] if args.key?(:cors_configurations) + @default_object_acl = args[:default_object_acl] if args.key?(:default_object_acl) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @lifecycle = args[:lifecycle] if args.key?(:lifecycle) + @location = args[:location] if args.key?(:location) + @logging = args[:logging] if args.key?(:logging) + @metageneration = args[:metageneration] if args.key?(:metageneration) + @name = args[:name] if args.key?(:name) + @owner = args[:owner] if args.key?(:owner) + @project_number = args[:project_number] if args.key?(:project_number) + @self_link = args[:self_link] if args.key?(:self_link) + @storage_class = args[:storage_class] if args.key?(:storage_class) + @time_created = args[:time_created] if args.key?(:time_created) + @updated = args[:updated] if args.key?(:updated) + @versioning = args[:versioning] if args.key?(:versioning) + @website = args[:website] if args.key?(:website) end # @@ -190,10 +190,10 @@ module Google # Update properties of this object def update!(**args) - @max_age_seconds = args[:max_age_seconds] unless args[:max_age_seconds].nil? - @http_method = args[:http_method] unless args[:http_method].nil? - @origin = args[:origin] unless args[:origin].nil? - @response_header = args[:response_header] unless args[:response_header].nil? + @max_age_seconds = args[:max_age_seconds] if args.key?(:max_age_seconds) + @http_method = args[:http_method] if args.key?(:http_method) + @origin = args[:origin] if args.key?(:origin) + @response_header = args[:response_header] if args.key?(:response_header) end end @@ -214,7 +214,7 @@ module Google # Update properties of this object def update!(**args) - @rule = args[:rule] unless args[:rule].nil? + @rule = args[:rule] if args.key?(:rule) end # @@ -237,8 +237,8 @@ module Google # Update properties of this object def update!(**args) - @action = args[:action] unless args[:action].nil? - @condition = args[:condition] unless args[:condition].nil? + @action = args[:action] if args.key?(:action) + @condition = args[:condition] if args.key?(:condition) end # The action to take. @@ -256,7 +256,7 @@ module Google # Update properties of this object def update!(**args) - @type = args[:type] unless args[:type].nil? + @type = args[:type] if args.key?(:type) end end @@ -297,10 +297,10 @@ module Google # Update properties of this object def update!(**args) - @age = args[:age] unless args[:age].nil? - @created_before = args[:created_before] unless args[:created_before].nil? - @is_live = args[:is_live] unless args[:is_live].nil? - @num_newer_versions = args[:num_newer_versions] unless args[:num_newer_versions].nil? + @age = args[:age] if args.key?(:age) + @created_before = args[:created_before] if args.key?(:created_before) + @is_live = args[:is_live] if args.key?(:is_live) + @num_newer_versions = args[:num_newer_versions] if args.key?(:num_newer_versions) end end end @@ -327,8 +327,8 @@ module Google # Update properties of this object def update!(**args) - @log_bucket = args[:log_bucket] unless args[:log_bucket].nil? - @log_object_prefix = args[:log_object_prefix] unless args[:log_object_prefix].nil? + @log_bucket = args[:log_bucket] if args.key?(:log_bucket) + @log_object_prefix = args[:log_object_prefix] if args.key?(:log_object_prefix) end end @@ -352,8 +352,8 @@ module Google # Update properties of this object def update!(**args) - @entity = args[:entity] unless args[:entity].nil? - @entity_id = args[:entity_id] unless args[:entity_id].nil? + @entity = args[:entity] if args.key?(:entity) + @entity_id = args[:entity_id] if args.key?(:entity_id) end end @@ -373,7 +373,7 @@ module Google # Update properties of this object def update!(**args) - @enabled = args[:enabled] unless args[:enabled].nil? + @enabled = args[:enabled] if args.key?(:enabled) end end @@ -398,8 +398,8 @@ module Google # Update properties of this object def update!(**args) - @main_page_suffix = args[:main_page_suffix] unless args[:main_page_suffix].nil? - @not_found_page = args[:not_found_page] unless args[:not_found_page].nil? + @main_page_suffix = args[:main_page_suffix] if args.key?(:main_page_suffix) + @not_found_page = args[:not_found_page] if args.key?(:not_found_page) end end end @@ -482,17 +482,17 @@ module Google # Update properties of this object def update!(**args) - @bucket = args[:bucket] unless args[:bucket].nil? - @domain = args[:domain] unless args[:domain].nil? - @email = args[:email] unless args[:email].nil? - @entity = args[:entity] unless args[:entity].nil? - @entity_id = args[:entity_id] unless args[:entity_id].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @project_team = args[:project_team] unless args[:project_team].nil? - @role = args[:role] unless args[:role].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @bucket = args[:bucket] if args.key?(:bucket) + @domain = args[:domain] if args.key?(:domain) + @email = args[:email] if args.key?(:email) + @entity = args[:entity] if args.key?(:entity) + @entity_id = args[:entity_id] if args.key?(:entity_id) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @project_team = args[:project_team] if args.key?(:project_team) + @role = args[:role] if args.key?(:role) + @self_link = args[:self_link] if args.key?(:self_link) end # The project team associated with the entity, if any. @@ -515,8 +515,8 @@ module Google # Update properties of this object def update!(**args) - @project_number = args[:project_number] unless args[:project_number].nil? - @team = args[:team] unless args[:team].nil? + @project_number = args[:project_number] if args.key?(:project_number) + @team = args[:team] if args.key?(:team) end end end @@ -542,8 +542,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -573,9 +573,9 @@ module Google # 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? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -644,16 +644,16 @@ module Google # Update properties of this object def update!(**args) - @address = args[:address] unless args[:address].nil? - @expiration = args[:expiration] unless args[:expiration].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @params = args[:params] unless args[:params].nil? - @payload = args[:payload] unless args[:payload].nil? - @resource_id = args[:resource_id] unless args[:resource_id].nil? - @resource_uri = args[:resource_uri] unless args[:resource_uri].nil? - @token = args[:token] unless args[:token].nil? - @type = args[:type] unless args[:type].nil? + @address = args[:address] if args.key?(:address) + @expiration = args[:expiration] if args.key?(:expiration) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @params = args[:params] if args.key?(:params) + @payload = args[:payload] if args.key?(:payload) + @resource_id = args[:resource_id] if args.key?(:resource_id) + @resource_uri = args[:resource_uri] if args.key?(:resource_uri) + @token = args[:token] if args.key?(:token) + @type = args[:type] if args.key?(:type) end end @@ -682,9 +682,9 @@ module Google # Update properties of this object def update!(**args) - @destination = args[:destination] unless args[:destination].nil? - @kind = args[:kind] unless args[:kind].nil? - @source_objects = args[:source_objects] unless args[:source_objects].nil? + @destination = args[:destination] if args.key?(:destination) + @kind = args[:kind] if args.key?(:kind) + @source_objects = args[:source_objects] if args.key?(:source_objects) end # @@ -713,9 +713,9 @@ module Google # Update properties of this object def update!(**args) - @generation = args[:generation] unless args[:generation].nil? - @name = args[:name] unless args[:name].nil? - @object_preconditions = args[:object_preconditions] unless args[:object_preconditions].nil? + @generation = args[:generation] if args.key?(:generation) + @name = args[:name] if args.key?(:name) + @object_preconditions = args[:object_preconditions] if args.key?(:object_preconditions) end # Conditions that must be met for this operation to execute. @@ -735,7 +735,7 @@ module Google # Update properties of this object def update!(**args) - @if_generation_match = args[:if_generation_match] unless args[:if_generation_match].nil? + @if_generation_match = args[:if_generation_match] if args.key?(:if_generation_match) end end end @@ -890,32 +890,32 @@ module Google # Update properties of this object def update!(**args) - @acl = args[:acl] unless args[:acl].nil? - @bucket = args[:bucket] unless args[:bucket].nil? - @cache_control = args[:cache_control] unless args[:cache_control].nil? - @component_count = args[:component_count] unless args[:component_count].nil? - @content_disposition = args[:content_disposition] unless args[:content_disposition].nil? - @content_encoding = args[:content_encoding] unless args[:content_encoding].nil? - @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? - @kind = args[:kind] unless args[:kind].nil? - @md5_hash = args[:md5_hash] unless args[:md5_hash].nil? - @media_link = args[:media_link] unless args[:media_link].nil? - @metadata = args[:metadata] unless args[:metadata].nil? - @metageneration = args[:metageneration] unless args[:metageneration].nil? - @name = args[:name] unless args[:name].nil? - @owner = args[:owner] unless args[:owner].nil? - @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? + @acl = args[:acl] if args.key?(:acl) + @bucket = args[:bucket] if args.key?(:bucket) + @cache_control = args[:cache_control] if args.key?(:cache_control) + @component_count = args[:component_count] if args.key?(:component_count) + @content_disposition = args[:content_disposition] if args.key?(:content_disposition) + @content_encoding = args[:content_encoding] if args.key?(:content_encoding) + @content_language = args[:content_language] if args.key?(:content_language) + @content_type = args[:content_type] if args.key?(:content_type) + @crc32c = args[:crc32c] if args.key?(:crc32c) + @customer_encryption = args[:customer_encryption] if args.key?(:customer_encryption) + @etag = args[:etag] if args.key?(:etag) + @generation = args[:generation] if args.key?(:generation) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @md5_hash = args[:md5_hash] if args.key?(:md5_hash) + @media_link = args[:media_link] if args.key?(:media_link) + @metadata = args[:metadata] if args.key?(:metadata) + @metageneration = args[:metageneration] if args.key?(:metageneration) + @name = args[:name] if args.key?(:name) + @owner = args[:owner] if args.key?(:owner) + @self_link = args[:self_link] if args.key?(:self_link) + @size = args[:size] if args.key?(:size) + @storage_class = args[:storage_class] if args.key?(:storage_class) + @time_created = args[:time_created] if args.key?(:time_created) + @time_deleted = args[:time_deleted] if args.key?(:time_deleted) + @updated = args[:updated] if args.key?(:updated) end # Metadata of customer-supplied encryption key, if the object is encrypted by @@ -939,8 +939,8 @@ module Google # 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? + @encryption_algorithm = args[:encryption_algorithm] if args.key?(:encryption_algorithm) + @key_sha256 = args[:key_sha256] if args.key?(:key_sha256) end end @@ -964,8 +964,8 @@ module Google # Update properties of this object def update!(**args) - @entity = args[:entity] unless args[:entity].nil? - @entity_id = args[:entity_id] unless args[:entity_id].nil? + @entity = args[:entity] if args.key?(:entity) + @entity_id = args[:entity_id] if args.key?(:entity_id) end end end @@ -1058,19 +1058,19 @@ module Google # Update properties of this object def update!(**args) - @bucket = args[:bucket] unless args[:bucket].nil? - @domain = args[:domain] unless args[:domain].nil? - @email = args[:email] unless args[:email].nil? - @entity = args[:entity] unless args[:entity].nil? - @entity_id = args[:entity_id] unless args[:entity_id].nil? - @etag = args[:etag] unless args[:etag].nil? - @generation = args[:generation] unless args[:generation].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @object = args[:object] unless args[:object].nil? - @project_team = args[:project_team] unless args[:project_team].nil? - @role = args[:role] unless args[:role].nil? - @self_link = args[:self_link] unless args[:self_link].nil? + @bucket = args[:bucket] if args.key?(:bucket) + @domain = args[:domain] if args.key?(:domain) + @email = args[:email] if args.key?(:email) + @entity = args[:entity] if args.key?(:entity) + @entity_id = args[:entity_id] if args.key?(:entity_id) + @etag = args[:etag] if args.key?(:etag) + @generation = args[:generation] if args.key?(:generation) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @object = args[:object] if args.key?(:object) + @project_team = args[:project_team] if args.key?(:project_team) + @role = args[:role] if args.key?(:role) + @self_link = args[:self_link] if args.key?(:self_link) end # The project team associated with the entity, if any. @@ -1093,8 +1093,8 @@ module Google # Update properties of this object def update!(**args) - @project_number = args[:project_number] unless args[:project_number].nil? - @team = args[:team] unless args[:team].nil? + @project_number = args[:project_number] if args.key?(:project_number) + @team = args[:team] if args.key?(:team) end end end @@ -1120,8 +1120,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -1157,10 +1157,10 @@ module Google # 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? - @prefixes = args[:prefixes] unless args[:prefixes].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @prefixes = args[:prefixes] if args.key?(:prefixes) end end @@ -1209,12 +1209,12 @@ module Google # Update properties of this object def update!(**args) - @done = args[:done] unless args[:done].nil? - @kind = args[:kind] unless args[:kind].nil? - @object_size = args[:object_size] unless args[:object_size].nil? - @resource = args[:resource] unless args[:resource].nil? - @rewrite_token = args[:rewrite_token] unless args[:rewrite_token].nil? - @total_bytes_rewritten = args[:total_bytes_rewritten] unless args[:total_bytes_rewritten].nil? + @done = args[:done] if args.key?(:done) + @kind = args[:kind] if args.key?(:kind) + @object_size = args[:object_size] if args.key?(:object_size) + @resource = args[:resource] if args.key?(:resource) + @rewrite_token = args[:rewrite_token] if args.key?(:rewrite_token) + @total_bytes_rewritten = args[:total_bytes_rewritten] if args.key?(:total_bytes_rewritten) end end end diff --git a/generated/google/apis/storagetransfer_v1/classes.rb b/generated/google/apis/storagetransfer_v1/classes.rb index 6b1a109a2..7946fa2be 100644 --- a/generated/google/apis/storagetransfer_v1/classes.rb +++ b/generated/google/apis/storagetransfer_v1/classes.rb @@ -37,7 +37,7 @@ module Google # Update properties of this object def update!(**args) - @account_email = args[:account_email] unless args[:account_email].nil? + @account_email = args[:account_email] if args.key?(:account_email) end end @@ -104,15 +104,15 @@ module Google # 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? + @name = args[:name] if args.key?(:name) + @description = args[:description] if args.key?(:description) + @project_id = args[:project_id] if args.key?(:project_id) + @transfer_spec = args[:transfer_spec] if args.key?(:transfer_spec) + @schedule = args[:schedule] if args.key?(:schedule) + @status = args[:status] if args.key?(:status) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @last_modification_time = args[:last_modification_time] if args.key?(:last_modification_time) + @deletion_time = args[:deletion_time] if args.key?(:deletion_time) end end @@ -179,12 +179,12 @@ module Google # 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? + @gcs_data_source = args[:gcs_data_source] if args.key?(:gcs_data_source) + @aws_s3_data_source = args[:aws_s3_data_source] if args.key?(:aws_s3_data_source) + @http_data_source = args[:http_data_source] if args.key?(:http_data_source) + @gcs_data_sink = args[:gcs_data_sink] if args.key?(:gcs_data_sink) + @object_conditions = args[:object_conditions] if args.key?(:object_conditions) + @transfer_options = args[:transfer_options] if args.key?(:transfer_options) end end @@ -206,7 +206,7 @@ module Google # Update properties of this object def update!(**args) - @bucket_name = args[:bucket_name] unless args[:bucket_name].nil? + @bucket_name = args[:bucket_name] if args.key?(:bucket_name) end end @@ -233,8 +233,8 @@ module Google # 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? + @bucket_name = args[:bucket_name] if args.key?(:bucket_name) + @aws_access_key = args[:aws_access_key] if args.key?(:aws_access_key) end end @@ -259,8 +259,8 @@ module Google # 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? + @access_key_id = args[:access_key_id] if args.key?(:access_key_id) + @secret_access_key = args[:secret_access_key] if args.key?(:secret_access_key) end end @@ -298,7 +298,7 @@ module Google # Update properties of this object def update!(**args) - @list_url = args[:list_url] unless args[:list_url].nil? + @list_url = args[:list_url] if args.key?(:list_url) end end @@ -354,10 +354,10 @@ module Google # 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? + @min_time_elapsed_since_last_modification = args[:min_time_elapsed_since_last_modification] if args.key?(:min_time_elapsed_since_last_modification) + @max_time_elapsed_since_last_modification = args[:max_time_elapsed_since_last_modification] if args.key?(:max_time_elapsed_since_last_modification) + @include_prefixes = args[:include_prefixes] if args.key?(:include_prefixes) + @exclude_prefixes = args[:exclude_prefixes] if args.key?(:exclude_prefixes) end end @@ -391,9 +391,9 @@ module Google # 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? + @overwrite_objects_already_existing_in_sink = args[:overwrite_objects_already_existing_in_sink] if args.key?(:overwrite_objects_already_existing_in_sink) + @delete_objects_unique_in_sink = args[:delete_objects_unique_in_sink] if args.key?(:delete_objects_unique_in_sink) + @delete_objects_from_source_after_transfer = args[:delete_objects_from_source_after_transfer] if args.key?(:delete_objects_from_source_after_transfer) end end @@ -436,9 +436,9 @@ module Google # 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? + @schedule_start_date = args[:schedule_start_date] if args.key?(:schedule_start_date) + @schedule_end_date = args[:schedule_end_date] if args.key?(:schedule_end_date) + @start_time_of_day = args[:start_time_of_day] if args.key?(:start_time_of_day) end end @@ -475,9 +475,9 @@ module Google # 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? + @year = args[:year] if args.key?(:year) + @month = args[:month] if args.key?(:month) + @day = args[:day] if args.key?(:day) end end @@ -515,10 +515,10 @@ module Google # 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? + @hours = args[:hours] if args.key?(:hours) + @minutes = args[:minutes] if args.key?(:minutes) + @seconds = args[:seconds] if args.key?(:seconds) + @nanos = args[:nanos] if args.key?(:nanos) end end @@ -553,9 +553,9 @@ module Google # 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? + @project_id = args[:project_id] if args.key?(:project_id) + @transfer_job = args[:transfer_job] if args.key?(:transfer_job) + @update_transfer_job_field_mask = args[:update_transfer_job_field_mask] if args.key?(:update_transfer_job_field_mask) end end @@ -579,8 +579,8 @@ module Google # 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? + @transfer_jobs = args[:transfer_jobs] if args.key?(:transfer_jobs) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -704,11 +704,11 @@ module Google # 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? + @name = args[:name] if args.key?(:name) + @metadata = args[:metadata] if args.key?(:metadata) + @done = args[:done] if args.key?(:done) + @error = args[:error] if args.key?(:error) + @response = args[:response] if args.key?(:response) end end @@ -772,9 +772,9 @@ module Google # 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? + @code = args[:code] if args.key?(:code) + @message = args[:message] if args.key?(:message) + @details = args[:details] if args.key?(:details) end end @@ -799,8 +799,8 @@ module Google # 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? + @operations = args[:operations] if args.key?(:operations) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -860,15 +860,15 @@ module Google # 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? + @name = args[:name] if args.key?(:name) + @project_id = args[:project_id] if args.key?(:project_id) + @transfer_spec = args[:transfer_spec] if args.key?(:transfer_spec) + @start_time = args[:start_time] if args.key?(:start_time) + @end_time = args[:end_time] if args.key?(:end_time) + @status = args[:status] if args.key?(:status) + @counters = args[:counters] if args.key?(:counters) + @error_breakdowns = args[:error_breakdowns] if args.key?(:error_breakdowns) + @transfer_job_name = args[:transfer_job_name] if args.key?(:transfer_job_name) end end @@ -966,22 +966,22 @@ module Google # 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? + @objects_found_from_source = args[:objects_found_from_source] if args.key?(:objects_found_from_source) + @bytes_found_from_source = args[:bytes_found_from_source] if args.key?(:bytes_found_from_source) + @objects_found_only_from_sink = args[:objects_found_only_from_sink] if args.key?(:objects_found_only_from_sink) + @bytes_found_only_from_sink = args[:bytes_found_only_from_sink] if args.key?(:bytes_found_only_from_sink) + @objects_from_source_skipped_by_sync = args[:objects_from_source_skipped_by_sync] if args.key?(:objects_from_source_skipped_by_sync) + @bytes_from_source_skipped_by_sync = args[:bytes_from_source_skipped_by_sync] if args.key?(:bytes_from_source_skipped_by_sync) + @objects_copied_to_sink = args[:objects_copied_to_sink] if args.key?(:objects_copied_to_sink) + @bytes_copied_to_sink = args[:bytes_copied_to_sink] if args.key?(:bytes_copied_to_sink) + @objects_deleted_from_source = args[:objects_deleted_from_source] if args.key?(:objects_deleted_from_source) + @bytes_deleted_from_source = args[:bytes_deleted_from_source] if args.key?(:bytes_deleted_from_source) + @objects_deleted_from_sink = args[:objects_deleted_from_sink] if args.key?(:objects_deleted_from_sink) + @bytes_deleted_from_sink = args[:bytes_deleted_from_sink] if args.key?(:bytes_deleted_from_sink) + @objects_from_source_failed = args[:objects_from_source_failed] if args.key?(:objects_from_source_failed) + @bytes_from_source_failed = args[:bytes_from_source_failed] if args.key?(:bytes_from_source_failed) + @objects_failed_to_delete_from_sink = args[:objects_failed_to_delete_from_sink] if args.key?(:objects_failed_to_delete_from_sink) + @bytes_failed_to_delete_from_sink = args[:bytes_failed_to_delete_from_sink] if args.key?(:bytes_failed_to_delete_from_sink) end end @@ -1010,9 +1010,9 @@ module Google # 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? + @error_code = args[:error_code] if args.key?(:error_code) + @error_count = args[:error_count] if args.key?(:error_count) + @error_log_entries = args[:error_log_entries] if args.key?(:error_log_entries) end end @@ -1037,8 +1037,8 @@ module Google # 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? + @url = args[:url] if args.key?(:url) + @error_details = args[:error_details] if args.key?(:error_details) end end end diff --git a/generated/google/apis/tagmanager_v1/classes.rb b/generated/google/apis/tagmanager_v1/classes.rb index 061b5bae8..45108819e 100644 --- a/generated/google/apis/tagmanager_v1/classes.rb +++ b/generated/google/apis/tagmanager_v1/classes.rb @@ -54,10 +54,10 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @name = args[:name] unless args[:name].nil? - @share_data = args[:share_data] unless args[:share_data].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @name = args[:name] if args.key?(:name) + @share_data = args[:share_data] if args.key?(:share_data) end end @@ -76,7 +76,7 @@ module Google # Update properties of this object def update!(**args) - @permission = args[:permission] unless args[:permission].nil? + @permission = args[:permission] if args.key?(:permission) end end @@ -109,8 +109,8 @@ module Google # Update properties of this object def update!(**args) - @parameter = args[:parameter] unless args[:parameter].nil? - @type = args[:type] unless args[:type].nil? + @parameter = args[:parameter] if args.key?(:parameter) + @type = args[:type] if args.key?(:type) end end @@ -186,17 +186,17 @@ module Google # 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? - @domain_name = args[:domain_name] unless args[:domain_name].nil? - @enabled_built_in_variable = args[:enabled_built_in_variable] unless args[:enabled_built_in_variable].nil? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @name = args[:name] unless args[:name].nil? - @notes = args[:notes] unless args[:notes].nil? - @public_id = args[:public_id] unless args[:public_id].nil? - @time_zone_country_id = args[:time_zone_country_id] unless args[:time_zone_country_id].nil? - @time_zone_id = args[:time_zone_id] unless args[:time_zone_id].nil? - @usage_context = args[:usage_context] unless args[:usage_context].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @container_id = args[:container_id] if args.key?(:container_id) + @domain_name = args[:domain_name] if args.key?(:domain_name) + @enabled_built_in_variable = args[:enabled_built_in_variable] if args.key?(:enabled_built_in_variable) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @name = args[:name] if args.key?(:name) + @notes = args[:notes] if args.key?(:notes) + @public_id = args[:public_id] if args.key?(:public_id) + @time_zone_country_id = args[:time_zone_country_id] if args.key?(:time_zone_country_id) + @time_zone_id = args[:time_zone_id] if args.key?(:time_zone_id) + @usage_context = args[:usage_context] if args.key?(:usage_context) end end @@ -221,8 +221,8 @@ module Google # Update properties of this object def update!(**args) - @container_id = args[:container_id] unless args[:container_id].nil? - @permission = args[:permission] unless args[:permission].nil? + @container_id = args[:container_id] if args.key?(:container_id) + @permission = args[:permission] if args.key?(:permission) end end @@ -308,20 +308,20 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @container = args[:container] unless args[:container].nil? - @container_id = args[:container_id] unless args[:container_id].nil? - @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? - @rule = args[:rule] unless args[:rule].nil? - @tag = args[:tag] unless args[:tag].nil? - @trigger = args[:trigger] unless args[:trigger].nil? - @variable = args[:variable] unless args[:variable].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @container = args[:container] if args.key?(:container) + @container_id = args[:container_id] if args.key?(:container_id) + @container_version_id = args[:container_version_id] if args.key?(:container_version_id) + @deleted = args[:deleted] if args.key?(:deleted) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @folder = args[:folder] if args.key?(:folder) + @macro = args[:macro] if args.key?(:macro) + @name = args[:name] if args.key?(:name) + @notes = args[:notes] if args.key?(:notes) + @rule = args[:rule] if args.key?(:rule) + @tag = args[:tag] if args.key?(:tag) + @trigger = args[:trigger] if args.key?(:trigger) + @variable = args[:variable] if args.key?(:variable) end end @@ -386,16 +386,16 @@ module Google # 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? - @container_version_id = args[:container_version_id] unless args[:container_version_id].nil? - @deleted = args[:deleted] unless args[:deleted].nil? - @name = args[:name] unless args[:name].nil? - @num_macros = args[:num_macros] unless args[:num_macros].nil? - @num_rules = args[:num_rules] unless args[:num_rules].nil? - @num_tags = args[:num_tags] unless args[:num_tags].nil? - @num_triggers = args[:num_triggers] unless args[:num_triggers].nil? - @num_variables = args[:num_variables] unless args[:num_variables].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @container_id = args[:container_id] if args.key?(:container_id) + @container_version_id = args[:container_version_id] if args.key?(:container_version_id) + @deleted = args[:deleted] if args.key?(:deleted) + @name = args[:name] if args.key?(:name) + @num_macros = args[:num_macros] if args.key?(:num_macros) + @num_rules = args[:num_rules] if args.key?(:num_rules) + @num_tags = args[:num_tags] if args.key?(:num_tags) + @num_triggers = args[:num_triggers] if args.key?(:num_triggers) + @num_variables = args[:num_variables] if args.key?(:num_variables) end end @@ -425,9 +425,9 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @notes = args[:notes] unless args[:notes].nil? - @quick_preview = args[:quick_preview] unless args[:quick_preview].nil? + @name = args[:name] if args.key?(:name) + @notes = args[:notes] if args.key?(:notes) + @quick_preview = args[:quick_preview] if args.key?(:quick_preview) end end @@ -452,8 +452,8 @@ module Google # Update properties of this object def update!(**args) - @compiler_error = args[:compiler_error] unless args[:compiler_error].nil? - @container_version = args[:container_version] unless args[:container_version].nil? + @compiler_error = args[:compiler_error] if args.key?(:compiler_error) + @container_version = args[:container_version] if args.key?(:container_version) end end @@ -493,11 +493,11 @@ module Google # 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? + @account_id = args[:account_id] if args.key?(:account_id) + @container_id = args[:container_id] if args.key?(:container_id) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @folder_id = args[:folder_id] if args.key?(:folder_id) + @name = args[:name] if args.key?(:name) end end @@ -526,9 +526,9 @@ module Google # 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? + @tag = args[:tag] if args.key?(:tag) + @trigger = args[:trigger] if args.key?(:trigger) + @variable = args[:variable] if args.key?(:variable) end end @@ -547,7 +547,7 @@ module Google # Update properties of this object def update!(**args) - @user_access = args[:user_access] unless args[:user_access].nil? + @user_access = args[:user_access] if args.key?(:user_access) end end @@ -566,7 +566,7 @@ module Google # Update properties of this object def update!(**args) - @accounts = args[:accounts] unless args[:accounts].nil? + @accounts = args[:accounts] if args.key?(:accounts) end end @@ -590,8 +590,8 @@ module Google # Update properties of this object def update!(**args) - @container_version = args[:container_version] unless args[:container_version].nil? - @container_version_header = args[:container_version_header] unless args[:container_version_header].nil? + @container_version = args[:container_version] if args.key?(:container_version) + @container_version_header = args[:container_version_header] if args.key?(:container_version_header) end end @@ -610,7 +610,7 @@ module Google # Update properties of this object def update!(**args) - @containers = args[:containers] unless args[:containers].nil? + @containers = args[:containers] if args.key?(:containers) end end @@ -629,7 +629,7 @@ module Google # Update properties of this object def update!(**args) - @folders = args[:folders] unless args[:folders].nil? + @folders = args[:folders] if args.key?(:folders) end end @@ -648,7 +648,7 @@ module Google # Update properties of this object def update!(**args) - @tags = args[:tags] unless args[:tags].nil? + @tags = args[:tags] if args.key?(:tags) end end @@ -667,7 +667,7 @@ module Google # Update properties of this object def update!(**args) - @triggers = args[:triggers] unless args[:triggers].nil? + @triggers = args[:triggers] if args.key?(:triggers) end end @@ -686,7 +686,7 @@ module Google # Update properties of this object def update!(**args) - @variables = args[:variables] unless args[:variables].nil? + @variables = args[:variables] if args.key?(:variables) end end @@ -770,19 +770,19 @@ module Google # 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? - @disabling_rule_id = args[:disabling_rule_id] unless args[:disabling_rule_id].nil? - @enabling_rule_id = args[:enabling_rule_id] unless args[:enabling_rule_id].nil? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @macro_id = args[:macro_id] unless args[:macro_id].nil? - @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? + @account_id = args[:account_id] if args.key?(:account_id) + @container_id = args[:container_id] if args.key?(:container_id) + @disabling_rule_id = args[:disabling_rule_id] if args.key?(:disabling_rule_id) + @enabling_rule_id = args[:enabling_rule_id] if args.key?(:enabling_rule_id) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @macro_id = args[:macro_id] if args.key?(:macro_id) + @name = args[:name] if args.key?(:name) + @notes = args[:notes] if args.key?(:notes) + @parameter = args[:parameter] if args.key?(:parameter) + @parent_folder_id = args[:parent_folder_id] if args.key?(:parent_folder_id) + @schedule_end_ms = args[:schedule_end_ms] if args.key?(:schedule_end_ms) + @schedule_start_ms = args[:schedule_start_ms] if args.key?(:schedule_start_ms) + @type = args[:type] if args.key?(:type) end end @@ -829,11 +829,11 @@ module Google # Update properties of this object def update!(**args) - @key = args[:key] unless args[:key].nil? - @list = args[:list] unless args[:list].nil? - @map = args[:map] unless args[:map].nil? - @type = args[:type] unless args[:type].nil? - @value = args[:value] unless args[:value].nil? + @key = args[:key] if args.key?(:key) + @list = args[:list] if args.key?(:list) + @map = args[:map] if args.key?(:map) + @type = args[:type] if args.key?(:type) + @value = args[:value] if args.key?(:value) end end @@ -858,8 +858,8 @@ module Google # Update properties of this object def update!(**args) - @compiler_error = args[:compiler_error] unless args[:compiler_error].nil? - @container_version = args[:container_version] unless args[:container_version].nil? + @compiler_error = args[:compiler_error] if args.key?(:compiler_error) + @container_version = args[:container_version] if args.key?(:container_version) end end @@ -909,13 +909,13 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @condition = args[:condition] unless args[:condition].nil? - @container_id = args[:container_id] unless args[:container_id].nil? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @name = args[:name] unless args[:name].nil? - @notes = args[:notes] unless args[:notes].nil? - @rule_id = args[:rule_id] unless args[:rule_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @condition = args[:condition] if args.key?(:condition) + @container_id = args[:container_id] if args.key?(:container_id) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @name = args[:name] if args.key?(:name) + @notes = args[:notes] if args.key?(:notes) + @rule_id = args[:rule_id] if args.key?(:rule_id) end end @@ -941,8 +941,8 @@ module Google # 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? + @stop_on_setup_failure = args[:stop_on_setup_failure] if args.key?(:stop_on_setup_failure) + @tag_name = args[:tag_name] if args.key?(:tag_name) end end @@ -1063,26 +1063,26 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @blocking_rule_id = args[:blocking_rule_id] unless args[:blocking_rule_id].nil? - @blocking_trigger_id = args[:blocking_trigger_id] unless args[:blocking_trigger_id].nil? - @container_id = args[:container_id] unless args[:container_id].nil? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @firing_rule_id = args[:firing_rule_id] unless args[:firing_rule_id].nil? - @firing_trigger_id = args[:firing_trigger_id] unless args[:firing_trigger_id].nil? - @live_only = args[:live_only] unless args[:live_only].nil? - @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? + @account_id = args[:account_id] if args.key?(:account_id) + @blocking_rule_id = args[:blocking_rule_id] if args.key?(:blocking_rule_id) + @blocking_trigger_id = args[:blocking_trigger_id] if args.key?(:blocking_trigger_id) + @container_id = args[:container_id] if args.key?(:container_id) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @firing_rule_id = args[:firing_rule_id] if args.key?(:firing_rule_id) + @firing_trigger_id = args[:firing_trigger_id] if args.key?(:firing_trigger_id) + @live_only = args[:live_only] if args.key?(:live_only) + @name = args[:name] if args.key?(:name) + @notes = args[:notes] if args.key?(:notes) + @parameter = args[:parameter] if args.key?(:parameter) + @parent_folder_id = args[:parent_folder_id] if args.key?(:parent_folder_id) + @priority = args[:priority] if args.key?(:priority) + @schedule_end_ms = args[:schedule_end_ms] if args.key?(:schedule_end_ms) + @schedule_start_ms = args[:schedule_start_ms] if args.key?(:schedule_start_ms) + @setup_tag = args[:setup_tag] if args.key?(:setup_tag) + @tag_firing_option = args[:tag_firing_option] if args.key?(:tag_firing_option) + @tag_id = args[:tag_id] if args.key?(:tag_id) + @teardown_tag = args[:teardown_tag] if args.key?(:teardown_tag) + @type = args[:type] if args.key?(:type) end end @@ -1108,8 +1108,8 @@ module Google # 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? + @stop_teardown_on_failure = args[:stop_teardown_on_failure] if args.key?(:stop_teardown_on_failure) + @tag_name = args[:tag_name] if args.key?(:tag_name) end end @@ -1219,25 +1219,25 @@ module Google # Update properties of this object def update!(**args) - @account_id = args[:account_id] unless args[:account_id].nil? - @auto_event_filter = args[:auto_event_filter] unless args[:auto_event_filter].nil? - @check_validation = args[:check_validation] unless args[:check_validation].nil? - @container_id = args[:container_id] unless args[:container_id].nil? - @custom_event_filter = args[:custom_event_filter] unless args[:custom_event_filter].nil? - @enable_all_videos = args[:enable_all_videos] unless args[:enable_all_videos].nil? - @event_name = args[:event_name] unless args[:event_name].nil? - @filter = args[:filter] unless args[:filter].nil? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @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? - @video_percentage_list = args[:video_percentage_list] unless args[:video_percentage_list].nil? - @wait_for_tags = args[:wait_for_tags] unless args[:wait_for_tags].nil? - @wait_for_tags_timeout = args[:wait_for_tags_timeout] unless args[:wait_for_tags_timeout].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @auto_event_filter = args[:auto_event_filter] if args.key?(:auto_event_filter) + @check_validation = args[:check_validation] if args.key?(:check_validation) + @container_id = args[:container_id] if args.key?(:container_id) + @custom_event_filter = args[:custom_event_filter] if args.key?(:custom_event_filter) + @enable_all_videos = args[:enable_all_videos] if args.key?(:enable_all_videos) + @event_name = args[:event_name] if args.key?(:event_name) + @filter = args[:filter] if args.key?(:filter) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @interval = args[:interval] if args.key?(:interval) + @limit = args[:limit] if args.key?(:limit) + @name = args[:name] if args.key?(:name) + @parent_folder_id = args[:parent_folder_id] if args.key?(:parent_folder_id) + @trigger_id = args[:trigger_id] if args.key?(:trigger_id) + @type = args[:type] if args.key?(:type) + @unique_trigger_id = args[:unique_trigger_id] if args.key?(:unique_trigger_id) + @video_percentage_list = args[:video_percentage_list] if args.key?(:video_percentage_list) + @wait_for_tags = args[:wait_for_tags] if args.key?(:wait_for_tags) + @wait_for_tags_timeout = args[:wait_for_tags_timeout] if args.key?(:wait_for_tags_timeout) end end @@ -1276,11 +1276,11 @@ module Google # Update properties of this object def update!(**args) - @account_access = args[:account_access] unless args[:account_access].nil? - @account_id = args[:account_id] unless args[:account_id].nil? - @container_access = args[:container_access] unless args[:container_access].nil? - @email_address = args[:email_address] unless args[:email_address].nil? - @permission_id = args[:permission_id] unless args[:permission_id].nil? + @account_access = args[:account_access] if args.key?(:account_access) + @account_id = args[:account_id] if args.key?(:account_id) + @container_access = args[:container_access] if args.key?(:container_access) + @email_address = args[:email_address] if args.key?(:email_address) + @permission_id = args[:permission_id] if args.key?(:permission_id) end end @@ -1364,19 +1364,19 @@ module Google # 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? - @disabling_trigger_id = args[:disabling_trigger_id] unless args[:disabling_trigger_id].nil? - @enabling_trigger_id = args[:enabling_trigger_id] unless args[:enabling_trigger_id].nil? - @fingerprint = args[:fingerprint] unless args[:fingerprint].nil? - @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? - @variable_id = args[:variable_id] unless args[:variable_id].nil? + @account_id = args[:account_id] if args.key?(:account_id) + @container_id = args[:container_id] if args.key?(:container_id) + @disabling_trigger_id = args[:disabling_trigger_id] if args.key?(:disabling_trigger_id) + @enabling_trigger_id = args[:enabling_trigger_id] if args.key?(:enabling_trigger_id) + @fingerprint = args[:fingerprint] if args.key?(:fingerprint) + @name = args[:name] if args.key?(:name) + @notes = args[:notes] if args.key?(:notes) + @parameter = args[:parameter] if args.key?(:parameter) + @parent_folder_id = args[:parent_folder_id] if args.key?(:parent_folder_id) + @schedule_end_ms = args[:schedule_end_ms] if args.key?(:schedule_end_ms) + @schedule_start_ms = args[:schedule_start_ms] if args.key?(:schedule_start_ms) + @type = args[:type] if args.key?(:type) + @variable_id = args[:variable_id] if args.key?(:variable_id) end end end diff --git a/generated/google/apis/taskqueue_v1beta2/classes.rb b/generated/google/apis/taskqueue_v1beta2/classes.rb index b9e9ebf17..2b5643d8d 100644 --- a/generated/google/apis/taskqueue_v1beta2/classes.rb +++ b/generated/google/apis/taskqueue_v1beta2/classes.rb @@ -74,14 +74,14 @@ module Google # Update properties of this object def update!(**args) - @enqueue_timestamp = args[:enqueue_timestamp] unless args[:enqueue_timestamp].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @lease_timestamp = args[:lease_timestamp] unless args[:lease_timestamp].nil? - @payload_base64 = args[:payload_base64] unless args[:payload_base64].nil? - @queue_name = args[:queue_name] unless args[:queue_name].nil? - @retry_count = args[:retry_count] unless args[:retry_count].nil? - @tag = args[:tag] unless args[:tag].nil? + @enqueue_timestamp = args[:enqueue_timestamp] if args.key?(:enqueue_timestamp) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @lease_timestamp = args[:lease_timestamp] if args.key?(:lease_timestamp) + @payload_base64 = args[:payload_base64] if args.key?(:payload_base64) + @queue_name = args[:queue_name] if args.key?(:queue_name) + @retry_count = args[:retry_count] if args.key?(:retry_count) + @tag = args[:tag] if args.key?(:tag) end end @@ -121,11 +121,11 @@ module Google # Update properties of this object def update!(**args) - @acl = args[:acl] unless args[:acl].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @max_leases = args[:max_leases] unless args[:max_leases].nil? - @stats = args[:stats] unless args[:stats].nil? + @acl = args[:acl] if args.key?(:acl) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @max_leases = args[:max_leases] if args.key?(:max_leases) + @stats = args[:stats] if args.key?(:stats) end # ACLs that are applicable to this TaskQueue object. @@ -156,9 +156,9 @@ module Google # Update properties of this object def update!(**args) - @admin_emails = args[:admin_emails] unless args[:admin_emails].nil? - @consumer_emails = args[:consumer_emails] unless args[:consumer_emails].nil? - @producer_emails = args[:producer_emails] unless args[:producer_emails].nil? + @admin_emails = args[:admin_emails] if args.key?(:admin_emails) + @consumer_emails = args[:consumer_emails] if args.key?(:consumer_emails) + @producer_emails = args[:producer_emails] if args.key?(:producer_emails) end end @@ -192,10 +192,10 @@ module Google # Update properties of this object def update!(**args) - @leased_last_hour = args[:leased_last_hour] unless args[:leased_last_hour].nil? - @leased_last_minute = args[:leased_last_minute] unless args[:leased_last_minute].nil? - @oldest_task = args[:oldest_task] unless args[:oldest_task].nil? - @total_tasks = args[:total_tasks] unless args[:total_tasks].nil? + @leased_last_hour = args[:leased_last_hour] if args.key?(:leased_last_hour) + @leased_last_minute = args[:leased_last_minute] if args.key?(:leased_last_minute) + @oldest_task = args[:oldest_task] if args.key?(:oldest_task) + @total_tasks = args[:total_tasks] if args.key?(:total_tasks) end end end @@ -220,8 +220,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -245,8 +245,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end end diff --git a/generated/google/apis/tasks_v1/classes.rb b/generated/google/apis/tasks_v1/classes.rb index 35583ad1d..bd1db194f 100644 --- a/generated/google/apis/tasks_v1/classes.rb +++ b/generated/google/apis/tasks_v1/classes.rb @@ -119,21 +119,21 @@ module Google # Update properties of this object def update!(**args) - @completed = args[:completed] unless args[:completed].nil? - @deleted = args[:deleted] unless args[:deleted].nil? - @due = args[:due] unless args[:due].nil? - @etag = args[:etag] unless args[:etag].nil? - @hidden = args[:hidden] unless args[:hidden].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @links = args[:links] unless args[:links].nil? - @notes = args[:notes] unless args[:notes].nil? - @parent = args[:parent] unless args[:parent].nil? - @position = args[:position] unless args[:position].nil? - @self_link = args[:self_link] unless args[:self_link].nil? - @status = args[:status] unless args[:status].nil? - @title = args[:title] unless args[:title].nil? - @updated = args[:updated] unless args[:updated].nil? + @completed = args[:completed] if args.key?(:completed) + @deleted = args[:deleted] if args.key?(:deleted) + @due = args[:due] if args.key?(:due) + @etag = args[:etag] if args.key?(:etag) + @hidden = args[:hidden] if args.key?(:hidden) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @links = args[:links] if args.key?(:links) + @notes = args[:notes] if args.key?(:notes) + @parent = args[:parent] if args.key?(:parent) + @position = args[:position] if args.key?(:position) + @self_link = args[:self_link] if args.key?(:self_link) + @status = args[:status] if args.key?(:status) + @title = args[:title] if args.key?(:title) + @updated = args[:updated] if args.key?(:updated) end # @@ -161,9 +161,9 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @link = args[:link] unless args[:link].nil? - @type = args[:type] unless args[:type].nil? + @description = args[:description] if args.key?(:description) + @link = args[:link] if args.key?(:link) + @type = args[:type] if args.key?(:type) end end end @@ -209,12 +209,12 @@ module Google # 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? - @self_link = args[:self_link] unless args[:self_link].nil? - @title = args[:title] unless args[:title].nil? - @updated = args[:updated] unless args[:updated].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @self_link = args[:self_link] if args.key?(:self_link) + @title = args[:title] if args.key?(:title) + @updated = args[:updated] if args.key?(:updated) end end @@ -248,10 +248,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -285,10 +285,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end end diff --git a/generated/google/apis/translate_v2/classes.rb b/generated/google/apis/translate_v2/classes.rb index dc7384cfa..f8cabbede 100644 --- a/generated/google/apis/translate_v2/classes.rb +++ b/generated/google/apis/translate_v2/classes.rb @@ -37,7 +37,7 @@ module Google # Update properties of this object def update!(**args) - @detections = args[:detections] unless args[:detections].nil? + @detections = args[:detections] if args.key?(:detections) end end @@ -67,9 +67,9 @@ module Google # Update properties of this object def update!(**args) - @confidence = args[:confidence] unless args[:confidence].nil? - @is_reliable = args[:is_reliable] unless args[:is_reliable].nil? - @language = args[:language] unless args[:language].nil? + @confidence = args[:confidence] if args.key?(:confidence) + @is_reliable = args[:is_reliable] if args.key?(:is_reliable) + @language = args[:language] if args.key?(:language) end end @@ -91,7 +91,7 @@ module Google # Update properties of this object def update!(**args) - @languages = args[:languages] unless args[:languages].nil? + @languages = args[:languages] if args.key?(:languages) end end @@ -115,8 +115,8 @@ module Google # Update properties of this object def update!(**args) - @language = args[:language] unless args[:language].nil? - @name = args[:name] unless args[:name].nil? + @language = args[:language] if args.key?(:language) + @name = args[:name] if args.key?(:name) end end @@ -135,7 +135,7 @@ module Google # Update properties of this object def update!(**args) - @translations = args[:translations] unless args[:translations].nil? + @translations = args[:translations] if args.key?(:translations) end end @@ -159,8 +159,8 @@ module Google # Update properties of this object def update!(**args) - @detected_source_language = args[:detected_source_language] unless args[:detected_source_language].nil? - @translated_text = args[:translated_text] unless args[:translated_text].nil? + @detected_source_language = args[:detected_source_language] if args.key?(:detected_source_language) + @translated_text = args[:translated_text] if args.key?(:translated_text) end end end diff --git a/generated/google/apis/urlshortener_v1/classes.rb b/generated/google/apis/urlshortener_v1/classes.rb index a48ed2857..2af0aaeb0 100644 --- a/generated/google/apis/urlshortener_v1/classes.rb +++ b/generated/google/apis/urlshortener_v1/classes.rb @@ -66,12 +66,12 @@ module Google # Update properties of this object def update!(**args) - @browsers = args[:browsers] unless args[:browsers].nil? - @countries = args[:countries] unless args[:countries].nil? - @long_url_clicks = args[:long_url_clicks] unless args[:long_url_clicks].nil? - @platforms = args[:platforms] unless args[:platforms].nil? - @referrers = args[:referrers] unless args[:referrers].nil? - @short_url_clicks = args[:short_url_clicks] unless args[:short_url_clicks].nil? + @browsers = args[:browsers] if args.key?(:browsers) + @countries = args[:countries] if args.key?(:countries) + @long_url_clicks = args[:long_url_clicks] if args.key?(:long_url_clicks) + @platforms = args[:platforms] if args.key?(:platforms) + @referrers = args[:referrers] if args.key?(:referrers) + @short_url_clicks = args[:short_url_clicks] if args.key?(:short_url_clicks) end end @@ -110,11 +110,11 @@ module Google # Update properties of this object def update!(**args) - @all_time = args[:all_time] unless args[:all_time].nil? - @day = args[:day] unless args[:day].nil? - @month = args[:month] unless args[:month].nil? - @two_hours = args[:two_hours] unless args[:two_hours].nil? - @week = args[:week] unless args[:week].nil? + @all_time = args[:all_time] if args.key?(:all_time) + @day = args[:day] if args.key?(:day) + @month = args[:month] if args.key?(:month) + @two_hours = args[:two_hours] if args.key?(:two_hours) + @week = args[:week] if args.key?(:week) end end @@ -139,8 +139,8 @@ module Google # Update properties of this object def update!(**args) - @count = args[:count] unless args[:count].nil? - @id = args[:id] unless args[:id].nil? + @count = args[:count] if args.key?(:count) + @id = args[:id] if args.key?(:id) end end @@ -189,12 +189,12 @@ module Google # Update properties of this object def update!(**args) - @analytics = args[:analytics] unless args[:analytics].nil? - @created = args[:created] unless args[:created].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @long_url = args[:long_url] unless args[:long_url].nil? - @status = args[:status] unless args[:status].nil? + @analytics = args[:analytics] if args.key?(:analytics) + @created = args[:created] if args.key?(:created) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @long_url = args[:long_url] if args.key?(:long_url) + @status = args[:status] if args.key?(:status) end end @@ -234,11 +234,11 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @items_per_page = args[:items_per_page] unless args[:items_per_page].nil? - @kind = args[:kind] unless args[:kind].nil? - @next_page_token = args[:next_page_token] unless args[:next_page_token].nil? - @total_items = args[:total_items] unless args[:total_items].nil? + @items = args[:items] if args.key?(:items) + @items_per_page = args[:items_per_page] if args.key?(:items_per_page) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @total_items = args[:total_items] if args.key?(:total_items) end end end diff --git a/generated/google/apis/webmasters_v3/classes.rb b/generated/google/apis/webmasters_v3/classes.rb index f91566adb..3c65847a4 100644 --- a/generated/google/apis/webmasters_v3/classes.rb +++ b/generated/google/apis/webmasters_v3/classes.rb @@ -57,11 +57,11 @@ module Google # Update properties of this object def update!(**args) - @clicks = args[:clicks] unless args[:clicks].nil? - @ctr = args[:ctr] unless args[:ctr].nil? - @impressions = args[:impressions] unless args[:impressions].nil? - @keys = args[:keys] unless args[:keys].nil? - @position = args[:position] unless args[:position].nil? + @clicks = args[:clicks] if args.key?(:clicks) + @ctr = args[:ctr] if args.key?(:ctr) + @impressions = args[:impressions] if args.key?(:impressions) + @keys = args[:keys] if args.key?(:keys) + @position = args[:position] if args.key?(:position) end end @@ -90,9 +90,9 @@ module Google # Update properties of this object def update!(**args) - @dimension = args[:dimension] unless args[:dimension].nil? - @expression = args[:expression] unless args[:expression].nil? - @operator = args[:operator] unless args[:operator].nil? + @dimension = args[:dimension] if args.key?(:dimension) + @expression = args[:expression] if args.key?(:expression) + @operator = args[:operator] if args.key?(:operator) end end @@ -116,8 +116,8 @@ module Google # Update properties of this object def update!(**args) - @filters = args[:filters] unless args[:filters].nil? - @group_type = args[:group_type] unless args[:group_type].nil? + @filters = args[:filters] if args.key?(:filters) + @group_type = args[:group_type] if args.key?(:group_type) end end @@ -187,13 +187,13 @@ module Google # Update properties of this object def update!(**args) - @aggregation_type = args[:aggregation_type] unless args[:aggregation_type].nil? - @dimension_filter_groups = args[:dimension_filter_groups] unless args[:dimension_filter_groups].nil? - @dimensions = args[:dimensions] unless args[:dimensions].nil? - @end_date = args[:end_date] unless args[:end_date].nil? - @row_limit = args[:row_limit] unless args[:row_limit].nil? - @search_type = args[:search_type] unless args[:search_type].nil? - @start_date = args[:start_date] unless args[:start_date].nil? + @aggregation_type = args[:aggregation_type] if args.key?(:aggregation_type) + @dimension_filter_groups = args[:dimension_filter_groups] if args.key?(:dimension_filter_groups) + @dimensions = args[:dimensions] if args.key?(:dimensions) + @end_date = args[:end_date] if args.key?(:end_date) + @row_limit = args[:row_limit] if args.key?(:row_limit) + @search_type = args[:search_type] if args.key?(:search_type) + @start_date = args[:start_date] if args.key?(:start_date) end end @@ -219,8 +219,8 @@ module Google # Update properties of this object def update!(**args) - @response_aggregation_type = args[:response_aggregation_type] unless args[:response_aggregation_type].nil? - @rows = args[:rows] unless args[:rows].nil? + @response_aggregation_type = args[:response_aggregation_type] if args.key?(:response_aggregation_type) + @rows = args[:rows] if args.key?(:rows) end end @@ -239,7 +239,7 @@ module Google # Update properties of this object def update!(**args) - @sitemap = args[:sitemap] unless args[:sitemap].nil? + @sitemap = args[:sitemap] if args.key?(:sitemap) end end @@ -259,7 +259,7 @@ module Google # Update properties of this object def update!(**args) - @site_entry = args[:site_entry] unless args[:site_entry].nil? + @site_entry = args[:site_entry] if args.key?(:site_entry) end end @@ -283,8 +283,8 @@ module Google # Update properties of this object def update!(**args) - @count = args[:count] unless args[:count].nil? - @timestamp = args[:timestamp] unless args[:timestamp].nil? + @count = args[:count] if args.key?(:count) + @timestamp = args[:timestamp] if args.key?(:timestamp) end end @@ -315,9 +315,9 @@ module Google # Update properties of this object def update!(**args) - @category = args[:category] unless args[:category].nil? - @entries = args[:entries] unless args[:entries].nil? - @platform = args[:platform] unless args[:platform].nil? + @category = args[:category] if args.key?(:category) + @entries = args[:entries] if args.key?(:entries) + @platform = args[:platform] if args.key?(:platform) end end @@ -338,7 +338,7 @@ module Google # Update properties of this object def update!(**args) - @count_per_types = args[:count_per_types] unless args[:count_per_types].nil? + @count_per_types = args[:count_per_types] if args.key?(:count_per_types) end end @@ -377,11 +377,11 @@ module Google # Update properties of this object def update!(**args) - @first_detected = args[:first_detected] unless args[:first_detected].nil? - @last_crawled = args[:last_crawled] unless args[:last_crawled].nil? - @page_url = args[:page_url] unless args[:page_url].nil? - @response_code = args[:response_code] unless args[:response_code].nil? - @url_details = args[:url_details] unless args[:url_details].nil? + @first_detected = args[:first_detected] if args.key?(:first_detected) + @last_crawled = args[:last_crawled] if args.key?(:last_crawled) + @page_url = args[:page_url] if args.key?(:page_url) + @response_code = args[:response_code] if args.key?(:response_code) + @url_details = args[:url_details] if args.key?(:url_details) end end @@ -400,7 +400,7 @@ module Google # Update properties of this object def update!(**args) - @url_crawl_error_sample = args[:url_crawl_error_sample] unless args[:url_crawl_error_sample].nil? + @url_crawl_error_sample = args[:url_crawl_error_sample] if args.key?(:url_crawl_error_sample) end end @@ -424,8 +424,8 @@ module Google # Update properties of this object def update!(**args) - @containing_sitemaps = args[:containing_sitemaps] unless args[:containing_sitemaps].nil? - @linked_from_urls = args[:linked_from_urls] unless args[:linked_from_urls].nil? + @containing_sitemaps = args[:containing_sitemaps] if args.key?(:containing_sitemaps) + @linked_from_urls = args[:linked_from_urls] if args.key?(:linked_from_urls) end end @@ -450,8 +450,8 @@ module Google # Update properties of this object def update!(**args) - @permission_level = args[:permission_level] unless args[:permission_level].nil? - @site_url = args[:site_url] unless args[:site_url].nil? + @permission_level = args[:permission_level] if args.key?(:permission_level) + @site_url = args[:site_url] if args.key?(:site_url) end end @@ -516,15 +516,15 @@ module Google # Update properties of this object def update!(**args) - @contents = args[:contents] unless args[:contents].nil? - @errors = args[:errors] unless args[:errors].nil? - @is_pending = args[:is_pending] unless args[:is_pending].nil? - @is_sitemaps_index = args[:is_sitemaps_index] unless args[:is_sitemaps_index].nil? - @last_downloaded = args[:last_downloaded] unless args[:last_downloaded].nil? - @last_submitted = args[:last_submitted] unless args[:last_submitted].nil? - @path = args[:path] unless args[:path].nil? - @type = args[:type] unless args[:type].nil? - @warnings = args[:warnings] unless args[:warnings].nil? + @contents = args[:contents] if args.key?(:contents) + @errors = args[:errors] if args.key?(:errors) + @is_pending = args[:is_pending] if args.key?(:is_pending) + @is_sitemaps_index = args[:is_sitemaps_index] if args.key?(:is_sitemaps_index) + @last_downloaded = args[:last_downloaded] if args.key?(:last_downloaded) + @last_submitted = args[:last_submitted] if args.key?(:last_submitted) + @path = args[:path] if args.key?(:path) + @type = args[:type] if args.key?(:type) + @warnings = args[:warnings] if args.key?(:warnings) end end @@ -553,9 +553,9 @@ module Google # Update properties of this object def update!(**args) - @indexed = args[:indexed] unless args[:indexed].nil? - @submitted = args[:submitted] unless args[:submitted].nil? - @type = args[:type] unless args[:type].nil? + @indexed = args[:indexed] if args.key?(:indexed) + @submitted = args[:submitted] if args.key?(:submitted) + @type = args[:type] if args.key?(:type) end end end diff --git a/generated/google/apis/youtube_analytics_v1/classes.rb b/generated/google/apis/youtube_analytics_v1/classes.rb index c93f635b2..86dc42734 100644 --- a/generated/google/apis/youtube_analytics_v1/classes.rb +++ b/generated/google/apis/youtube_analytics_v1/classes.rb @@ -64,12 +64,12 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @outputs = args[:outputs] unless args[:outputs].nil? - @report_id = args[:report_id] unless args[:report_id].nil? - @time_span = args[:time_span] unless args[:time_span].nil? - @time_updated = args[:time_updated] unless args[:time_updated].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @outputs = args[:outputs] if args.key?(:outputs) + @report_id = args[:report_id] if args.key?(:report_id) + @time_span = args[:time_span] if args.key?(:time_span) + @time_updated = args[:time_updated] if args.key?(:time_updated) end # @@ -97,9 +97,9 @@ module Google # Update properties of this object def update!(**args) - @download_url = args[:download_url] unless args[:download_url].nil? - @format = args[:format] unless args[:format].nil? - @type = args[:type] unless args[:type].nil? + @download_url = args[:download_url] if args.key?(:download_url) + @format = args[:format] if args.key?(:format) + @type = args[:type] if args.key?(:type) end end @@ -125,8 +125,8 @@ module Google # Update properties of this object def update!(**args) - @end_time = args[:end_time] unless args[:end_time].nil? - @start_time = args[:start_time] unless args[:start_time].nil? + @end_time = args[:end_time] if args.key?(:end_time) + @start_time = args[:start_time] if args.key?(:start_time) end end end @@ -168,11 +168,11 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @name = args[:name] unless args[:name].nil? - @status = args[:status] unless args[:status].nil? - @type = args[:type] unless args[:type].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @name = args[:name] if args.key?(:name) + @status = args[:status] if args.key?(:status) + @type = args[:type] if args.key?(:type) end end @@ -199,8 +199,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -226,8 +226,8 @@ module Google # Update properties of this object def update!(**args) - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -266,11 +266,11 @@ module Google # Update properties of this object def update!(**args) - @content_details = args[:content_details] unless args[:content_details].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @snippet = args[:snippet] unless args[:snippet].nil? + @content_details = args[:content_details] if args.key?(:content_details) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) end # @@ -293,8 +293,8 @@ module Google # Update properties of this object def update!(**args) - @item_count = args[:item_count] unless args[:item_count].nil? - @item_type = args[:item_type] unless args[:item_type].nil? + @item_count = args[:item_count] if args.key?(:item_count) + @item_type = args[:item_type] if args.key?(:item_type) end end @@ -318,8 +318,8 @@ module Google # Update properties of this object def update!(**args) - @published_at = args[:published_at] unless args[:published_at].nil? - @title = args[:title] unless args[:title].nil? + @published_at = args[:published_at] if args.key?(:published_at) + @title = args[:title] if args.key?(:title) end end end @@ -359,11 +359,11 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @group_id = args[:group_id] unless args[:group_id].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @resource = args[:resource] unless args[:resource].nil? + @etag = args[:etag] if args.key?(:etag) + @group_id = args[:group_id] if args.key?(:group_id) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @resource = args[:resource] if args.key?(:resource) end # @@ -386,8 +386,8 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) end end end @@ -418,9 +418,9 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) end end @@ -455,10 +455,10 @@ module Google # 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? + @etag = args[:etag] if args.key?(:etag) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -505,9 +505,9 @@ module Google # Update properties of this object def update!(**args) - @column_headers = args[:column_headers] unless args[:column_headers].nil? - @kind = args[:kind] unless args[:kind].nil? - @rows = args[:rows] unless args[:rows].nil? + @column_headers = args[:column_headers] if args.key?(:column_headers) + @kind = args[:kind] if args.key?(:kind) + @rows = args[:rows] if args.key?(:rows) end # @@ -535,9 +535,9 @@ module Google # Update properties of this object def update!(**args) - @column_type = args[:column_type] unless args[:column_type].nil? - @data_type = args[:data_type] unless args[:data_type].nil? - @name = args[:name] unless args[:name].nil? + @column_type = args[:column_type] if args.key?(:column_type) + @data_type = args[:data_type] if args.key?(:data_type) + @name = args[:name] if args.key?(:name) end end end diff --git a/generated/google/apis/youtube_v3/classes.rb b/generated/google/apis/youtube_v3/classes.rb index de52de351..639962aec 100644 --- a/generated/google/apis/youtube_v3/classes.rb +++ b/generated/google/apis/youtube_v3/classes.rb @@ -45,8 +45,8 @@ module Google # Update properties of this object def update!(**args) - @allowed = args[:allowed] unless args[:allowed].nil? - @exception = args[:exception] unless args[:exception].nil? + @allowed = args[:allowed] if args.key?(:allowed) + @exception = args[:exception] if args.key?(:exception) end end @@ -94,11 +94,11 @@ module Google # Update properties of this object def update!(**args) - @content_details = args[:content_details] unless args[:content_details].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @snippet = args[:snippet] unless args[:snippet].nil? + @content_details = args[:content_details] if args.key?(:content_details) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) end end @@ -168,17 +168,17 @@ module Google # Update properties of this object def update!(**args) - @bulletin = args[:bulletin] unless args[:bulletin].nil? - @channel_item = args[:channel_item] unless args[:channel_item].nil? - @comment = args[:comment] unless args[:comment].nil? - @favorite = args[:favorite] unless args[:favorite].nil? - @like = args[:like] unless args[:like].nil? - @playlist_item = args[:playlist_item] unless args[:playlist_item].nil? - @promoted_item = args[:promoted_item] unless args[:promoted_item].nil? - @recommendation = args[:recommendation] unless args[:recommendation].nil? - @social = args[:social] unless args[:social].nil? - @subscription = args[:subscription] unless args[:subscription].nil? - @upload = args[:upload] unless args[:upload].nil? + @bulletin = args[:bulletin] if args.key?(:bulletin) + @channel_item = args[:channel_item] if args.key?(:channel_item) + @comment = args[:comment] if args.key?(:comment) + @favorite = args[:favorite] if args.key?(:favorite) + @like = args[:like] if args.key?(:like) + @playlist_item = args[:playlist_item] if args.key?(:playlist_item) + @promoted_item = args[:promoted_item] if args.key?(:promoted_item) + @recommendation = args[:recommendation] if args.key?(:recommendation) + @social = args[:social] if args.key?(:social) + @subscription = args[:subscription] if args.key?(:subscription) + @upload = args[:upload] if args.key?(:upload) end end @@ -197,7 +197,7 @@ module Google # Update properties of this object def update!(**args) - @resource_id = args[:resource_id] unless args[:resource_id].nil? + @resource_id = args[:resource_id] if args.key?(:resource_id) end end @@ -216,7 +216,7 @@ module Google # Update properties of this object def update!(**args) - @resource_id = args[:resource_id] unless args[:resource_id].nil? + @resource_id = args[:resource_id] if args.key?(:resource_id) end end @@ -235,7 +235,7 @@ module Google # Update properties of this object def update!(**args) - @resource_id = args[:resource_id] unless args[:resource_id].nil? + @resource_id = args[:resource_id] if args.key?(:resource_id) end end @@ -254,7 +254,7 @@ module Google # Update properties of this object def update!(**args) - @resource_id = args[:resource_id] unless args[:resource_id].nil? + @resource_id = args[:resource_id] if args.key?(:resource_id) end end @@ -273,7 +273,7 @@ module Google # Update properties of this object def update!(**args) - @resource_id = args[:resource_id] unless args[:resource_id].nil? + @resource_id = args[:resource_id] if args.key?(:resource_id) end end @@ -302,9 +302,9 @@ module Google # Update properties of this object def update!(**args) - @playlist_id = args[:playlist_id] unless args[:playlist_id].nil? - @playlist_item_id = args[:playlist_item_id] unless args[:playlist_item_id].nil? - @resource_id = args[:resource_id] unless args[:resource_id].nil? + @playlist_id = args[:playlist_id] if args.key?(:playlist_id) + @playlist_item_id = args[:playlist_item_id] if args.key?(:playlist_item_id) + @resource_id = args[:resource_id] if args.key?(:resource_id) end end @@ -376,16 +376,16 @@ module Google # Update properties of this object def update!(**args) - @ad_tag = args[:ad_tag] unless args[:ad_tag].nil? - @click_tracking_url = args[:click_tracking_url] unless args[:click_tracking_url].nil? - @creative_view_url = args[:creative_view_url] unless args[:creative_view_url].nil? - @cta_type = args[:cta_type] unless args[:cta_type].nil? - @custom_cta_button_text = args[:custom_cta_button_text] unless args[:custom_cta_button_text].nil? - @description_text = args[:description_text] unless args[:description_text].nil? - @destination_url = args[:destination_url] unless args[:destination_url].nil? - @forecasting_url = args[:forecasting_url] unless args[:forecasting_url].nil? - @impression_url = args[:impression_url] unless args[:impression_url].nil? - @video_id = args[:video_id] unless args[:video_id].nil? + @ad_tag = args[:ad_tag] if args.key?(:ad_tag) + @click_tracking_url = args[:click_tracking_url] if args.key?(:click_tracking_url) + @creative_view_url = args[:creative_view_url] if args.key?(:creative_view_url) + @cta_type = args[:cta_type] if args.key?(:cta_type) + @custom_cta_button_text = args[:custom_cta_button_text] if args.key?(:custom_cta_button_text) + @description_text = args[:description_text] if args.key?(:description_text) + @destination_url = args[:destination_url] if args.key?(:destination_url) + @forecasting_url = args[:forecasting_url] if args.key?(:forecasting_url) + @impression_url = args[:impression_url] if args.key?(:impression_url) + @video_id = args[:video_id] if args.key?(:video_id) end end @@ -414,9 +414,9 @@ module Google # Update properties of this object def update!(**args) - @reason = args[:reason] unless args[:reason].nil? - @resource_id = args[:resource_id] unless args[:resource_id].nil? - @seed_resource_id = args[:seed_resource_id] unless args[:seed_resource_id].nil? + @reason = args[:reason] if args.key?(:reason) + @resource_id = args[:resource_id] if args.key?(:resource_id) + @seed_resource_id = args[:seed_resource_id] if args.key?(:seed_resource_id) end end @@ -455,11 +455,11 @@ module Google # Update properties of this object def update!(**args) - @author = args[:author] unless args[:author].nil? - @image_url = args[:image_url] unless args[:image_url].nil? - @reference_url = args[:reference_url] unless args[:reference_url].nil? - @resource_id = args[:resource_id] unless args[:resource_id].nil? - @type = args[:type] unless args[:type].nil? + @author = args[:author] if args.key?(:author) + @image_url = args[:image_url] if args.key?(:image_url) + @reference_url = args[:reference_url] if args.key?(:reference_url) + @resource_id = args[:resource_id] if args.key?(:resource_id) + @type = args[:type] if args.key?(:type) end end @@ -478,7 +478,7 @@ module Google # Update properties of this object def update!(**args) - @resource_id = args[:resource_id] unless args[:resource_id].nil? + @resource_id = args[:resource_id] if args.key?(:resource_id) end end @@ -497,7 +497,7 @@ module Google # Update properties of this object def update!(**args) - @video_id = args[:video_id] unless args[:video_id].nil? + @video_id = args[:video_id] if args.key?(:video_id) end end @@ -560,15 +560,15 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_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? - @page_info = args[:page_info] unless args[:page_info].nil? - @prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @page_info = args[:page_info] if args.key?(:page_info) + @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -630,14 +630,14 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @channel_title = args[:channel_title] unless args[:channel_title].nil? - @description = args[:description] unless args[:description].nil? - @group_id = args[:group_id] unless args[:group_id].nil? - @published_at = args[:published_at] unless args[:published_at].nil? - @thumbnails = args[:thumbnails] unless args[:thumbnails].nil? - @title = args[:title] unless args[:title].nil? - @type = args[:type] unless args[:type].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) + @channel_title = args[:channel_title] if args.key?(:channel_title) + @description = args[:description] if args.key?(:description) + @group_id = args[:group_id] if args.key?(:group_id) + @published_at = args[:published_at] if args.key?(:published_at) + @thumbnails = args[:thumbnails] if args.key?(:thumbnails) + @title = args[:title] if args.key?(:title) + @type = args[:type] if args.key?(:type) end end @@ -673,10 +673,10 @@ module Google # 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? - @snippet = args[:snippet] unless args[:snippet].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) end end @@ -716,11 +716,11 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_id].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -818,19 +818,19 @@ module Google # Update properties of this object def update!(**args) - @audio_track_type = args[:audio_track_type] unless args[:audio_track_type].nil? - @failure_reason = args[:failure_reason] unless args[:failure_reason].nil? - @is_auto_synced = args[:is_auto_synced] unless args[:is_auto_synced].nil? - @is_cc = args[:is_cc] unless args[:is_cc].nil? - @is_draft = args[:is_draft] unless args[:is_draft].nil? - @is_easy_reader = args[:is_easy_reader] unless args[:is_easy_reader].nil? - @is_large = args[:is_large] unless args[:is_large].nil? - @language = args[:language] unless args[:language].nil? - @last_updated = args[:last_updated] unless args[:last_updated].nil? - @name = args[:name] unless args[:name].nil? - @status = args[:status] unless args[:status].nil? - @track_kind = args[:track_kind] unless args[:track_kind].nil? - @video_id = args[:video_id] unless args[:video_id].nil? + @audio_track_type = args[:audio_track_type] if args.key?(:audio_track_type) + @failure_reason = args[:failure_reason] if args.key?(:failure_reason) + @is_auto_synced = args[:is_auto_synced] if args.key?(:is_auto_synced) + @is_cc = args[:is_cc] if args.key?(:is_cc) + @is_draft = args[:is_draft] if args.key?(:is_draft) + @is_easy_reader = args[:is_easy_reader] if args.key?(:is_easy_reader) + @is_large = args[:is_large] if args.key?(:is_large) + @language = args[:language] if args.key?(:language) + @last_updated = args[:last_updated] if args.key?(:last_updated) + @name = args[:name] if args.key?(:name) + @status = args[:status] if args.key?(:status) + @track_kind = args[:track_kind] if args.key?(:track_kind) + @video_id = args[:video_id] if args.key?(:video_id) end end @@ -859,9 +859,9 @@ module Google # Update properties of this object def update!(**args) - @format = args[:format] unless args[:format].nil? - @ingestion_info = args[:ingestion_info] unless args[:ingestion_info].nil? - @ingestion_type = args[:ingestion_type] unless args[:ingestion_type].nil? + @format = args[:format] if args.key?(:format) + @ingestion_info = args[:ingestion_info] if args.key?(:ingestion_info) + @ingestion_type = args[:ingestion_type] if args.key?(:ingestion_type) end end @@ -951,20 +951,20 @@ module Google # Update properties of this object def update!(**args) - @audit_details = args[:audit_details] unless args[:audit_details].nil? - @branding_settings = args[:branding_settings] unless args[:branding_settings].nil? - @content_details = args[:content_details] unless args[:content_details].nil? - @content_owner_details = args[:content_owner_details] unless args[:content_owner_details].nil? - @conversion_pings = args[:conversion_pings] unless args[:conversion_pings].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @invideo_promotion = args[:invideo_promotion] unless args[:invideo_promotion].nil? - @kind = args[:kind] unless args[:kind].nil? - @localizations = args[:localizations] unless args[:localizations].nil? - @snippet = args[:snippet] unless args[:snippet].nil? - @statistics = args[:statistics] unless args[:statistics].nil? - @status = args[:status] unless args[:status].nil? - @topic_details = args[:topic_details] unless args[:topic_details].nil? + @audit_details = args[:audit_details] if args.key?(:audit_details) + @branding_settings = args[:branding_settings] if args.key?(:branding_settings) + @content_details = args[:content_details] if args.key?(:content_details) + @content_owner_details = args[:content_owner_details] if args.key?(:content_owner_details) + @conversion_pings = args[:conversion_pings] if args.key?(:conversion_pings) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @invideo_promotion = args[:invideo_promotion] if args.key?(:invideo_promotion) + @kind = args[:kind] if args.key?(:kind) + @localizations = args[:localizations] if args.key?(:localizations) + @snippet = args[:snippet] if args.key?(:snippet) + @statistics = args[:statistics] if args.key?(:statistics) + @status = args[:status] if args.key?(:status) + @topic_details = args[:topic_details] if args.key?(:topic_details) end end @@ -1007,10 +1007,10 @@ module Google # Update properties of this object def update!(**args) - @community_guidelines_good_standing = args[:community_guidelines_good_standing] unless args[:community_guidelines_good_standing].nil? - @content_id_claims_good_standing = args[:content_id_claims_good_standing] unless args[:content_id_claims_good_standing].nil? - @copyright_strikes_good_standing = args[:copyright_strikes_good_standing] unless args[:copyright_strikes_good_standing].nil? - @overall_good_standing = args[:overall_good_standing] unless args[:overall_good_standing].nil? + @community_guidelines_good_standing = args[:community_guidelines_good_standing] if args.key?(:community_guidelines_good_standing) + @content_id_claims_good_standing = args[:content_id_claims_good_standing] if args.key?(:content_id_claims_good_standing) + @copyright_strikes_good_standing = args[:copyright_strikes_good_standing] if args.key?(:copyright_strikes_good_standing) + @overall_good_standing = args[:overall_good_standing] if args.key?(:overall_good_standing) end end @@ -1040,9 +1040,9 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @kind = args[:kind] unless args[:kind].nil? - @url = args[:url] unless args[:url].nil? + @etag = args[:etag] if args.key?(:etag) + @kind = args[:kind] if args.key?(:kind) + @url = args[:url] if args.key?(:url) end end @@ -1076,10 +1076,10 @@ module Google # Update properties of this object def update!(**args) - @channel = args[:channel] unless args[:channel].nil? - @hints = args[:hints] unless args[:hints].nil? - @image = args[:image] unless args[:image].nil? - @watch = args[:watch] unless args[:watch].nil? + @channel = args[:channel] if args.key?(:channel) + @hints = args[:hints] if args.key?(:hints) + @image = args[:image] if args.key?(:image) + @watch = args[:watch] if args.key?(:watch) end end @@ -1104,8 +1104,8 @@ module Google # Update properties of this object def update!(**args) - @google_plus_user_id = args[:google_plus_user_id] unless args[:google_plus_user_id].nil? - @related_playlists = args[:related_playlists] unless args[:related_playlists].nil? + @google_plus_user_id = args[:google_plus_user_id] if args.key?(:google_plus_user_id) + @related_playlists = args[:related_playlists] if args.key?(:related_playlists) end # @@ -1153,11 +1153,11 @@ module Google # Update properties of this object def update!(**args) - @favorites = args[:favorites] unless args[:favorites].nil? - @likes = args[:likes] unless args[:likes].nil? - @uploads = args[:uploads] unless args[:uploads].nil? - @watch_history = args[:watch_history] unless args[:watch_history].nil? - @watch_later = args[:watch_later] unless args[:watch_later].nil? + @favorites = args[:favorites] if args.key?(:favorites) + @likes = args[:likes] if args.key?(:likes) + @uploads = args[:uploads] if args.key?(:uploads) + @watch_history = args[:watch_history] if args.key?(:watch_history) + @watch_later = args[:watch_later] if args.key?(:watch_later) end end end @@ -1184,8 +1184,8 @@ module Google # Update properties of this object def update!(**args) - @content_owner = args[:content_owner] unless args[:content_owner].nil? - @time_linked = args[:time_linked] unless args[:time_linked].nil? + @content_owner = args[:content_owner] if args.key?(:content_owner) + @time_linked = args[:time_linked] if args.key?(:time_linked) end end @@ -1216,8 +1216,8 @@ module Google # Update properties of this object def update!(**args) - @context = args[:context] unless args[:context].nil? - @conversion_url = args[:conversion_url] unless args[:conversion_url].nil? + @context = args[:context] if args.key?(:context) + @conversion_url = args[:conversion_url] if args.key?(:conversion_url) end end @@ -1239,7 +1239,7 @@ module Google # Update properties of this object def update!(**args) - @pings = args[:pings] unless args[:pings].nil? + @pings = args[:pings] if args.key?(:pings) end end @@ -1258,7 +1258,7 @@ module Google # Update properties of this object def update!(**args) - @value = args[:value] unless args[:value].nil? + @value = args[:value] if args.key?(:value) end end @@ -1321,15 +1321,15 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_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? - @page_info = args[:page_info] unless args[:page_info].nil? - @prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @page_info = args[:page_info] if args.key?(:page_info) + @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -1353,8 +1353,8 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @title = args[:title] unless args[:title].nil? + @description = args[:description] if args.key?(:description) + @title = args[:title] if args.key?(:title) end end @@ -1388,10 +1388,10 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @channel_url = args[:channel_url] unless args[:channel_url].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @profile_image_url = args[:profile_image_url] unless args[:profile_image_url].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) + @channel_url = args[:channel_url] if args.key?(:channel_url) + @display_name = args[:display_name] if args.key?(:display_name) + @profile_image_url = args[:profile_image_url] if args.key?(:profile_image_url) end end @@ -1441,13 +1441,13 @@ module Google # Update properties of this object def update!(**args) - @content_details = args[:content_details] unless args[:content_details].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @localizations = args[:localizations] unless args[:localizations].nil? - @snippet = args[:snippet] unless args[:snippet].nil? - @targeting = args[:targeting] unless args[:targeting].nil? + @content_details = args[:content_details] if args.key?(:content_details) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @localizations = args[:localizations] if args.key?(:localizations) + @snippet = args[:snippet] if args.key?(:snippet) + @targeting = args[:targeting] if args.key?(:targeting) end end @@ -1472,8 +1472,8 @@ module Google # Update properties of this object def update!(**args) - @channels = args[:channels] unless args[:channels].nil? - @playlists = args[:playlists] unless args[:playlists].nil? + @channels = args[:channels] if args.key?(:channels) + @playlists = args[:playlists] if args.key?(:playlists) end end @@ -1513,11 +1513,11 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_id].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -1536,7 +1536,7 @@ module Google # Update properties of this object def update!(**args) - @title = args[:title] unless args[:title].nil? + @title = args[:title] if args.key?(:title) end end @@ -1586,13 +1586,13 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @default_language = args[:default_language] unless args[:default_language].nil? - @localized = args[:localized] unless args[:localized].nil? - @position = args[:position] unless args[:position].nil? - @style = args[:style] unless args[:style].nil? - @title = args[:title] unless args[:title].nil? - @type = args[:type] unless args[:type].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) + @default_language = args[:default_language] if args.key?(:default_language) + @localized = args[:localized] if args.key?(:localized) + @position = args[:position] if args.key?(:position) + @style = args[:style] if args.key?(:style) + @title = args[:title] if args.key?(:title) + @type = args[:type] if args.key?(:type) end end @@ -1621,9 +1621,9 @@ module Google # Update properties of this object def update!(**args) - @countries = args[:countries] unless args[:countries].nil? - @languages = args[:languages] unless args[:languages].nil? - @regions = args[:regions] unless args[:regions].nil? + @countries = args[:countries] if args.key?(:countries) + @languages = args[:languages] if args.key?(:languages) + @regions = args[:regions] if args.key?(:regions) end end @@ -1712,20 +1712,20 @@ module Google # Update properties of this object def update!(**args) - @country = args[:country] unless args[:country].nil? - @default_language = args[:default_language] unless args[:default_language].nil? - @default_tab = args[:default_tab] unless args[:default_tab].nil? - @description = args[:description] unless args[:description].nil? - @featured_channels_title = args[:featured_channels_title] unless args[:featured_channels_title].nil? - @featured_channels_urls = args[:featured_channels_urls] unless args[:featured_channels_urls].nil? - @keywords = args[:keywords] unless args[:keywords].nil? - @moderate_comments = args[:moderate_comments] unless args[:moderate_comments].nil? - @profile_color = args[:profile_color] unless args[:profile_color].nil? - @show_browse_view = args[:show_browse_view] unless args[:show_browse_view].nil? - @show_related_channels = args[:show_related_channels] unless args[:show_related_channels].nil? - @title = args[:title] unless args[:title].nil? - @tracking_analytics_account_id = args[:tracking_analytics_account_id] unless args[:tracking_analytics_account_id].nil? - @unsubscribed_trailer = args[:unsubscribed_trailer] unless args[:unsubscribed_trailer].nil? + @country = args[:country] if args.key?(:country) + @default_language = args[:default_language] if args.key?(:default_language) + @default_tab = args[:default_tab] if args.key?(:default_tab) + @description = args[:description] if args.key?(:description) + @featured_channels_title = args[:featured_channels_title] if args.key?(:featured_channels_title) + @featured_channels_urls = args[:featured_channels_urls] if args.key?(:featured_channels_urls) + @keywords = args[:keywords] if args.key?(:keywords) + @moderate_comments = args[:moderate_comments] if args.key?(:moderate_comments) + @profile_color = args[:profile_color] if args.key?(:profile_color) + @show_browse_view = args[:show_browse_view] if args.key?(:show_browse_view) + @show_related_channels = args[:show_related_channels] if args.key?(:show_related_channels) + @title = args[:title] if args.key?(:title) + @tracking_analytics_account_id = args[:tracking_analytics_account_id] if args.key?(:tracking_analytics_account_id) + @unsubscribed_trailer = args[:unsubscribed_trailer] if args.key?(:unsubscribed_trailer) end end @@ -1775,13 +1775,13 @@ module Google # Update properties of this object def update!(**args) - @country = args[:country] unless args[:country].nil? - @default_language = args[:default_language] unless args[:default_language].nil? - @description = args[:description] unless args[:description].nil? - @localized = args[:localized] unless args[:localized].nil? - @published_at = args[:published_at] unless args[:published_at].nil? - @thumbnails = args[:thumbnails] unless args[:thumbnails].nil? - @title = args[:title] unless args[:title].nil? + @country = args[:country] if args.key?(:country) + @default_language = args[:default_language] if args.key?(:default_language) + @description = args[:description] if args.key?(:description) + @localized = args[:localized] if args.key?(:localized) + @published_at = args[:published_at] if args.key?(:published_at) + @thumbnails = args[:thumbnails] if args.key?(:thumbnails) + @title = args[:title] if args.key?(:title) end end @@ -1822,11 +1822,11 @@ module Google # Update properties of this object def update!(**args) - @comment_count = args[:comment_count] unless args[:comment_count].nil? - @hidden_subscriber_count = args[:hidden_subscriber_count] unless args[:hidden_subscriber_count].nil? - @subscriber_count = args[:subscriber_count] unless args[:subscriber_count].nil? - @video_count = args[:video_count] unless args[:video_count].nil? - @view_count = args[:view_count] unless args[:view_count].nil? + @comment_count = args[:comment_count] if args.key?(:comment_count) + @hidden_subscriber_count = args[:hidden_subscriber_count] if args.key?(:hidden_subscriber_count) + @subscriber_count = args[:subscriber_count] if args.key?(:subscriber_count) + @video_count = args[:video_count] if args.key?(:video_count) + @view_count = args[:view_count] if args.key?(:view_count) end end @@ -1857,9 +1857,9 @@ module Google # Update properties of this object def update!(**args) - @is_linked = args[:is_linked] unless args[:is_linked].nil? - @long_uploads_status = args[:long_uploads_status] unless args[:long_uploads_status].nil? - @privacy_status = args[:privacy_status] unless args[:privacy_status].nil? + @is_linked = args[:is_linked] if args.key?(:is_linked) + @long_uploads_status = args[:long_uploads_status] if args.key?(:long_uploads_status) + @privacy_status = args[:privacy_status] if args.key?(:privacy_status) end end @@ -1879,7 +1879,7 @@ module Google # Update properties of this object def update!(**args) - @topic_ids = args[:topic_ids] unless args[:topic_ids].nil? + @topic_ids = args[:topic_ids] if args.key?(:topic_ids) end end @@ -1914,10 +1914,10 @@ module Google # 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? - @snippet = args[:snippet] unless args[:snippet].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) end end @@ -1974,14 +1974,14 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_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? - @page_info = args[:page_info] unless args[:page_info].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @page_info = args[:page_info] if args.key?(:page_info) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -2088,22 +2088,22 @@ module Google # Update properties of this object def update!(**args) - @author_channel_id = args[:author_channel_id] unless args[:author_channel_id].nil? - @author_channel_url = args[:author_channel_url] unless args[:author_channel_url].nil? - @author_display_name = args[:author_display_name] unless args[:author_display_name].nil? - @author_googleplus_profile_url = args[:author_googleplus_profile_url] unless args[:author_googleplus_profile_url].nil? - @author_profile_image_url = args[:author_profile_image_url] unless args[:author_profile_image_url].nil? - @can_rate = args[:can_rate] unless args[:can_rate].nil? - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @like_count = args[:like_count] unless args[:like_count].nil? - @moderation_status = args[:moderation_status] unless args[:moderation_status].nil? - @parent_id = args[:parent_id] unless args[:parent_id].nil? - @published_at = args[:published_at] unless args[:published_at].nil? - @text_display = args[:text_display] unless args[:text_display].nil? - @text_original = args[:text_original] unless args[:text_original].nil? - @updated_at = args[:updated_at] unless args[:updated_at].nil? - @video_id = args[:video_id] unless args[:video_id].nil? - @viewer_rating = args[:viewer_rating] unless args[:viewer_rating].nil? + @author_channel_id = args[:author_channel_id] if args.key?(:author_channel_id) + @author_channel_url = args[:author_channel_url] if args.key?(:author_channel_url) + @author_display_name = args[:author_display_name] if args.key?(:author_display_name) + @author_googleplus_profile_url = args[:author_googleplus_profile_url] if args.key?(:author_googleplus_profile_url) + @author_profile_image_url = args[:author_profile_image_url] if args.key?(:author_profile_image_url) + @can_rate = args[:can_rate] if args.key?(:can_rate) + @channel_id = args[:channel_id] if args.key?(:channel_id) + @like_count = args[:like_count] if args.key?(:like_count) + @moderation_status = args[:moderation_status] if args.key?(:moderation_status) + @parent_id = args[:parent_id] if args.key?(:parent_id) + @published_at = args[:published_at] if args.key?(:published_at) + @text_display = args[:text_display] if args.key?(:text_display) + @text_original = args[:text_original] if args.key?(:text_original) + @updated_at = args[:updated_at] if args.key?(:updated_at) + @video_id = args[:video_id] if args.key?(:video_id) + @viewer_rating = args[:viewer_rating] if args.key?(:viewer_rating) end end @@ -2145,11 +2145,11 @@ module Google # 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? - @replies = args[:replies] unless args[:replies].nil? - @snippet = args[:snippet] unless args[:snippet].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @replies = args[:replies] if args.key?(:replies) + @snippet = args[:snippet] if args.key?(:snippet) end end @@ -2206,14 +2206,14 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_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? - @page_info = args[:page_info] unless args[:page_info].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @page_info = args[:page_info] if args.key?(:page_info) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -2234,7 +2234,7 @@ module Google # Update properties of this object def update!(**args) - @comments = args[:comments] unless args[:comments].nil? + @comments = args[:comments] if args.key?(:comments) end end @@ -2285,12 +2285,12 @@ module Google # Update properties of this object def update!(**args) - @can_reply = args[:can_reply] unless args[:can_reply].nil? - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @is_public = args[:is_public] unless args[:is_public].nil? - @top_level_comment = args[:top_level_comment] unless args[:top_level_comment].nil? - @total_reply_count = args[:total_reply_count] unless args[:total_reply_count].nil? - @video_id = args[:video_id] unless args[:video_id].nil? + @can_reply = args[:can_reply] if args.key?(:can_reply) + @channel_id = args[:channel_id] if args.key?(:channel_id) + @is_public = args[:is_public] if args.key?(:is_public) + @top_level_comment = args[:top_level_comment] if args.key?(:top_level_comment) + @total_reply_count = args[:total_reply_count] if args.key?(:total_reply_count) + @video_id = args[:video_id] if args.key?(:video_id) end end @@ -2666,72 +2666,72 @@ module Google # Update properties of this object def update!(**args) - @acb_rating = args[:acb_rating] unless args[:acb_rating].nil? - @agcom_rating = args[:agcom_rating] unless args[:agcom_rating].nil? - @anatel_rating = args[:anatel_rating] unless args[:anatel_rating].nil? - @bbfc_rating = args[:bbfc_rating] unless args[:bbfc_rating].nil? - @bfvc_rating = args[:bfvc_rating] unless args[:bfvc_rating].nil? - @bmukk_rating = args[:bmukk_rating] unless args[:bmukk_rating].nil? - @catv_rating = args[:catv_rating] unless args[:catv_rating].nil? - @catvfr_rating = args[:catvfr_rating] unless args[:catvfr_rating].nil? - @cbfc_rating = args[:cbfc_rating] unless args[:cbfc_rating].nil? - @ccc_rating = args[:ccc_rating] unless args[:ccc_rating].nil? - @cce_rating = args[:cce_rating] unless args[:cce_rating].nil? - @chfilm_rating = args[:chfilm_rating] unless args[:chfilm_rating].nil? - @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? - @djctq_rating = args[:djctq_rating] unless args[:djctq_rating].nil? - @djctq_rating_reasons = args[:djctq_rating_reasons] unless args[:djctq_rating_reasons].nil? - @ecbmct_rating = args[:ecbmct_rating] unless args[:ecbmct_rating].nil? - @eefilm_rating = args[:eefilm_rating] unless args[:eefilm_rating].nil? - @egfilm_rating = args[:egfilm_rating] unless args[:egfilm_rating].nil? - @eirin_rating = args[:eirin_rating] unless args[:eirin_rating].nil? - @fcbm_rating = args[:fcbm_rating] unless args[:fcbm_rating].nil? - @fco_rating = args[:fco_rating] unless args[:fco_rating].nil? - @fmoc_rating = args[:fmoc_rating] unless args[:fmoc_rating].nil? - @fpb_rating = args[:fpb_rating] unless args[:fpb_rating].nil? - @fsk_rating = args[:fsk_rating] unless args[:fsk_rating].nil? - @grfilm_rating = args[:grfilm_rating] unless args[:grfilm_rating].nil? - @icaa_rating = args[:icaa_rating] unless args[:icaa_rating].nil? - @ifco_rating = args[:ifco_rating] unless args[:ifco_rating].nil? - @ilfilm_rating = args[:ilfilm_rating] unless args[:ilfilm_rating].nil? - @incaa_rating = args[:incaa_rating] unless args[:incaa_rating].nil? - @kfcb_rating = args[:kfcb_rating] unless args[:kfcb_rating].nil? - @kijkwijzer_rating = args[:kijkwijzer_rating] unless args[:kijkwijzer_rating].nil? - @kmrb_rating = args[:kmrb_rating] unless args[:kmrb_rating].nil? - @lsf_rating = args[:lsf_rating] unless args[:lsf_rating].nil? - @mccaa_rating = args[:mccaa_rating] unless args[:mccaa_rating].nil? - @mccyp_rating = args[:mccyp_rating] unless args[:mccyp_rating].nil? - @mda_rating = args[:mda_rating] unless args[:mda_rating].nil? - @medietilsynet_rating = args[:medietilsynet_rating] unless args[:medietilsynet_rating].nil? - @meku_rating = args[:meku_rating] unless args[:meku_rating].nil? - @mibac_rating = args[:mibac_rating] unless args[:mibac_rating].nil? - @moc_rating = args[:moc_rating] unless args[:moc_rating].nil? - @moctw_rating = args[:moctw_rating] unless args[:moctw_rating].nil? - @mpaa_rating = args[:mpaa_rating] unless args[:mpaa_rating].nil? - @mtrcb_rating = args[:mtrcb_rating] unless args[:mtrcb_rating].nil? - @nbc_rating = args[:nbc_rating] unless args[:nbc_rating].nil? - @nbcpl_rating = args[:nbcpl_rating] unless args[:nbcpl_rating].nil? - @nfrc_rating = args[:nfrc_rating] unless args[:nfrc_rating].nil? - @nfvcb_rating = args[:nfvcb_rating] unless args[:nfvcb_rating].nil? - @nkclv_rating = args[:nkclv_rating] unless args[:nkclv_rating].nil? - @oflc_rating = args[:oflc_rating] unless args[:oflc_rating].nil? - @pefilm_rating = args[:pefilm_rating] unless args[:pefilm_rating].nil? - @rcnof_rating = args[:rcnof_rating] unless args[:rcnof_rating].nil? - @resorteviolencia_rating = args[:resorteviolencia_rating] unless args[:resorteviolencia_rating].nil? - @rtc_rating = args[:rtc_rating] unless args[:rtc_rating].nil? - @rte_rating = args[:rte_rating] unless args[:rte_rating].nil? - @russia_rating = args[:russia_rating] unless args[:russia_rating].nil? - @skfilm_rating = args[:skfilm_rating] unless args[:skfilm_rating].nil? - @smais_rating = args[:smais_rating] unless args[:smais_rating].nil? - @smsa_rating = args[:smsa_rating] unless args[:smsa_rating].nil? - @tvpg_rating = args[:tvpg_rating] unless args[:tvpg_rating].nil? - @yt_rating = args[:yt_rating] unless args[:yt_rating].nil? + @acb_rating = args[:acb_rating] if args.key?(:acb_rating) + @agcom_rating = args[:agcom_rating] if args.key?(:agcom_rating) + @anatel_rating = args[:anatel_rating] if args.key?(:anatel_rating) + @bbfc_rating = args[:bbfc_rating] if args.key?(:bbfc_rating) + @bfvc_rating = args[:bfvc_rating] if args.key?(:bfvc_rating) + @bmukk_rating = args[:bmukk_rating] if args.key?(:bmukk_rating) + @catv_rating = args[:catv_rating] if args.key?(:catv_rating) + @catvfr_rating = args[:catvfr_rating] if args.key?(:catvfr_rating) + @cbfc_rating = args[:cbfc_rating] if args.key?(:cbfc_rating) + @ccc_rating = args[:ccc_rating] if args.key?(:ccc_rating) + @cce_rating = args[:cce_rating] if args.key?(:cce_rating) + @chfilm_rating = args[:chfilm_rating] if args.key?(:chfilm_rating) + @chvrs_rating = args[:chvrs_rating] if args.key?(:chvrs_rating) + @cicf_rating = args[:cicf_rating] if args.key?(:cicf_rating) + @cna_rating = args[:cna_rating] if args.key?(:cna_rating) + @cnc_rating = args[:cnc_rating] if args.key?(:cnc_rating) + @csa_rating = args[:csa_rating] if args.key?(:csa_rating) + @cscf_rating = args[:cscf_rating] if args.key?(:cscf_rating) + @czfilm_rating = args[:czfilm_rating] if args.key?(:czfilm_rating) + @djctq_rating = args[:djctq_rating] if args.key?(:djctq_rating) + @djctq_rating_reasons = args[:djctq_rating_reasons] if args.key?(:djctq_rating_reasons) + @ecbmct_rating = args[:ecbmct_rating] if args.key?(:ecbmct_rating) + @eefilm_rating = args[:eefilm_rating] if args.key?(:eefilm_rating) + @egfilm_rating = args[:egfilm_rating] if args.key?(:egfilm_rating) + @eirin_rating = args[:eirin_rating] if args.key?(:eirin_rating) + @fcbm_rating = args[:fcbm_rating] if args.key?(:fcbm_rating) + @fco_rating = args[:fco_rating] if args.key?(:fco_rating) + @fmoc_rating = args[:fmoc_rating] if args.key?(:fmoc_rating) + @fpb_rating = args[:fpb_rating] if args.key?(:fpb_rating) + @fsk_rating = args[:fsk_rating] if args.key?(:fsk_rating) + @grfilm_rating = args[:grfilm_rating] if args.key?(:grfilm_rating) + @icaa_rating = args[:icaa_rating] if args.key?(:icaa_rating) + @ifco_rating = args[:ifco_rating] if args.key?(:ifco_rating) + @ilfilm_rating = args[:ilfilm_rating] if args.key?(:ilfilm_rating) + @incaa_rating = args[:incaa_rating] if args.key?(:incaa_rating) + @kfcb_rating = args[:kfcb_rating] if args.key?(:kfcb_rating) + @kijkwijzer_rating = args[:kijkwijzer_rating] if args.key?(:kijkwijzer_rating) + @kmrb_rating = args[:kmrb_rating] if args.key?(:kmrb_rating) + @lsf_rating = args[:lsf_rating] if args.key?(:lsf_rating) + @mccaa_rating = args[:mccaa_rating] if args.key?(:mccaa_rating) + @mccyp_rating = args[:mccyp_rating] if args.key?(:mccyp_rating) + @mda_rating = args[:mda_rating] if args.key?(:mda_rating) + @medietilsynet_rating = args[:medietilsynet_rating] if args.key?(:medietilsynet_rating) + @meku_rating = args[:meku_rating] if args.key?(:meku_rating) + @mibac_rating = args[:mibac_rating] if args.key?(:mibac_rating) + @moc_rating = args[:moc_rating] if args.key?(:moc_rating) + @moctw_rating = args[:moctw_rating] if args.key?(:moctw_rating) + @mpaa_rating = args[:mpaa_rating] if args.key?(:mpaa_rating) + @mtrcb_rating = args[:mtrcb_rating] if args.key?(:mtrcb_rating) + @nbc_rating = args[:nbc_rating] if args.key?(:nbc_rating) + @nbcpl_rating = args[:nbcpl_rating] if args.key?(:nbcpl_rating) + @nfrc_rating = args[:nfrc_rating] if args.key?(:nfrc_rating) + @nfvcb_rating = args[:nfvcb_rating] if args.key?(:nfvcb_rating) + @nkclv_rating = args[:nkclv_rating] if args.key?(:nkclv_rating) + @oflc_rating = args[:oflc_rating] if args.key?(:oflc_rating) + @pefilm_rating = args[:pefilm_rating] if args.key?(:pefilm_rating) + @rcnof_rating = args[:rcnof_rating] if args.key?(:rcnof_rating) + @resorteviolencia_rating = args[:resorteviolencia_rating] if args.key?(:resorteviolencia_rating) + @rtc_rating = args[:rtc_rating] if args.key?(:rtc_rating) + @rte_rating = args[:rte_rating] if args.key?(:rte_rating) + @russia_rating = args[:russia_rating] if args.key?(:russia_rating) + @skfilm_rating = args[:skfilm_rating] if args.key?(:skfilm_rating) + @smais_rating = args[:smais_rating] if args.key?(:smais_rating) + @smsa_rating = args[:smsa_rating] if args.key?(:smsa_rating) + @tvpg_rating = args[:tvpg_rating] if args.key?(:tvpg_rating) + @yt_rating = args[:yt_rating] if args.key?(:yt_rating) end end @@ -2768,10 +2768,10 @@ module Google # 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? - @snippet = args[:snippet] unless args[:snippet].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) end end @@ -2828,14 +2828,14 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_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? - @page_info = args[:page_info] unless args[:page_info].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @page_info = args[:page_info] if args.key?(:page_info) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -2887,13 +2887,13 @@ module Google # Update properties of this object def update!(**args) - @amount_micros = args[:amount_micros] unless args[:amount_micros].nil? - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @comment_text = args[:comment_text] unless args[:comment_text].nil? - @created_at = args[:created_at] unless args[:created_at].nil? - @currency = args[:currency] unless args[:currency].nil? - @display_string = args[:display_string] unless args[:display_string].nil? - @supporter_details = args[:supporter_details] unless args[:supporter_details].nil? + @amount_micros = args[:amount_micros] if args.key?(:amount_micros) + @channel_id = args[:channel_id] if args.key?(:channel_id) + @comment_text = args[:comment_text] if args.key?(:comment_text) + @created_at = args[:created_at] if args.key?(:created_at) + @currency = args[:currency] if args.key?(:currency) + @display_string = args[:display_string] if args.key?(:display_string) + @supporter_details = args[:supporter_details] if args.key?(:supporter_details) end end @@ -2922,9 +2922,9 @@ module Google # Update properties of this object def update!(**args) - @altitude = args[:altitude] unless args[:altitude].nil? - @latitude = args[:latitude] unless args[:latitude].nil? - @longitude = args[:longitude] unless args[:longitude].nil? + @altitude = args[:altitude] if args.key?(:altitude) + @latitude = args[:latitude] if args.key?(:latitude) + @longitude = args[:longitude] if args.key?(:longitude) end end @@ -2963,10 +2963,10 @@ module Google # 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? - @snippet = args[:snippet] unless args[:snippet].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) end end @@ -3031,15 +3031,15 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_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? - @page_info = args[:page_info] unless args[:page_info].nil? - @prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @page_info = args[:page_info] if args.key?(:page_info) + @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -3063,8 +3063,8 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @title = args[:title] unless args[:title].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) + @title = args[:title] if args.key?(:title) end end @@ -3101,10 +3101,10 @@ module Google # 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? - @snippet = args[:snippet] unless args[:snippet].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) end end @@ -3145,11 +3145,11 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_id].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -3174,8 +3174,8 @@ module Google # Update properties of this object def update!(**args) - @hl = args[:hl] unless args[:hl].nil? - @name = args[:name] unless args[:name].nil? + @hl = args[:hl] if args.key?(:hl) + @name = args[:name] if args.key?(:name) end end @@ -3211,10 +3211,10 @@ module Google # 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? - @snippet = args[:snippet] unless args[:snippet].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) end end @@ -3255,11 +3255,11 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_id].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -3284,8 +3284,8 @@ module Google # Update properties of this object def update!(**args) - @gl = args[:gl] unless args[:gl].nil? - @name = args[:name] unless args[:name].nil? + @gl = args[:gl] if args.key?(:gl) + @name = args[:name] if args.key?(:name) end end @@ -3416,28 +3416,28 @@ module Google # Update properties of this object def update!(**args) - @background_image_url = args[:background_image_url] unless args[:background_image_url].nil? - @banner_external_url = args[:banner_external_url] unless args[:banner_external_url].nil? - @banner_image_url = args[:banner_image_url] unless args[:banner_image_url].nil? - @banner_mobile_extra_hd_image_url = args[:banner_mobile_extra_hd_image_url] unless args[:banner_mobile_extra_hd_image_url].nil? - @banner_mobile_hd_image_url = args[:banner_mobile_hd_image_url] unless args[:banner_mobile_hd_image_url].nil? - @banner_mobile_image_url = args[:banner_mobile_image_url] unless args[:banner_mobile_image_url].nil? - @banner_mobile_low_image_url = args[:banner_mobile_low_image_url] unless args[:banner_mobile_low_image_url].nil? - @banner_mobile_medium_hd_image_url = args[:banner_mobile_medium_hd_image_url] unless args[:banner_mobile_medium_hd_image_url].nil? - @banner_tablet_extra_hd_image_url = args[:banner_tablet_extra_hd_image_url] unless args[:banner_tablet_extra_hd_image_url].nil? - @banner_tablet_hd_image_url = args[:banner_tablet_hd_image_url] unless args[:banner_tablet_hd_image_url].nil? - @banner_tablet_image_url = args[:banner_tablet_image_url] unless args[:banner_tablet_image_url].nil? - @banner_tablet_low_image_url = args[:banner_tablet_low_image_url] unless args[:banner_tablet_low_image_url].nil? - @banner_tv_high_image_url = args[:banner_tv_high_image_url] unless args[:banner_tv_high_image_url].nil? - @banner_tv_image_url = args[:banner_tv_image_url] unless args[:banner_tv_image_url].nil? - @banner_tv_low_image_url = args[:banner_tv_low_image_url] unless args[:banner_tv_low_image_url].nil? - @banner_tv_medium_image_url = args[:banner_tv_medium_image_url] unless args[:banner_tv_medium_image_url].nil? - @large_branded_banner_image_imap_script = args[:large_branded_banner_image_imap_script] unless args[:large_branded_banner_image_imap_script].nil? - @large_branded_banner_image_url = args[:large_branded_banner_image_url] unless args[:large_branded_banner_image_url].nil? - @small_branded_banner_image_imap_script = args[:small_branded_banner_image_imap_script] unless args[:small_branded_banner_image_imap_script].nil? - @small_branded_banner_image_url = args[:small_branded_banner_image_url] unless args[:small_branded_banner_image_url].nil? - @tracking_image_url = args[:tracking_image_url] unless args[:tracking_image_url].nil? - @watch_icon_image_url = args[:watch_icon_image_url] unless args[:watch_icon_image_url].nil? + @background_image_url = args[:background_image_url] if args.key?(:background_image_url) + @banner_external_url = args[:banner_external_url] if args.key?(:banner_external_url) + @banner_image_url = args[:banner_image_url] if args.key?(:banner_image_url) + @banner_mobile_extra_hd_image_url = args[:banner_mobile_extra_hd_image_url] if args.key?(:banner_mobile_extra_hd_image_url) + @banner_mobile_hd_image_url = args[:banner_mobile_hd_image_url] if args.key?(:banner_mobile_hd_image_url) + @banner_mobile_image_url = args[:banner_mobile_image_url] if args.key?(:banner_mobile_image_url) + @banner_mobile_low_image_url = args[:banner_mobile_low_image_url] if args.key?(:banner_mobile_low_image_url) + @banner_mobile_medium_hd_image_url = args[:banner_mobile_medium_hd_image_url] if args.key?(:banner_mobile_medium_hd_image_url) + @banner_tablet_extra_hd_image_url = args[:banner_tablet_extra_hd_image_url] if args.key?(:banner_tablet_extra_hd_image_url) + @banner_tablet_hd_image_url = args[:banner_tablet_hd_image_url] if args.key?(:banner_tablet_hd_image_url) + @banner_tablet_image_url = args[:banner_tablet_image_url] if args.key?(:banner_tablet_image_url) + @banner_tablet_low_image_url = args[:banner_tablet_low_image_url] if args.key?(:banner_tablet_low_image_url) + @banner_tv_high_image_url = args[:banner_tv_high_image_url] if args.key?(:banner_tv_high_image_url) + @banner_tv_image_url = args[:banner_tv_image_url] if args.key?(:banner_tv_image_url) + @banner_tv_low_image_url = args[:banner_tv_low_image_url] if args.key?(:banner_tv_low_image_url) + @banner_tv_medium_image_url = args[:banner_tv_medium_image_url] if args.key?(:banner_tv_medium_image_url) + @large_branded_banner_image_imap_script = args[:large_branded_banner_image_imap_script] if args.key?(:large_branded_banner_image_imap_script) + @large_branded_banner_image_url = args[:large_branded_banner_image_url] if args.key?(:large_branded_banner_image_url) + @small_branded_banner_image_imap_script = args[:small_branded_banner_image_imap_script] if args.key?(:small_branded_banner_image_imap_script) + @small_branded_banner_image_url = args[:small_branded_banner_image_url] if args.key?(:small_branded_banner_image_url) + @tracking_image_url = args[:tracking_image_url] if args.key?(:tracking_image_url) + @watch_icon_image_url = args[:watch_icon_image_url] if args.key?(:watch_icon_image_url) end end @@ -3473,9 +3473,9 @@ module Google # Update properties of this object def update!(**args) - @backup_ingestion_address = args[:backup_ingestion_address] unless args[:backup_ingestion_address].nil? - @ingestion_address = args[:ingestion_address] unless args[:ingestion_address].nil? - @stream_name = args[:stream_name] unless args[:stream_name].nil? + @backup_ingestion_address = args[:backup_ingestion_address] if args.key?(:backup_ingestion_address) + @ingestion_address = args[:ingestion_address] if args.key?(:ingestion_address) + @stream_name = args[:stream_name] if args.key?(:stream_name) end end @@ -3515,11 +3515,11 @@ module Google # Update properties of this object def update!(**args) - @image_bytes = args[:image_bytes] unless args[:image_bytes].nil? - @image_url = args[:image_url] unless args[:image_url].nil? - @position = args[:position] unless args[:position].nil? - @target_channel_id = args[:target_channel_id] unless args[:target_channel_id].nil? - @timing = args[:timing] unless args[:timing].nil? + @image_bytes = args[:image_bytes] if args.key?(:image_bytes) + @image_url = args[:image_url] if args.key?(:image_url) + @position = args[:position] if args.key?(:position) + @target_channel_id = args[:target_channel_id] if args.key?(:target_channel_id) + @timing = args[:timing] if args.key?(:timing) end end @@ -3544,8 +3544,8 @@ module Google # Update properties of this object def update!(**args) - @corner_position = args[:corner_position] unless args[:corner_position].nil? - @type = args[:type] unless args[:type].nil? + @corner_position = args[:corner_position] if args.key?(:corner_position) + @type = args[:type] if args.key?(:type) end end @@ -3585,10 +3585,10 @@ module Google # Update properties of this object def update!(**args) - @default_timing = args[:default_timing] unless args[:default_timing].nil? - @items = args[:items] unless args[:items].nil? - @position = args[:position] unless args[:position].nil? - @use_smart_timing = args[:use_smart_timing] unless args[:use_smart_timing].nil? + @default_timing = args[:default_timing] if args.key?(:default_timing) + @items = args[:items] if args.key?(:items) + @position = args[:position] if args.key?(:position) + @use_smart_timing = args[:use_smart_timing] if args.key?(:use_smart_timing) end end @@ -3623,9 +3623,9 @@ module Google # Update properties of this object def update!(**args) - @duration_ms = args[:duration_ms] unless args[:duration_ms].nil? - @offset_ms = args[:offset_ms] unless args[:offset_ms].nil? - @type = args[:type] unless args[:type].nil? + @duration_ms = args[:duration_ms] if args.key?(:duration_ms) + @offset_ms = args[:offset_ms] if args.key?(:offset_ms) + @type = args[:type] if args.key?(:type) end end @@ -3644,7 +3644,7 @@ module Google # Update properties of this object def update!(**args) - @value = args[:value] unless args[:value].nil? + @value = args[:value] if args.key?(:value) end end @@ -3702,14 +3702,14 @@ module Google # Update properties of this object def update!(**args) - @content_details = args[:content_details] unless args[:content_details].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @snippet = args[:snippet] unless args[:snippet].nil? - @statistics = args[:statistics] unless args[:statistics].nil? - @status = args[:status] unless args[:status].nil? - @topic_details = args[:topic_details] unless args[:topic_details].nil? + @content_details = args[:content_details] if args.key?(:content_details) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) + @statistics = args[:statistics] if args.key?(:statistics) + @status = args[:status] if args.key?(:status) + @topic_details = args[:topic_details] if args.key?(:topic_details) end end @@ -3803,16 +3803,16 @@ module Google # Update properties of this object def update!(**args) - @bound_stream_id = args[:bound_stream_id] unless args[:bound_stream_id].nil? - @closed_captions_type = args[:closed_captions_type] unless args[:closed_captions_type].nil? - @enable_closed_captions = args[:enable_closed_captions] unless args[:enable_closed_captions].nil? - @enable_content_encryption = args[:enable_content_encryption] unless args[:enable_content_encryption].nil? - @enable_dvr = args[:enable_dvr] unless args[:enable_dvr].nil? - @enable_embed = args[:enable_embed] unless args[:enable_embed].nil? - @enable_low_latency = args[:enable_low_latency] unless args[:enable_low_latency].nil? - @monitor_stream = args[:monitor_stream] unless args[:monitor_stream].nil? - @record_from_start = args[:record_from_start] unless args[:record_from_start].nil? - @start_with_slate = args[:start_with_slate] unless args[:start_with_slate].nil? + @bound_stream_id = args[:bound_stream_id] if args.key?(:bound_stream_id) + @closed_captions_type = args[:closed_captions_type] if args.key?(:closed_captions_type) + @enable_closed_captions = args[:enable_closed_captions] if args.key?(:enable_closed_captions) + @enable_content_encryption = args[:enable_content_encryption] if args.key?(:enable_content_encryption) + @enable_dvr = args[:enable_dvr] if args.key?(:enable_dvr) + @enable_embed = args[:enable_embed] if args.key?(:enable_embed) + @enable_low_latency = args[:enable_low_latency] if args.key?(:enable_low_latency) + @monitor_stream = args[:monitor_stream] if args.key?(:monitor_stream) + @record_from_start = args[:record_from_start] if args.key?(:record_from_start) + @start_with_slate = args[:start_with_slate] if args.key?(:start_with_slate) end end @@ -3875,15 +3875,15 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_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? - @page_info = args[:page_info] unless args[:page_info].nil? - @prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @page_info = args[:page_info] if args.key?(:page_info) + @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -3965,17 +3965,17 @@ module Google # Update properties of this object def update!(**args) - @actual_end_time = args[:actual_end_time] unless args[:actual_end_time].nil? - @actual_start_time = args[:actual_start_time] unless args[:actual_start_time].nil? - @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? - @thumbnails = args[:thumbnails] unless args[:thumbnails].nil? - @title = args[:title] unless args[:title].nil? + @actual_end_time = args[:actual_end_time] if args.key?(:actual_end_time) + @actual_start_time = args[:actual_start_time] if args.key?(:actual_start_time) + @channel_id = args[:channel_id] if args.key?(:channel_id) + @description = args[:description] if args.key?(:description) + @is_default_broadcast = args[:is_default_broadcast] if args.key?(:is_default_broadcast) + @live_chat_id = args[:live_chat_id] if args.key?(:live_chat_id) + @published_at = args[:published_at] if args.key?(:published_at) + @scheduled_end_time = args[:scheduled_end_time] if args.key?(:scheduled_end_time) + @scheduled_start_time = args[:scheduled_start_time] if args.key?(:scheduled_start_time) + @thumbnails = args[:thumbnails] if args.key?(:thumbnails) + @title = args[:title] if args.key?(:title) end end @@ -4010,8 +4010,8 @@ module Google # Update properties of this object def update!(**args) - @concurrent_viewers = args[:concurrent_viewers] unless args[:concurrent_viewers].nil? - @total_chat_count = args[:total_chat_count] unless args[:total_chat_count].nil? + @concurrent_viewers = args[:concurrent_viewers] if args.key?(:concurrent_viewers) + @total_chat_count = args[:total_chat_count] if args.key?(:total_chat_count) end end @@ -4050,10 +4050,10 @@ module Google # Update properties of this object def update!(**args) - @life_cycle_status = args[:life_cycle_status] unless args[:life_cycle_status].nil? - @live_broadcast_priority = args[:live_broadcast_priority] unless args[:live_broadcast_priority].nil? - @privacy_status = args[:privacy_status] unless args[:privacy_status].nil? - @recording_status = args[:recording_status] unless args[:recording_status].nil? + @life_cycle_status = args[:life_cycle_status] if args.key?(:life_cycle_status) + @live_broadcast_priority = args[:live_broadcast_priority] if args.key?(:live_broadcast_priority) + @privacy_status = args[:privacy_status] if args.key?(:privacy_status) + @recording_status = args[:recording_status] if args.key?(:recording_status) end end @@ -4084,9 +4084,9 @@ module Google # Update properties of this object def update!(**args) - @snippet = args[:snippet] unless args[:snippet].nil? - @type = args[:type] unless args[:type].nil? - @unmatched = args[:unmatched] unless args[:unmatched].nil? + @snippet = args[:snippet] if args.key?(:snippet) + @type = args[:type] if args.key?(:type) + @unmatched = args[:unmatched] if args.key?(:unmatched) end end @@ -4105,7 +4105,7 @@ module Google # Update properties of this object def update!(**args) - @topics = args[:topics] unless args[:topics].nil? + @topics = args[:topics] if args.key?(:topics) end end @@ -4129,8 +4129,8 @@ module Google # Update properties of this object def update!(**args) - @name = args[:name] unless args[:name].nil? - @release_date = args[:release_date] unless args[:release_date].nil? + @name = args[:name] if args.key?(:name) + @release_date = args[:release_date] if args.key?(:release_date) end end @@ -4165,10 +4165,10 @@ module Google # 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? - @snippet = args[:snippet] unless args[:snippet].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) end end @@ -4202,10 +4202,10 @@ module Google # Update properties of this object def update!(**args) - @ban_duration_seconds = args[:ban_duration_seconds] unless args[:ban_duration_seconds].nil? - @banned_user_details = args[:banned_user_details] unless args[:banned_user_details].nil? - @live_chat_id = args[:live_chat_id] unless args[:live_chat_id].nil? - @type = args[:type] unless args[:type].nil? + @ban_duration_seconds = args[:ban_duration_seconds] if args.key?(:ban_duration_seconds) + @banned_user_details = args[:banned_user_details] if args.key?(:banned_user_details) + @live_chat_id = args[:live_chat_id] if args.key?(:live_chat_id) + @type = args[:type] if args.key?(:type) end end @@ -4239,10 +4239,10 @@ module Google # Update properties of this object def update!(**args) - @amount_display_string = args[:amount_display_string] unless args[:amount_display_string].nil? - @amount_micros = args[:amount_micros] unless args[:amount_micros].nil? - @currency = args[:currency] unless args[:currency].nil? - @user_comment = args[:user_comment] unless args[:user_comment].nil? + @amount_display_string = args[:amount_display_string] if args.key?(:amount_display_string) + @amount_micros = args[:amount_micros] if args.key?(:amount_micros) + @currency = args[:currency] if args.key?(:currency) + @user_comment = args[:user_comment] if args.key?(:user_comment) end end @@ -4283,11 +4283,11 @@ module Google # Update properties of this object def update!(**args) - @author_details = args[:author_details] unless args[:author_details].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @snippet = args[:snippet] unless args[:snippet].nil? + @author_details = args[:author_details] if args.key?(:author_details) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) end end @@ -4345,14 +4345,14 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @channel_url = args[:channel_url] unless args[:channel_url].nil? - @display_name = args[:display_name] unless args[:display_name].nil? - @is_chat_moderator = args[:is_chat_moderator] unless args[:is_chat_moderator].nil? - @is_chat_owner = args[:is_chat_owner] unless args[:is_chat_owner].nil? - @is_chat_sponsor = args[:is_chat_sponsor] unless args[:is_chat_sponsor].nil? - @is_verified = args[:is_verified] unless args[:is_verified].nil? - @profile_image_url = args[:profile_image_url] unless args[:profile_image_url].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) + @channel_url = args[:channel_url] if args.key?(:channel_url) + @display_name = args[:display_name] if args.key?(:display_name) + @is_chat_moderator = args[:is_chat_moderator] if args.key?(:is_chat_moderator) + @is_chat_owner = args[:is_chat_owner] if args.key?(:is_chat_owner) + @is_chat_sponsor = args[:is_chat_sponsor] if args.key?(:is_chat_sponsor) + @is_verified = args[:is_verified] if args.key?(:is_verified) + @profile_image_url = args[:profile_image_url] if args.key?(:profile_image_url) end end @@ -4420,16 +4420,16 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_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? - @offline_at = args[:offline_at] unless args[:offline_at].nil? - @page_info = args[:page_info] unless args[:page_info].nil? - @polling_interval_millis = args[:polling_interval_millis] unless args[:polling_interval_millis].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @offline_at = args[:offline_at] if args.key?(:offline_at) + @page_info = args[:page_info] if args.key?(:page_info) + @polling_interval_millis = args[:polling_interval_millis] if args.key?(:polling_interval_millis) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -4493,14 +4493,14 @@ module Google # Update properties of this object def update!(**args) - @author_channel_id = args[:author_channel_id] unless args[:author_channel_id].nil? - @display_message = args[:display_message] unless args[:display_message].nil? - @fan_funding_event_details = args[:fan_funding_event_details] unless args[:fan_funding_event_details].nil? - @has_display_content = args[:has_display_content] unless args[:has_display_content].nil? - @live_chat_id = args[:live_chat_id] unless args[:live_chat_id].nil? - @published_at = args[:published_at] unless args[:published_at].nil? - @text_message_details = args[:text_message_details] unless args[:text_message_details].nil? - @type = args[:type] unless args[:type].nil? + @author_channel_id = args[:author_channel_id] if args.key?(:author_channel_id) + @display_message = args[:display_message] if args.key?(:display_message) + @fan_funding_event_details = args[:fan_funding_event_details] if args.key?(:fan_funding_event_details) + @has_display_content = args[:has_display_content] if args.key?(:has_display_content) + @live_chat_id = args[:live_chat_id] if args.key?(:live_chat_id) + @published_at = args[:published_at] if args.key?(:published_at) + @text_message_details = args[:text_message_details] if args.key?(:text_message_details) + @type = args[:type] if args.key?(:type) end end @@ -4537,10 +4537,10 @@ module Google # 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? - @snippet = args[:snippet] unless args[:snippet].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) end end @@ -4603,15 +4603,15 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_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? - @page_info = args[:page_info] unless args[:page_info].nil? - @prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @page_info = args[:page_info] if args.key?(:page_info) + @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -4635,8 +4635,8 @@ module Google # Update properties of this object def update!(**args) - @live_chat_id = args[:live_chat_id] unless args[:live_chat_id].nil? - @moderator_details = args[:moderator_details] unless args[:moderator_details].nil? + @live_chat_id = args[:live_chat_id] if args.key?(:live_chat_id) + @moderator_details = args[:moderator_details] if args.key?(:moderator_details) end end @@ -4655,7 +4655,7 @@ module Google # Update properties of this object def update!(**args) - @message_text = args[:message_text] unless args[:message_text].nil? + @message_text = args[:message_text] if args.key?(:message_text) end end @@ -4706,13 +4706,13 @@ module Google # Update properties of this object def update!(**args) - @cdn = args[:cdn] unless args[:cdn].nil? - @content_details = args[:content_details] unless args[:content_details].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @snippet = args[:snippet] unless args[:snippet].nil? - @status = args[:status] unless args[:status].nil? + @cdn = args[:cdn] if args.key?(:cdn) + @content_details = args[:content_details] if args.key?(:content_details) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) + @status = args[:status] if args.key?(:status) end end @@ -4746,10 +4746,10 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @reason = args[:reason] unless args[:reason].nil? - @severity = args[:severity] unless args[:severity].nil? - @type = args[:type] unless args[:type].nil? + @description = args[:description] if args.key?(:description) + @reason = args[:reason] if args.key?(:reason) + @severity = args[:severity] if args.key?(:severity) + @type = args[:type] if args.key?(:type) end end @@ -4786,8 +4786,8 @@ module Google # Update properties of this object def update!(**args) - @closed_captions_ingestion_url = args[:closed_captions_ingestion_url] unless args[:closed_captions_ingestion_url].nil? - @is_reusable = args[:is_reusable] unless args[:is_reusable].nil? + @closed_captions_ingestion_url = args[:closed_captions_ingestion_url] if args.key?(:closed_captions_ingestion_url) + @is_reusable = args[:is_reusable] if args.key?(:is_reusable) end end @@ -4816,9 +4816,9 @@ module Google # Update properties of this object def update!(**args) - @configuration_issues = args[:configuration_issues] unless args[:configuration_issues].nil? - @last_update_time_seconds = args[:last_update_time_seconds] unless args[:last_update_time_seconds].nil? - @status = args[:status] unless args[:status].nil? + @configuration_issues = args[:configuration_issues] if args.key?(:configuration_issues) + @last_update_time_seconds = args[:last_update_time_seconds] if args.key?(:last_update_time_seconds) + @status = args[:status] if args.key?(:status) end end @@ -4881,15 +4881,15 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_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? - @page_info = args[:page_info] unless args[:page_info].nil? - @prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @page_info = args[:page_info] if args.key?(:page_info) + @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -4931,11 +4931,11 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @description = args[:description] unless args[:description].nil? - @is_default_stream = args[:is_default_stream] unless args[:is_default_stream].nil? - @published_at = args[:published_at] unless args[:published_at].nil? - @title = args[:title] unless args[:title].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) + @description = args[:description] if args.key?(:description) + @is_default_stream = args[:is_default_stream] if args.key?(:is_default_stream) + @published_at = args[:published_at] if args.key?(:published_at) + @title = args[:title] if args.key?(:title) end end @@ -4959,8 +4959,8 @@ module Google # Update properties of this object def update!(**args) - @health_status = args[:health_status] unless args[:health_status].nil? - @stream_status = args[:stream_status] unless args[:stream_status].nil? + @health_status = args[:health_status] if args.key?(:health_status) + @stream_status = args[:stream_status] if args.key?(:stream_status) end end @@ -4989,9 +4989,9 @@ module Google # Update properties of this object def update!(**args) - @default = args[:default] unless args[:default].nil? - @default_language = args[:default_language] unless args[:default_language].nil? - @localized = args[:localized] unless args[:localized].nil? + @default = args[:default] if args.key?(:default) + @default_language = args[:default_language] if args.key?(:default_language) + @localized = args[:localized] if args.key?(:localized) end end @@ -5015,8 +5015,8 @@ module Google # Update properties of this object def update!(**args) - @language = args[:language] unless args[:language].nil? - @value = args[:value] unless args[:value].nil? + @language = args[:language] if args.key?(:language) + @value = args[:value] if args.key?(:value) end end @@ -5055,9 +5055,9 @@ module Google # Update properties of this object def update!(**args) - @broadcast_stream_delay_ms = args[:broadcast_stream_delay_ms] unless args[:broadcast_stream_delay_ms].nil? - @embed_html = args[:embed_html] unless args[:embed_html].nil? - @enable_monitor_stream = args[:enable_monitor_stream] unless args[:enable_monitor_stream].nil? + @broadcast_stream_delay_ms = args[:broadcast_stream_delay_ms] if args.key?(:broadcast_stream_delay_ms) + @embed_html = args[:embed_html] if args.key?(:embed_html) + @enable_monitor_stream = args[:enable_monitor_stream] if args.key?(:enable_monitor_stream) end end @@ -5082,8 +5082,8 @@ module Google # Update properties of this object def update!(**args) - @results_per_page = args[:results_per_page] unless args[:results_per_page].nil? - @total_results = args[:total_results] unless args[:total_results].nil? + @results_per_page = args[:results_per_page] if args.key?(:results_per_page) + @total_results = args[:total_results] if args.key?(:total_results) end end @@ -5156,14 +5156,14 @@ module Google # Update properties of this object def update!(**args) - @content_details = args[:content_details] unless args[:content_details].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @localizations = args[:localizations] unless args[:localizations].nil? - @player = args[:player] unless args[:player].nil? - @snippet = args[:snippet] unless args[:snippet].nil? - @status = args[:status] unless args[:status].nil? + @content_details = args[:content_details] if args.key?(:content_details) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @localizations = args[:localizations] if args.key?(:localizations) + @player = args[:player] if args.key?(:player) + @snippet = args[:snippet] if args.key?(:snippet) + @status = args[:status] if args.key?(:status) end end @@ -5182,7 +5182,7 @@ module Google # Update properties of this object def update!(**args) - @item_count = args[:item_count] unless args[:item_count].nil? + @item_count = args[:item_count] if args.key?(:item_count) end end @@ -5246,12 +5246,12 @@ module Google # Update properties of this object def update!(**args) - @content_details = args[:content_details] unless args[:content_details].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @snippet = args[:snippet] unless args[:snippet].nil? - @status = args[:status] unless args[:status].nil? + @content_details = args[:content_details] if args.key?(:content_details) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) + @status = args[:status] if args.key?(:status) end end @@ -5292,10 +5292,10 @@ module Google # Update properties of this object def update!(**args) - @end_at = args[:end_at] unless args[:end_at].nil? - @note = args[:note] unless args[:note].nil? - @start_at = args[:start_at] unless args[:start_at].nil? - @video_id = args[:video_id] unless args[:video_id].nil? + @end_at = args[:end_at] if args.key?(:end_at) + @note = args[:note] if args.key?(:note) + @start_at = args[:start_at] if args.key?(:start_at) + @video_id = args[:video_id] if args.key?(:video_id) end end @@ -5358,15 +5358,15 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_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? - @page_info = args[:page_info] unless args[:page_info].nil? - @prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @page_info = args[:page_info] if args.key?(:page_info) + @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -5430,15 +5430,15 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @channel_title = args[:channel_title] unless args[:channel_title].nil? - @description = args[:description] unless args[:description].nil? - @playlist_id = args[:playlist_id] unless args[:playlist_id].nil? - @position = args[:position] unless args[:position].nil? - @published_at = args[:published_at] unless args[:published_at].nil? - @resource_id = args[:resource_id] unless args[:resource_id].nil? - @thumbnails = args[:thumbnails] unless args[:thumbnails].nil? - @title = args[:title] unless args[:title].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) + @channel_title = args[:channel_title] if args.key?(:channel_title) + @description = args[:description] if args.key?(:description) + @playlist_id = args[:playlist_id] if args.key?(:playlist_id) + @position = args[:position] if args.key?(:position) + @published_at = args[:published_at] if args.key?(:published_at) + @resource_id = args[:resource_id] if args.key?(:resource_id) + @thumbnails = args[:thumbnails] if args.key?(:thumbnails) + @title = args[:title] if args.key?(:title) end end @@ -5457,7 +5457,7 @@ module Google # Update properties of this object def update!(**args) - @privacy_status = args[:privacy_status] unless args[:privacy_status].nil? + @privacy_status = args[:privacy_status] if args.key?(:privacy_status) end end @@ -5520,15 +5520,15 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_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? - @page_info = args[:page_info] unless args[:page_info].nil? - @prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @page_info = args[:page_info] if args.key?(:page_info) + @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -5552,8 +5552,8 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @title = args[:title] unless args[:title].nil? + @description = args[:description] if args.key?(:description) + @title = args[:title] if args.key?(:title) end end @@ -5572,7 +5572,7 @@ module Google # Update properties of this object def update!(**args) - @embed_html = args[:embed_html] unless args[:embed_html].nil? + @embed_html = args[:embed_html] if args.key?(:embed_html) end end @@ -5633,15 +5633,15 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @channel_title = args[:channel_title] unless args[:channel_title].nil? - @default_language = args[:default_language] unless args[:default_language].nil? - @description = args[:description] unless args[:description].nil? - @localized = args[:localized] unless args[:localized].nil? - @published_at = args[:published_at] unless args[:published_at].nil? - @tags = args[:tags] unless args[:tags].nil? - @thumbnails = args[:thumbnails] unless args[:thumbnails].nil? - @title = args[:title] unless args[:title].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) + @channel_title = args[:channel_title] if args.key?(:channel_title) + @default_language = args[:default_language] if args.key?(:default_language) + @description = args[:description] if args.key?(:description) + @localized = args[:localized] if args.key?(:localized) + @published_at = args[:published_at] if args.key?(:published_at) + @tags = args[:tags] if args.key?(:tags) + @thumbnails = args[:thumbnails] if args.key?(:thumbnails) + @title = args[:title] if args.key?(:title) end end @@ -5660,7 +5660,7 @@ module Google # Update properties of this object def update!(**args) - @privacy_status = args[:privacy_status] unless args[:privacy_status].nil? + @privacy_status = args[:privacy_status] if args.key?(:privacy_status) end end @@ -5698,10 +5698,10 @@ module Google # Update properties of this object def update!(**args) - @custom_message = args[:custom_message] unless args[:custom_message].nil? - @id = args[:id] unless args[:id].nil? - @promoted_by_content_owner = args[:promoted_by_content_owner] unless args[:promoted_by_content_owner].nil? - @timing = args[:timing] unless args[:timing].nil? + @custom_message = args[:custom_message] if args.key?(:custom_message) + @id = args[:id] if args.key?(:id) + @promoted_by_content_owner = args[:promoted_by_content_owner] if args.key?(:promoted_by_content_owner) + @timing = args[:timing] if args.key?(:timing) end end @@ -5741,10 +5741,10 @@ module Google # Update properties of this object def update!(**args) - @recently_uploaded_by = args[:recently_uploaded_by] unless args[:recently_uploaded_by].nil? - @type = args[:type] unless args[:type].nil? - @video_id = args[:video_id] unless args[:video_id].nil? - @website_url = args[:website_url] unless args[:website_url].nil? + @recently_uploaded_by = args[:recently_uploaded_by] if args.key?(:recently_uploaded_by) + @type = args[:type] if args.key?(:type) + @video_id = args[:video_id] if args.key?(:video_id) + @website_url = args[:website_url] if args.key?(:website_url) end end @@ -5768,8 +5768,8 @@ module Google # Update properties of this object def update!(**args) - @property = args[:property] unless args[:property].nil? - @value = args[:value] unless args[:value].nil? + @property = args[:property] if args.key?(:property) + @value = args[:value] if args.key?(:value) end end @@ -5809,10 +5809,10 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @kind = args[:kind] unless args[:kind].nil? - @playlist_id = args[:playlist_id] unless args[:playlist_id].nil? - @video_id = args[:video_id] unless args[:video_id].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) + @kind = args[:kind] if args.key?(:kind) + @playlist_id = args[:playlist_id] if args.key?(:playlist_id) + @video_id = args[:video_id] if args.key?(:video_id) end end @@ -5875,15 +5875,15 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_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? - @page_info = args[:page_info] unless args[:page_info].nil? - @prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @page_info = args[:page_info] if args.key?(:page_info) + @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -5922,10 +5922,10 @@ module Google # 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? - @snippet = args[:snippet] unless args[:snippet].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) end end @@ -5980,13 +5980,13 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @channel_title = args[:channel_title] unless args[:channel_title].nil? - @description = args[:description] unless args[:description].nil? - @live_broadcast_content = args[:live_broadcast_content] unless args[:live_broadcast_content].nil? - @published_at = args[:published_at] unless args[:published_at].nil? - @thumbnails = args[:thumbnails] unless args[:thumbnails].nil? - @title = args[:title] unless args[:title].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) + @channel_title = args[:channel_title] if args.key?(:channel_title) + @description = args[:description] if args.key?(:description) + @live_broadcast_content = args[:live_broadcast_content] if args.key?(:live_broadcast_content) + @published_at = args[:published_at] if args.key?(:published_at) + @thumbnails = args[:thumbnails] if args.key?(:thumbnails) + @title = args[:title] if args.key?(:title) end end @@ -6022,10 +6022,10 @@ module Google # 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? - @snippet = args[:snippet] unless args[:snippet].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) end end @@ -6082,14 +6082,14 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_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? - @page_info = args[:page_info] unless args[:page_info].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @page_info = args[:page_info] if args.key?(:page_info) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -6119,9 +6119,9 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @sponsor_details = args[:sponsor_details] unless args[:sponsor_details].nil? - @sponsor_since = args[:sponsor_since] unless args[:sponsor_since].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) + @sponsor_details = args[:sponsor_details] if args.key?(:sponsor_details) + @sponsor_since = args[:sponsor_since] if args.key?(:sponsor_since) end end @@ -6171,12 +6171,12 @@ module Google # Update properties of this object def update!(**args) - @content_details = args[:content_details] unless args[:content_details].nil? - @etag = args[:etag] unless args[:etag].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @snippet = args[:snippet] unless args[:snippet].nil? - @subscriber_snippet = args[:subscriber_snippet] unless args[:subscriber_snippet].nil? + @content_details = args[:content_details] if args.key?(:content_details) + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) + @subscriber_snippet = args[:subscriber_snippet] if args.key?(:subscriber_snippet) end end @@ -6205,9 +6205,9 @@ module Google # Update properties of this object def update!(**args) - @activity_type = args[:activity_type] unless args[:activity_type].nil? - @new_item_count = args[:new_item_count] unless args[:new_item_count].nil? - @total_item_count = args[:total_item_count] unless args[:total_item_count].nil? + @activity_type = args[:activity_type] if args.key?(:activity_type) + @new_item_count = args[:new_item_count] if args.key?(:new_item_count) + @total_item_count = args[:total_item_count] if args.key?(:total_item_count) end end @@ -6270,15 +6270,15 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_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? - @page_info = args[:page_info] unless args[:page_info].nil? - @prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @page_info = args[:page_info] if args.key?(:page_info) + @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -6329,13 +6329,13 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @channel_title = args[:channel_title] unless args[:channel_title].nil? - @description = args[:description] unless args[:description].nil? - @published_at = args[:published_at] unless args[:published_at].nil? - @resource_id = args[:resource_id] unless args[:resource_id].nil? - @thumbnails = args[:thumbnails] unless args[:thumbnails].nil? - @title = args[:title] unless args[:title].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) + @channel_title = args[:channel_title] if args.key?(:channel_title) + @description = args[:description] if args.key?(:description) + @published_at = args[:published_at] if args.key?(:published_at) + @resource_id = args[:resource_id] if args.key?(:resource_id) + @thumbnails = args[:thumbnails] if args.key?(:thumbnails) + @title = args[:title] if args.key?(:title) end end @@ -6370,10 +6370,10 @@ module Google # Update properties of this object def update!(**args) - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @description = args[:description] unless args[:description].nil? - @thumbnails = args[:thumbnails] unless args[:thumbnails].nil? - @title = args[:title] unless args[:title].nil? + @channel_id = args[:channel_id] if args.key?(:channel_id) + @description = args[:description] if args.key?(:description) + @thumbnails = args[:thumbnails] if args.key?(:thumbnails) + @title = args[:title] if args.key?(:title) end end @@ -6402,9 +6402,9 @@ module Google # 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? + @height = args[:height] if args.key?(:height) + @url = args[:url] if args.key?(:url) + @width = args[:width] if args.key?(:width) end end @@ -6443,11 +6443,11 @@ module Google # Update properties of this object def update!(**args) - @default = args[:default] unless args[:default].nil? - @high = args[:high] unless args[:high].nil? - @maxres = args[:maxres] unless args[:maxres].nil? - @medium = args[:medium] unless args[:medium].nil? - @standard = args[:standard] unless args[:standard].nil? + @default = args[:default] if args.key?(:default) + @high = args[:high] if args.key?(:high) + @maxres = args[:maxres] if args.key?(:maxres) + @medium = args[:medium] if args.key?(:medium) + @standard = args[:standard] if args.key?(:standard) end end @@ -6487,11 +6487,11 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_id].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -6616,24 +6616,24 @@ module Google # Update properties of this object def update!(**args) - @age_gating = args[:age_gating] unless args[:age_gating].nil? - @content_details = args[:content_details] unless args[:content_details].nil? - @etag = args[:etag] unless args[:etag].nil? - @file_details = args[:file_details] unless args[:file_details].nil? - @id = args[:id] unless args[:id].nil? - @kind = args[:kind] unless args[:kind].nil? - @live_streaming_details = args[:live_streaming_details] unless args[:live_streaming_details].nil? - @localizations = args[:localizations] unless args[:localizations].nil? - @monetization_details = args[:monetization_details] unless args[:monetization_details].nil? - @player = args[:player] unless args[:player].nil? - @processing_details = args[:processing_details] unless args[:processing_details].nil? - @project_details = args[:project_details] unless args[:project_details].nil? - @recording_details = args[:recording_details] unless args[:recording_details].nil? - @snippet = args[:snippet] unless args[:snippet].nil? - @statistics = args[:statistics] unless args[:statistics].nil? - @status = args[:status] unless args[:status].nil? - @suggestions = args[:suggestions] unless args[:suggestions].nil? - @topic_details = args[:topic_details] unless args[:topic_details].nil? + @age_gating = args[:age_gating] if args.key?(:age_gating) + @content_details = args[:content_details] if args.key?(:content_details) + @etag = args[:etag] if args.key?(:etag) + @file_details = args[:file_details] if args.key?(:file_details) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @live_streaming_details = args[:live_streaming_details] if args.key?(:live_streaming_details) + @localizations = args[:localizations] if args.key?(:localizations) + @monetization_details = args[:monetization_details] if args.key?(:monetization_details) + @player = args[:player] if args.key?(:player) + @processing_details = args[:processing_details] if args.key?(:processing_details) + @project_details = args[:project_details] if args.key?(:project_details) + @recording_details = args[:recording_details] if args.key?(:recording_details) + @snippet = args[:snippet] if args.key?(:snippet) + @statistics = args[:statistics] if args.key?(:statistics) + @status = args[:status] if args.key?(:status) + @suggestions = args[:suggestions] if args.key?(:suggestions) + @topic_details = args[:topic_details] if args.key?(:topic_details) end end @@ -6675,11 +6675,11 @@ module Google # Update properties of this object def update!(**args) - @comments = args[:comments] unless args[:comments].nil? - @language = args[:language] unless args[:language].nil? - @reason_id = args[:reason_id] unless args[:reason_id].nil? - @secondary_reason_id = args[:secondary_reason_id] unless args[:secondary_reason_id].nil? - @video_id = args[:video_id] unless args[:video_id].nil? + @comments = args[:comments] if args.key?(:comments) + @language = args[:language] if args.key?(:language) + @reason_id = args[:reason_id] if args.key?(:reason_id) + @secondary_reason_id = args[:secondary_reason_id] if args.key?(:secondary_reason_id) + @video_id = args[:video_id] if args.key?(:video_id) end end @@ -6716,10 +6716,10 @@ module Google # 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? - @snippet = args[:snippet] unless args[:snippet].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) end end @@ -6759,11 +6759,11 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_id].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -6788,8 +6788,8 @@ module Google # Update properties of this object def update!(**args) - @label = args[:label] unless args[:label].nil? - @secondary_reasons = args[:secondary_reasons] unless args[:secondary_reasons].nil? + @label = args[:label] if args.key?(:label) + @secondary_reasons = args[:secondary_reasons] if args.key?(:secondary_reasons) end end @@ -6813,8 +6813,8 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @label = args[:label] unless args[:label].nil? + @id = args[:id] if args.key?(:id) + @label = args[:label] if args.key?(:label) end end @@ -6849,9 +6849,9 @@ module Google # Update properties of this object def update!(**args) - @alcohol_content = args[:alcohol_content] unless args[:alcohol_content].nil? - @restricted = args[:restricted] unless args[:restricted].nil? - @video_game_rating = args[:video_game_rating] unless args[:video_game_rating].nil? + @alcohol_content = args[:alcohol_content] if args.key?(:alcohol_content) + @restricted = args[:restricted] if args.key?(:restricted) + @video_game_rating = args[:video_game_rating] if args.key?(:video_game_rating) end end @@ -6887,10 +6887,10 @@ module Google # 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? - @snippet = args[:snippet] unless args[:snippet].nil? + @etag = args[:etag] if args.key?(:etag) + @id = args[:id] if args.key?(:id) + @kind = args[:kind] if args.key?(:kind) + @snippet = args[:snippet] if args.key?(:snippet) end end @@ -6955,15 +6955,15 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_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? - @page_info = args[:page_info] unless args[:page_info].nil? - @prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @page_info = args[:page_info] if args.key?(:page_info) + @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -6993,9 +6993,9 @@ module Google # Update properties of this object def update!(**args) - @assignable = args[:assignable] unless args[:assignable].nil? - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @title = args[:title] unless args[:title].nil? + @assignable = args[:assignable] if args.key?(:assignable) + @channel_id = args[:channel_id] if args.key?(:channel_id) + @title = args[:title] if args.key?(:title) end end @@ -7058,14 +7058,14 @@ module Google # Update properties of this object def update!(**args) - @caption = args[:caption] unless args[:caption].nil? - @content_rating = args[:content_rating] unless args[:content_rating].nil? - @country_restriction = args[:country_restriction] unless args[:country_restriction].nil? - @definition = args[:definition] unless args[:definition].nil? - @dimension = args[:dimension] unless args[:dimension].nil? - @duration = args[:duration] unless args[:duration].nil? - @licensed_content = args[:licensed_content] unless args[:licensed_content].nil? - @region_restriction = args[:region_restriction] unless args[:region_restriction].nil? + @caption = args[:caption] if args.key?(:caption) + @content_rating = args[:content_rating] if args.key?(:content_rating) + @country_restriction = args[:country_restriction] if args.key?(:country_restriction) + @definition = args[:definition] if args.key?(:definition) + @dimension = args[:dimension] if args.key?(:dimension) + @duration = args[:duration] if args.key?(:duration) + @licensed_content = args[:licensed_content] if args.key?(:licensed_content) + @region_restriction = args[:region_restriction] if args.key?(:region_restriction) end end @@ -7095,8 +7095,8 @@ module Google # Update properties of this object def update!(**args) - @allowed = args[:allowed] unless args[:allowed].nil? - @blocked = args[:blocked] unless args[:blocked].nil? + @allowed = args[:allowed] if args.key?(:allowed) + @blocked = args[:blocked] if args.key?(:blocked) end end @@ -7174,16 +7174,16 @@ module Google # Update properties of this object def update!(**args) - @audio_streams = args[:audio_streams] unless args[:audio_streams].nil? - @bitrate_bps = args[:bitrate_bps] unless args[:bitrate_bps].nil? - @container = args[:container] unless args[:container].nil? - @creation_time = args[:creation_time] unless args[:creation_time].nil? - @duration_ms = args[:duration_ms] unless args[:duration_ms].nil? - @file_name = args[:file_name] unless args[:file_name].nil? - @file_size = args[:file_size] unless args[:file_size].nil? - @file_type = args[:file_type] unless args[:file_type].nil? - @recording_location = args[:recording_location] unless args[:recording_location].nil? - @video_streams = args[:video_streams] unless args[:video_streams].nil? + @audio_streams = args[:audio_streams] if args.key?(:audio_streams) + @bitrate_bps = args[:bitrate_bps] if args.key?(:bitrate_bps) + @container = args[:container] if args.key?(:container) + @creation_time = args[:creation_time] if args.key?(:creation_time) + @duration_ms = args[:duration_ms] if args.key?(:duration_ms) + @file_name = args[:file_name] if args.key?(:file_name) + @file_size = args[:file_size] if args.key?(:file_size) + @file_type = args[:file_type] if args.key?(:file_type) + @recording_location = args[:recording_location] if args.key?(:recording_location) + @video_streams = args[:video_streams] if args.key?(:video_streams) end end @@ -7218,10 +7218,10 @@ module Google # Update properties of this object def update!(**args) - @bitrate_bps = args[:bitrate_bps] unless args[:bitrate_bps].nil? - @channel_count = args[:channel_count] unless args[:channel_count].nil? - @codec = args[:codec] unless args[:codec].nil? - @vendor = args[:vendor] unless args[:vendor].nil? + @bitrate_bps = args[:bitrate_bps] if args.key?(:bitrate_bps) + @channel_count = args[:channel_count] if args.key?(:channel_count) + @codec = args[:codec] if args.key?(:codec) + @vendor = args[:vendor] if args.key?(:vendor) end end @@ -7279,14 +7279,14 @@ module Google # Update properties of this object def update!(**args) - @aspect_ratio = args[:aspect_ratio] unless args[:aspect_ratio].nil? - @bitrate_bps = args[:bitrate_bps] unless args[:bitrate_bps].nil? - @codec = args[:codec] unless args[:codec].nil? - @frame_rate_fps = args[:frame_rate_fps] unless args[:frame_rate_fps].nil? - @height_pixels = args[:height_pixels] unless args[:height_pixels].nil? - @rotation = args[:rotation] unless args[:rotation].nil? - @vendor = args[:vendor] unless args[:vendor].nil? - @width_pixels = args[:width_pixels] unless args[:width_pixels].nil? + @aspect_ratio = args[:aspect_ratio] if args.key?(:aspect_ratio) + @bitrate_bps = args[:bitrate_bps] if args.key?(:bitrate_bps) + @codec = args[:codec] if args.key?(:codec) + @frame_rate_fps = args[:frame_rate_fps] if args.key?(:frame_rate_fps) + @height_pixels = args[:height_pixels] if args.key?(:height_pixels) + @rotation = args[:rotation] if args.key?(:rotation) + @vendor = args[:vendor] if args.key?(:vendor) + @width_pixels = args[:width_pixels] if args.key?(:width_pixels) end end @@ -7326,11 +7326,11 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_id].nil? - @items = args[:items] unless args[:items].nil? - @kind = args[:kind] unless args[:kind].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -7393,15 +7393,15 @@ module Google # Update properties of this object def update!(**args) - @etag = args[:etag] unless args[:etag].nil? - @event_id = args[:event_id] unless args[:event_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? - @page_info = args[:page_info] unless args[:page_info].nil? - @prev_page_token = args[:prev_page_token] unless args[:prev_page_token].nil? - @token_pagination = args[:token_pagination] unless args[:token_pagination].nil? - @visitor_id = args[:visitor_id] unless args[:visitor_id].nil? + @etag = args[:etag] if args.key?(:etag) + @event_id = args[:event_id] if args.key?(:event_id) + @items = args[:items] if args.key?(:items) + @kind = args[:kind] if args.key?(:kind) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @page_info = args[:page_info] if args.key?(:page_info) + @prev_page_token = args[:prev_page_token] if args.key?(:prev_page_token) + @token_pagination = args[:token_pagination] if args.key?(:token_pagination) + @visitor_id = args[:visitor_id] if args.key?(:visitor_id) end end @@ -7462,12 +7462,12 @@ module Google # Update properties of this object def update!(**args) - @active_live_chat_id = args[:active_live_chat_id] unless args[:active_live_chat_id].nil? - @actual_end_time = args[:actual_end_time] unless args[:actual_end_time].nil? - @actual_start_time = args[:actual_start_time] unless args[:actual_start_time].nil? - @concurrent_viewers = args[:concurrent_viewers] unless args[:concurrent_viewers].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? + @active_live_chat_id = args[:active_live_chat_id] if args.key?(:active_live_chat_id) + @actual_end_time = args[:actual_end_time] if args.key?(:actual_end_time) + @actual_start_time = args[:actual_start_time] if args.key?(:actual_start_time) + @concurrent_viewers = args[:concurrent_viewers] if args.key?(:concurrent_viewers) + @scheduled_end_time = args[:scheduled_end_time] if args.key?(:scheduled_end_time) + @scheduled_start_time = args[:scheduled_start_time] if args.key?(:scheduled_start_time) end end @@ -7491,8 +7491,8 @@ module Google # Update properties of this object def update!(**args) - @description = args[:description] unless args[:description].nil? - @title = args[:title] unless args[:title].nil? + @description = args[:description] if args.key?(:description) + @title = args[:title] if args.key?(:title) end end @@ -7511,7 +7511,7 @@ module Google # Update properties of this object def update!(**args) - @access = args[:access] unless args[:access].nil? + @access = args[:access] if args.key?(:access) end end @@ -7530,7 +7530,7 @@ module Google # Update properties of this object def update!(**args) - @embed_html = args[:embed_html] unless args[:embed_html].nil? + @embed_html = args[:embed_html] if args.key?(:embed_html) end end @@ -7600,14 +7600,14 @@ module Google # Update properties of this object def update!(**args) - @editor_suggestions_availability = args[:editor_suggestions_availability] unless args[:editor_suggestions_availability].nil? - @file_details_availability = args[:file_details_availability] unless args[:file_details_availability].nil? - @processing_failure_reason = args[:processing_failure_reason] unless args[:processing_failure_reason].nil? - @processing_issues_availability = args[:processing_issues_availability] unless args[:processing_issues_availability].nil? - @processing_progress = args[:processing_progress] unless args[:processing_progress].nil? - @processing_status = args[:processing_status] unless args[:processing_status].nil? - @tag_suggestions_availability = args[:tag_suggestions_availability] unless args[:tag_suggestions_availability].nil? - @thumbnails_availability = args[:thumbnails_availability] unless args[:thumbnails_availability].nil? + @editor_suggestions_availability = args[:editor_suggestions_availability] if args.key?(:editor_suggestions_availability) + @file_details_availability = args[:file_details_availability] if args.key?(:file_details_availability) + @processing_failure_reason = args[:processing_failure_reason] if args.key?(:processing_failure_reason) + @processing_issues_availability = args[:processing_issues_availability] if args.key?(:processing_issues_availability) + @processing_progress = args[:processing_progress] if args.key?(:processing_progress) + @processing_status = args[:processing_status] if args.key?(:processing_status) + @tag_suggestions_availability = args[:tag_suggestions_availability] if args.key?(:tag_suggestions_availability) + @thumbnails_availability = args[:thumbnails_availability] if args.key?(:thumbnails_availability) end end @@ -7646,9 +7646,9 @@ module Google # Update properties of this object def update!(**args) - @parts_processed = args[:parts_processed] unless args[:parts_processed].nil? - @parts_total = args[:parts_total] unless args[:parts_total].nil? - @time_left_ms = args[:time_left_ms] unless args[:time_left_ms].nil? + @parts_processed = args[:parts_processed] if args.key?(:parts_processed) + @parts_total = args[:parts_total] if args.key?(:parts_total) + @time_left_ms = args[:time_left_ms] if args.key?(:time_left_ms) end end @@ -7667,7 +7667,7 @@ module Google # Update properties of this object def update!(**args) - @tags = args[:tags] unless args[:tags].nil? + @tags = args[:tags] if args.key?(:tags) end end @@ -7691,8 +7691,8 @@ module Google # Update properties of this object def update!(**args) - @rating = args[:rating] unless args[:rating].nil? - @video_id = args[:video_id] unless args[:video_id].nil? + @rating = args[:rating] if args.key?(:rating) + @video_id = args[:video_id] if args.key?(:video_id) end end @@ -7722,9 +7722,9 @@ module Google # Update properties of this object def update!(**args) - @location = args[:location] unless args[:location].nil? - @location_description = args[:location_description] unless args[:location_description].nil? - @recording_date = args[:recording_date] unless args[:recording_date].nil? + @location = args[:location] if args.key?(:location) + @location_description = args[:location_description] if args.key?(:location_description) + @recording_date = args[:recording_date] if args.key?(:recording_date) end end @@ -7803,18 +7803,18 @@ module Google # Update properties of this object def update!(**args) - @category_id = args[:category_id] unless args[:category_id].nil? - @channel_id = args[:channel_id] unless args[:channel_id].nil? - @channel_title = args[:channel_title] unless args[:channel_title].nil? - @default_audio_language = args[:default_audio_language] unless args[:default_audio_language].nil? - @default_language = args[:default_language] unless args[:default_language].nil? - @description = args[:description] unless args[:description].nil? - @live_broadcast_content = args[:live_broadcast_content] unless args[:live_broadcast_content].nil? - @localized = args[:localized] unless args[:localized].nil? - @published_at = args[:published_at] unless args[:published_at].nil? - @tags = args[:tags] unless args[:tags].nil? - @thumbnails = args[:thumbnails] unless args[:thumbnails].nil? - @title = args[:title] unless args[:title].nil? + @category_id = args[:category_id] if args.key?(:category_id) + @channel_id = args[:channel_id] if args.key?(:channel_id) + @channel_title = args[:channel_title] if args.key?(:channel_title) + @default_audio_language = args[:default_audio_language] if args.key?(:default_audio_language) + @default_language = args[:default_language] if args.key?(:default_language) + @description = args[:description] if args.key?(:description) + @live_broadcast_content = args[:live_broadcast_content] if args.key?(:live_broadcast_content) + @localized = args[:localized] if args.key?(:localized) + @published_at = args[:published_at] if args.key?(:published_at) + @tags = args[:tags] if args.key?(:tags) + @thumbnails = args[:thumbnails] if args.key?(:thumbnails) + @title = args[:title] if args.key?(:title) end end @@ -7856,11 +7856,11 @@ module Google # Update properties of this object def update!(**args) - @comment_count = args[:comment_count] unless args[:comment_count].nil? - @dislike_count = args[:dislike_count] unless args[:dislike_count].nil? - @favorite_count = args[:favorite_count] unless args[:favorite_count].nil? - @like_count = args[:like_count] unless args[:like_count].nil? - @view_count = args[:view_count] unless args[:view_count].nil? + @comment_count = args[:comment_count] if args.key?(:comment_count) + @dislike_count = args[:dislike_count] if args.key?(:dislike_count) + @favorite_count = args[:favorite_count] if args.key?(:favorite_count) + @like_count = args[:like_count] if args.key?(:like_count) + @view_count = args[:view_count] if args.key?(:view_count) end end @@ -7923,14 +7923,14 @@ module Google # Update properties of this object def update!(**args) - @embeddable = args[:embeddable] unless args[:embeddable].nil? - @failure_reason = args[:failure_reason] unless args[:failure_reason].nil? - @license = args[:license] unless args[:license].nil? - @privacy_status = args[:privacy_status] unless args[:privacy_status].nil? - @public_stats_viewable = args[:public_stats_viewable] unless args[:public_stats_viewable].nil? - @publish_at = args[:publish_at] unless args[:publish_at].nil? - @rejection_reason = args[:rejection_reason] unless args[:rejection_reason].nil? - @upload_status = args[:upload_status] unless args[:upload_status].nil? + @embeddable = args[:embeddable] if args.key?(:embeddable) + @failure_reason = args[:failure_reason] if args.key?(:failure_reason) + @license = args[:license] if args.key?(:license) + @privacy_status = args[:privacy_status] if args.key?(:privacy_status) + @public_stats_viewable = args[:public_stats_viewable] if args.key?(:public_stats_viewable) + @publish_at = args[:publish_at] if args.key?(:publish_at) + @rejection_reason = args[:rejection_reason] if args.key?(:rejection_reason) + @upload_status = args[:upload_status] if args.key?(:upload_status) end end @@ -7981,11 +7981,11 @@ module Google # Update properties of this object def update!(**args) - @editor_suggestions = args[:editor_suggestions] unless args[:editor_suggestions].nil? - @processing_errors = args[:processing_errors] unless args[:processing_errors].nil? - @processing_hints = args[:processing_hints] unless args[:processing_hints].nil? - @processing_warnings = args[:processing_warnings] unless args[:processing_warnings].nil? - @tag_suggestions = args[:tag_suggestions] unless args[:tag_suggestions].nil? + @editor_suggestions = args[:editor_suggestions] if args.key?(:editor_suggestions) + @processing_errors = args[:processing_errors] if args.key?(:processing_errors) + @processing_hints = args[:processing_hints] if args.key?(:processing_hints) + @processing_warnings = args[:processing_warnings] if args.key?(:processing_warnings) + @tag_suggestions = args[:tag_suggestions] if args.key?(:tag_suggestions) end end @@ -8013,8 +8013,8 @@ module Google # Update properties of this object def update!(**args) - @category_restricts = args[:category_restricts] unless args[:category_restricts].nil? - @tag = args[:tag] unless args[:tag].nil? + @category_restricts = args[:category_restricts] if args.key?(:category_restricts) + @tag = args[:tag] if args.key?(:tag) end end @@ -8043,8 +8043,8 @@ module Google # Update properties of this object def update!(**args) - @relevant_topic_ids = args[:relevant_topic_ids] unless args[:relevant_topic_ids].nil? - @topic_ids = args[:topic_ids] unless args[:topic_ids].nil? + @relevant_topic_ids = args[:relevant_topic_ids] if args.key?(:relevant_topic_ids) + @topic_ids = args[:topic_ids] if args.key?(:topic_ids) end end @@ -8074,9 +8074,9 @@ module Google # Update properties of this object def update!(**args) - @background_color = args[:background_color] unless args[:background_color].nil? - @featured_playlist_id = args[:featured_playlist_id] unless args[:featured_playlist_id].nil? - @text_color = args[:text_color] unless args[:text_color].nil? + @background_color = args[:background_color] if args.key?(:background_color) + @featured_playlist_id = args[:featured_playlist_id] if args.key?(:featured_playlist_id) + @text_color = args[:text_color] if args.key?(:text_color) end end end diff --git a/generated/google/apis/youtubereporting_v1/classes.rb b/generated/google/apis/youtubereporting_v1/classes.rb index fa845a194..c306a1811 100644 --- a/generated/google/apis/youtubereporting_v1/classes.rb +++ b/generated/google/apis/youtubereporting_v1/classes.rb @@ -37,7 +37,7 @@ module Google # Update properties of this object def update!(**args) - @resource_name = args[:resource_name] unless args[:resource_name].nil? + @resource_name = args[:resource_name] if args.key?(:resource_name) end end @@ -63,8 +63,8 @@ module Google # 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? + @report_types = args[:report_types] if args.key?(:report_types) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -88,8 +88,8 @@ module Google # Update properties of this object def update!(**args) - @id = args[:id] unless args[:id].nil? - @name = args[:name] unless args[:name].nil? + @id = args[:id] if args.key?(:id) + @name = args[:name] if args.key?(:name) end end @@ -124,10 +124,10 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @report_type_id = args[:report_type_id] if args.key?(:report_type_id) + @name = args[:name] if args.key?(:name) + @create_time = args[:create_time] if args.key?(:create_time) end end @@ -153,8 +153,8 @@ module Google # 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? + @jobs = args[:jobs] if args.key?(:jobs) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -197,8 +197,8 @@ module Google # 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? + @reports = args[:reports] if args.key?(:reports) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) end end @@ -245,12 +245,12 @@ module Google # 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? + @id = args[:id] if args.key?(:id) + @job_id = args[:job_id] if args.key?(:job_id) + @start_time = args[:start_time] if args.key?(:start_time) + @end_time = args[:end_time] if args.key?(:end_time) + @create_time = args[:create_time] if args.key?(:create_time) + @download_url = args[:download_url] if args.key?(:download_url) end end end diff --git a/script/generate b/script/generate index 90ade5a10..8dc6fdc8a 100755 --- a/script/generate +++ b/script/generate @@ -4,7 +4,7 @@ DIR=$(dirname $( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )) -APIS=(adexchangebuyer:v1.3 \ +APIS=(adexchangebuyer:v1.4 \ adexchangeseller:v2.0 \ admin:directory_v1 \ admin:datatransfer_v1 \ @@ -14,7 +14,7 @@ APIS=(adexchangebuyer:v1.3 \ analytics:v3 \ androidenterprise:v1 \ androidpublisher:v2 \ - appengine:v1beta4 \ + appengine:v1beta5 \ appsactivity:v1 \ appstate:v1 \ autoscaler:v1beta2 \ @@ -25,7 +25,9 @@ APIS=(adexchangebuyer:v1.3 \ civicinfo:v2 \ classroom:v1 \ cloudbilling:v1 \ + cloudbuild:v1 \ clouddebugger:v2 \ + cloudlatencytest:v2 \ cloudmonitoring:v2beta2 \ cloudresourcemanager:v1beta1 \ cloudtrace:v1 \ @@ -36,6 +38,7 @@ APIS=(adexchangebuyer:v1.3 \ content:v2 \ coordinate:v1 \ customsearch:v1 \ + dataproc:v1 \ datastore:v1beta2 \ deploymentmanager:v2 \ dfareporting:v2.3 \ @@ -58,7 +61,7 @@ APIS=(adexchangebuyer:v1.3 \ identitytoolkit:v3 \ kgsearch:v1 \ licensing:v1 \ - logging:v1beta3 \ + logging:v2beta1 \ manager:v1beta2 \ mapsengine:v1 \ mirror:v1 \